Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009895/0.0009891, allocations: 92 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01161/0.01161, allocations: 170.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.695/2.695, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.0004148, allocations: 12 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9182/0.9186, allocations: 142.4 MB / 0.955 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003598/0.9223, allocations: 2.583 MB / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002736/0.925, allocations: 1.776 MB / 0.9593 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.9252, allocations: 7.375 kB / 0.9593 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.9254, allocations: 32 kB / 0.9593 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005832/0.9259, allocations: 181.8 kB / 0.9595 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006847/0.9266, allocations: 209.2 kB / 0.9597 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.9272, allocations: 430.2 kB / 0.9601 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008379/0.928, allocations: 398 kB / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.9283, allocations: 98.44 kB / 0.9606 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.9287, allocations: 143.7 kB / 0.9607 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.9287, allocations: 9.969 kB / 0.9607 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006968/0.9294, allocations: 339.5 kB / 0.9611 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.9295, allocations: 79.83 kB / 0.9611 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.9297, allocations: 131.7 kB / 0.9613 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005798/0.9303, allocations: 436.6 kB / 0.9617 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9303, allocations: 0 / 0.9617 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9303, allocations: 1.406 kB / 0.9617 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.361e-06/0.9303, allocations: 0 / 0.9617 GB, free: 2.754 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009173/0.9312, allocations: 0.5045 MB / 0.9622 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.9313, allocations: 9.406 kB / 0.9622 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009777/0.9323, allocations: 123.6 kB / 0.9623 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.9326, allocations: 261.7 kB / 0.9625 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.9326, allocations: 16.03 kB / 0.9626 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.9327, allocations: 15.94 kB / 0.9626 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000759/0.9335, allocations: 401.2 kB / 0.963 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.9335, allocations: 0 / 0.963 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.9335, allocations: 6.812 kB / 0.963 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.528e-05/0.9336, allocations: 25.41 kB / 0.963 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007659/0.9344, allocations: 359.3 kB / 0.9633 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.9364, allocations: 1.735 MB / 0.965 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007755/0.9372, allocations: 347.2 kB / 0.9654 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.9375, allocations: 154.4 kB / 0.9655 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/0.9377, allocations: 95.78 kB / 0.9656 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.9377, allocations: 31.59 kB / 0.9656 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.9377, allocations: 0 / 0.9656 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001694/0.9394, allocations: 0.6119 MB / 0.9662 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.9395, allocations: 82.8 kB / 0.9663 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.9399, allocations: 216.2 kB / 0.9665 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.9399, allocations: 30.67 kB / 0.9665 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.9401, allocations: 155.8 kB / 0.9667 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.615e-05/0.9402, allocations: 80.2 kB / 0.9668 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.9402, allocations: 29.61 kB / 0.9668 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002346/0.9405, allocations: 328 kB / 0.9671 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.9409, allocations: 141.4 kB / 0.9672 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/0.9414, allocations: 222.2 kB / 0.9674 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007866/0.9422, allocations: 392.7 kB / 0.9678 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.9422, allocations: 1.031 kB / 0.9678 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001127/0.9433, allocations: 445.4 kB / 0.9682 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001793/0.9435, allocations: 168.6 kB / 0.9684 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.9435, allocations: 7.375 kB / 0.9684 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003387/0.9439, allocations: 46.31 kB / 0.9685 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.9443, allocations: 72.75 kB / 0.9685 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.9462, allocations: 1.494 MB / 0.97 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.9465, allocations: 38.72 kB / 0.97 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.9466, allocations: 14.2 kB / 0.97 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.9466, allocations: 7 kB / 0.97 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009737/0.9476, allocations: 385.4 kB / 0.9704 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.9476, allocations: 7.031 kB / 0.9704 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.9478, allocations: 40.56 kB / 0.9705 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.9481, allocations: 76.14 kB / 0.9705 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.9498, allocations: 1.48 MB / 0.972 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.9501, allocations: 39.66 kB / 0.972 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.9502, allocations: 13.56 kB / 0.972 GB, free: 9.961 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003298/0.9505, allocations: 241.3 kB / 0.9723 GB, free: 9.734 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.758e-05/0.9506, allocations: 18.03 kB / 0.9723 GB, free: 9.727 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008172/0.9514, allocations: 367.7 kB / 0.9726 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.9514, allocations: 4.031 kB / 0.9726 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9514, allocations: 0 / 0.9726 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.9515, allocations: 5.25 kB / 0.9726 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.9533, allocations: 0.9799 MB / 0.9736 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.9533, allocations: 2 kB / 0.9736 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.9535, allocations: 57.92 kB / 0.9737 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.9537, allocations: 35.27 kB / 0.9737 GB, free: 8.695 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.9537, allocations: 7.969 kB / 0.9737 GB, free: 8.691 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.9548, allocations: 1.405 MB / 0.9751 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.9549, allocations: 6.562 kB / 0.9751 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007558/0.9556, allocations: 0.5413 MB / 0.9756 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.9558, allocations: 134.1 kB / 0.9757 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.9558, allocations: 10.64 kB / 0.9757 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.9561, allocations: 22.62 kB / 0.9758 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.9562, allocations: 25.06 kB / 0.9758 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.9562, allocations: 11 kB / 0.9758 GB, free: 6.691 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002083/0.9564, allocations: 158.6 kB / 0.9759 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9564, allocations: 0 / 0.9759 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007357/0.9572, allocations: 111.8 kB / 0.976 GB, free: 6.562 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001931/0.9574, allocations: 114.2 kB / 0.9762 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001592/0.959, allocations: 0.756 MB / 0.9769 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.959, allocations: 4.875 kB / 0.9769 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005341/0.9595, allocations: 278 kB / 0.9772 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.9601, allocations: 31.77 kB / 0.9772 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.9613, allocations: 0.6604 MB / 0.9778 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.9618, allocations: 0.7737 MB / 0.9786 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002987/0.9621, allocations: 87.69 kB / 0.9787 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.183e-05/0.9622, allocations: 23.92 kB / 0.9787 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.9622, allocations: 1.25 kB / 0.9787 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of Templates: time 0.007293/0.9695, allocations: 3.185 MB / 0.9818 GB, free: 2.734 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches