Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001212/0.001212, allocations: 113.9 kB / 16.42 MB, free: 6.465 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.001166/0.001167, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.65/2.65, allocations: 469.4 MB / 0.7428 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 60.12 kB / 1.065 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8877/0.8892, allocations: 159.1 MB / 1.221 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006913/0.8962, allocations: 4.395 MB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005145/0.9014, allocations: 3.26 MB / 1.228 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000451/0.9018, allocations: 15.94 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.9036, allocations: 0.5056 MB / 1.229 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.9047, allocations: 401.7 kB / 1.229 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.9055, allocations: 243.4 kB / 1.229 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0008816/0.9064, allocations: 0.6034 MB / 1.23 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007468/0.9071, allocations: 0.5245 MB / 1.231 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005886/0.9077, allocations: 287.1 kB / 1.231 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.9083, allocations: 275 kB / 1.231 GB, free: 7.883 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.9085, allocations: 40 kB / 1.231 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006791/0.9092, allocations: 295.5 kB / 1.231 GB, free: 7.555 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002267/0.9094, allocations: 175.5 kB / 1.232 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.9098, allocations: 234.9 kB / 1.232 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.9109, allocations: 0.7808 MB / 1.233 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.911, allocations: 0 / 1.233 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.803e-06/0.911, allocations: 0 / 1.233 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.585e-05/0.911, allocations: 0 / 1.233 GB, free: 6.371 MB / 0.9512 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.00178/0.9128, allocations: 0.7598 MB / 1.233 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.9128, allocations: 12.62 kB / 1.233 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003082/0.9159, allocations: 0.6828 MB / 1.234 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008994/0.9168, allocations: 459.7 kB / 1.234 GB, free: 4.375 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.9169, allocations: 21.03 kB / 1.234 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.917, allocations: 32.12 kB / 1.235 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.9187, allocations: 0.7864 MB / 1.235 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.9188, allocations: 0 / 1.235 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.62e-05/0.9188, allocations: 12 kB / 1.235 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.919, allocations: 44.61 kB / 1.235 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.9212, allocations: 0.8764 MB / 1.236 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004283/0.9254, allocations: 2.808 MB / 1.239 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.9272, allocations: 0.5136 MB / 1.239 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007405/0.928, allocations: 260.5 kB / 1.24 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.9281, allocations: 85.09 kB / 1.24 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.9281, allocations: 30.56 kB / 1.24 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.983e-06/0.9281, allocations: 8 kB / 1.24 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24): time 0.01257/0.9407, allocations: 3.064 MB / 1.243 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.9408, allocations: 59.34 kB / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005475/0.9414, allocations: 401.6 kB / 1.243 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.594e-05/0.9414, allocations: 33.64 kB / 1.243 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.9416, allocations: 239.8 kB / 1.243 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-05/0.9417, allocations: 86.75 kB / 1.244 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.9419, allocations: 77.58 kB / 1.244 GB, free: 10.6 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.9421, allocations: 338.8 kB / 1.244 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009792/0.943, allocations: 364.5 kB / 1.244 GB, free: 9.902 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.9441, allocations: 429.5 kB / 1.245 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.946, allocations: 0.7543 MB / 1.245 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.9461, allocations: 0 / 1.245 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005153/0.9512, allocations: 1.495 MB / 1.247 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.9513, allocations: 4 kB / 1.247 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.9513, allocations: 4 kB / 1.247 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003514/0.9548, allocations: 0.7741 MB / 1.248 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006734/0.9555, allocations: 131.8 kB / 1.248 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006988/0.9625, allocations: 4.837 MB / 1.253 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008908/0.9634, allocations: 111.9 kB / 1.253 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.99e-05/0.9635, allocations: 23.92 kB / 1.253 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001238/0.9647, allocations: 0.523 MB / 1.253 GB, free: 476 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000997/0.9657, allocations: 416.2 kB / 1.254 GB, free: 28 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001937/0.9677, allocations: 0.7376 MB / 1.254 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.126e-06/0.9677, allocations: 0 / 1.254 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004332/0.972, allocations: 1.266 MB / 1.256 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.9721, allocations: 6.188 kB / 1.256 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.9721, allocations: 4.141 kB / 1.256 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/0.9744, allocations: 0.5002 MB / 1.256 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007162/0.9751, allocations: 139.8 kB / 1.256 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003575/0.9787, allocations: 2.601 MB / 1.259 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008346/0.9796, allocations: 111.9 kB / 1.259 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.9796, allocations: 19.92 kB / 1.259 GB, free: 10.47 MB / 0.9825 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.0002125/0.9798, allocations: 196.7 kB / 1.259 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.98, allocations: 31.62 kB / 1.259 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004664/0.9846, allocations: 1.36 MB / 1.26 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.9847, allocations: 3.984 kB / 1.26 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.9847, allocations: 7.938 kB / 1.26 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.985, allocations: 160.7 kB / 1.261 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.368e-05/0.9851, allocations: 4 kB / 1.261 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.9857, allocations: 87.8 kB / 1.261 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.9859, allocations: 23.95 kB / 1.261 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003492/0.9894, allocations: 1.161 MB / 1.262 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002331/0.9917, allocations: 1.115 MB / 1.263 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007134/0.9924, allocations: 319.6 kB / 1.263 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004164/0.9929, allocations: 303.1 kB / 1.263 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of Backend: time 4.81e-07/0.9929, allocations: 0 / 1.263 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003954/0.9968, allocations: 1.49 MB / 1.265 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of SimCode: time 0.001965/0.9988, allocations: 1.433 MB / 1.266 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of Templates: time 0.02341/1.022, allocations: 15.46 MB / 1.281 GB, free: 3.242 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches