Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 108 kB / 16.41 MB, free: 6.5 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.001477/0.001477, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.583/2.583, allocations: 437 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001642, allocations: 59.91 kB / 1.019 GB, free: 9.441 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9377/0.9393, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00774/0.9471, allocations: 4.396 MB / 1.172 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.006497/0.9537, allocations: 3.261 MB / 1.175 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005182/0.9542, allocations: 15.88 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.9563, allocations: 0.5027 MB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001458/0.9578, allocations: 398 kB / 1.176 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008205/0.9586, allocations: 249.1 kB / 1.176 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001061/0.9597, allocations: 0.5995 MB / 1.176 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008977/0.9606, allocations: 0.5207 MB / 1.177 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006851/0.9613, allocations: 283.1 kB / 1.177 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.962, allocations: 279 kB / 1.178 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.9621, allocations: 44 kB / 1.178 GB, free: 9.258 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007304/0.9629, allocations: 295.5 kB / 1.178 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000259/0.9632, allocations: 167.5 kB / 1.178 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003784/0.9635, allocations: 226.9 kB / 1.178 GB, free: 8.582 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.965, allocations: 0.7847 MB / 1.179 GB, free: 7.797 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.965, allocations: 0 / 1.179 GB, free: 7.797 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.454e-06/0.965, allocations: 0 / 1.179 GB, free: 7.797 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.31e-05/0.9651, allocations: 4 kB / 1.179 GB, free: 7.793 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00197/0.967, allocations: 0.7792 MB / 1.18 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.9671, allocations: 8.625 kB / 1.18 GB, free: 6.957 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/0.9701, allocations: 0.675 MB / 1.18 GB, free: 6.281 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.9711, allocations: 463.7 kB / 1.181 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.9712, allocations: 21.03 kB / 1.181 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.9713, allocations: 32.12 kB / 1.181 GB, free: 5.738 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.9731, allocations: 0.7942 MB / 1.182 GB, free: 4.91 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.9731, allocations: 0 / 1.182 GB, free: 4.91 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.9732, allocations: 12 kB / 1.182 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.9733, allocations: 40.61 kB / 1.182 GB, free: 4.859 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.9754, allocations: 0.8725 MB / 1.183 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004762/0.9802, allocations: 2.811 MB / 1.185 GB, free: 0.957 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.9819, allocations: 0.5175 MB / 1.186 GB, free: 436 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.9826, allocations: 258.7 kB / 1.186 GB, free: 176 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001233/0.9828, allocations: 89.08 kB / 1.186 GB, free: 68 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.9828, allocations: 38.56 kB / 1.186 GB, free: 20 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.415e-06/0.9828, allocations: 0 / 1.186 GB, free: 20 kB / 0.9044 GB Notification: Performance of matching and sorting (n=24): time 0.01231/0.9951, allocations: 3.051 MB / 1.189 GB, free: 12.93 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.9952, allocations: 51.41 kB / 1.189 GB, free: 12.87 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.9958, allocations: 405.5 kB / 1.19 GB, free: 12.46 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/0.9959, allocations: 33.7 kB / 1.19 GB, free: 12.43 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.9961, allocations: 243.8 kB / 1.19 GB, free: 12.18 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.9962, allocations: 82.75 kB / 1.19 GB, free: 12.1 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.9964, allocations: 73.67 kB / 1.19 GB, free: 12.02 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.9965, allocations: 338.8 kB / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009356/0.9974, allocations: 364.5 kB / 1.191 GB, free: 11.32 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009589/0.9984, allocations: 426.5 kB / 1.191 GB, free: 10.88 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/1, allocations: 0.7504 MB / 1.192 GB, free: 10.1 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1, allocations: 3.938 kB / 1.192 GB, free: 10.09 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005359/1.006, allocations: 1.507 MB / 1.193 GB, free: 8.574 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/1.006, allocations: 8 kB / 1.193 GB, free: 8.566 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.006, allocations: 0 / 1.193 GB, free: 8.566 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003626/1.009, allocations: 0.7702 MB / 1.194 GB, free: 7.789 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006961/1.01, allocations: 135.8 kB / 1.194 GB, free: 7.656 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007478/1.018, allocations: 4.851 MB / 1.199 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008444/1.018, allocations: 107.8 kB / 1.199 GB, free: 2.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.818e-05/1.018, allocations: 12 kB / 1.199 GB, free: 2.398 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001218/1.02, allocations: 0.5348 MB / 1.2 GB, free: 1.859 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001096/1.021, allocations: 424.7 kB / 1.2 GB, free: 1.414 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001986/1.023, allocations: 0.7255 MB / 1.201 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.955e-06/1.023, allocations: 0 / 1.201 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004409/1.027, allocations: 1.274 MB / 1.202 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/1.027, allocations: 6.344 kB / 1.202 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/1.027, allocations: 4 kB / 1.202 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/1.03, allocations: 0.4964 MB / 1.202 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000794/1.03, allocations: 135.8 kB / 1.203 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004017/1.034, allocations: 2.605 MB / 1.205 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008166/1.035, allocations: 111.9 kB / 1.205 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/1.035, allocations: 19.98 kB / 1.205 GB, free: 11.86 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002219/1.036, allocations: 196.1 kB / 1.205 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/1.036, allocations: 31.62 kB / 1.205 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004695/1.04, allocations: 1.358 MB / 1.207 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/1.04, allocations: 8 kB / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.04, allocations: 0 / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/1.04, allocations: 3.984 kB / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005623/1.046, allocations: 1.983 MB / 1.209 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/1.046, allocations: 7.875 kB / 1.209 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/1.047, allocations: 83.83 kB / 1.209 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003166/1.05, allocations: 0.7039 MB / 1.21 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/1.05, allocations: 11.92 kB / 1.21 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006145/1.056, allocations: 4.682 MB / 1.214 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.056, allocations: 0 / 1.214 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004301/1.06, allocations: 1.353 MB / 1.215 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/1.061, allocations: 168.7 kB / 1.216 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.238e-05/1.061, allocations: 0 / 1.216 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006172/1.061, allocations: 87.84 kB / 1.216 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/1.062, allocations: 23.97 kB / 1.216 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/1.062, allocations: 8 kB / 1.216 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004418/1.062, allocations: 307.1 kB / 1.216 GB, free: 448 kB / 0.9356 GB Notification: Performance of sort global known variables: time 5.71e-07/1.062, allocations: 8 kB / 1.216 GB, free: 440 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009271/1.063, allocations: 204 kB / 1.216 GB, free: 236 kB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002163/1.063, allocations: 115.1 kB / 1.216 GB, free: 108 kB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003752/1.067, allocations: 1.562 MB / 1.218 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.067, allocations: 0 / 1.218 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001219/1.068, allocations: 0.6306 MB / 1.218 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007637/1.069, allocations: 124.5 kB / 1.219 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/1.071, allocations: 1.071 MB / 1.22 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/1.072, allocations: 0.9015 MB / 1.22 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/1.072, allocations: 47.41 kB / 1.221 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of SimCode: time 9.22e-07/1.072, allocations: 0 / 1.221 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of Templates: time 0.0293/1.101, allocations: 12.53 MB / 1.233 GB, free: 15.15 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches