Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.767/2.767, allocations: 472.6 MB / 0.7451 GB, free: 4.754 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 70.98 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3213, allocations: 159.9 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01187/0.3332, allocations: 10.92 MB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01211/0.3453, allocations: 8.799 MB / 1.087 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.3465, allocations: 55.62 kB / 1.087 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003798/0.3504, allocations: 1.676 MB / 1.089 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003767/0.3542, allocations: 1.529 MB / 1.091 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001512/0.3557, allocations: 0.6744 MB / 1.091 GB, free: 2.77 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002168/0.3579, allocations: 2.271 MB / 1.093 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.3595, allocations: 1.38 MB / 1.095 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.3609, allocations: 0.9809 MB / 1.096 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.3621, allocations: 1.027 MB / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.3623, allocations: 136 kB / 1.097 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3637, allocations: 0.7955 MB / 1.098 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000451/0.3641, allocations: 0.5687 MB / 1.098 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000763/0.3649, allocations: 0.8822 MB / 1.099 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002291/0.3672, allocations: 2.535 MB / 1.102 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3672, allocations: 0 / 1.102 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3672, allocations: 4 kB / 1.102 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.583e-05/0.3673, allocations: 0 / 1.102 GB, free: 8.125 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00297/0.3703, allocations: 2.031 MB / 1.104 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3703, allocations: 12.03 kB / 1.104 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.3809, allocations: 2.042 MB / 1.106 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.3827, allocations: 1.13 MB / 1.107 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/0.3828, allocations: 78.7 kB / 1.107 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002088/0.383, allocations: 120.1 kB / 1.107 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004922/0.3879, allocations: 2.478 MB / 1.109 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.605e-05/0.388, allocations: 11.84 kB / 1.109 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.3881, allocations: 55.98 kB / 1.109 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000331/0.3885, allocations: 130.1 kB / 1.109 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006795/0.3953, allocations: 2.541 MB / 1.112 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.4072, allocations: 10.07 MB / 1.122 GB, free: 2.488 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005978/0.4132, allocations: 1.962 MB / 1.124 GB, free: 0.5039 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/0.4158, allocations: 0.9699 MB / 1.125 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.4159, allocations: 12.44 kB / 1.125 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.4159, allocations: 39 kB / 1.125 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=53): time 2.825e-06/0.4159, allocations: 0 / 1.125 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of matching and sorting (n=81): time 0.03053/0.4464, allocations: 8.703 MB / 1.133 GB, free: 6.707 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.4465, allocations: 60.06 kB / 1.133 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.4479, allocations: 1.101 MB / 1.134 GB, free: 5.516 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9.581e-05/0.4481, allocations: 41.7 kB / 1.134 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004833/0.4485, allocations: 0.7419 MB / 1.135 GB, free: 4.719 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.4488, allocations: 279.9 kB / 1.135 GB, free: 4.441 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.4492, allocations: 202.4 kB / 1.136 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4493, allocations: 342 kB / 1.136 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002938/0.4523, allocations: 1.075 MB / 1.137 GB, free: 2.82 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003078/0.4554, allocations: 1.301 MB / 1.138 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005931/0.4613, allocations: 2.386 MB / 1.141 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.4613, allocations: 0 / 1.141 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008602/0.4699, allocations: 3.277 MB / 1.144 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.47, allocations: 8 kB / 1.144 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.47, allocations: 7.938 kB / 1.144 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002723/0.4727, allocations: 0.7911 MB / 1.145 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/0.4746, allocations: 427.2 kB / 1.145 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/0.4899, allocations: 15.93 MB / 1.16 GB, free: 9.328 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/0.4922, allocations: 291.5 kB / 1.161 GB, free: 9.043 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.4924, allocations: 51.97 kB / 1.161 GB, free: 8.992 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007574/0.4932, allocations: 402 kB / 1.161 GB, free: 8.59 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003479/0.4936, allocations: 142.3 kB / 1.161 GB, free: 8.449 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008749/0.5023, allocations: 3.198 MB / 1.164 GB, free: 5.211 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.5024, allocations: 15.88 kB / 1.164 GB, free: 5.195 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.533e-05/0.5024, allocations: 8 kB / 1.164 GB, free: 5.188 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.5024, allocations: 7.984 kB / 1.164 GB, free: 5.18 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.5136, allocations: 4.905 MB / 1.169 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.5136, allocations: 7.938 kB / 1.169 GB, free: 144 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.5152, allocations: 351.4 kB / 1.17 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002386/0.5176, allocations: 0.7014 MB / 1.17 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.77e-05/0.5177, allocations: 31.97 kB / 1.17 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/0.5325, allocations: 15.54 MB / 1.186 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5325, allocations: 4 kB / 1.186 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008102/0.5407, allocations: 3.038 MB / 1.188 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000826/0.5415, allocations: 383.2 kB / 1.189 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/0.5419, allocations: 31.92 kB / 1.189 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/0.544, allocations: 287.5 kB / 1.189 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003132/0.5443, allocations: 80.48 kB / 1.189 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5444, allocations: 39.97 kB / 1.189 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001082/0.5455, allocations: 0.7405 MB / 1.19 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5455, allocations: 0 / 1.19 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001612/0.5471, allocations: 428 kB / 1.19 GB, free: 9.27 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002878/0.5474, allocations: 135.1 kB / 1.191 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.008717/0.5562, allocations: 3.758 MB / 1.194 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.5562, allocations: 0 / 1.194 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004896/0.5611, allocations: 2.364 MB / 1.197 GB, free: 2.797 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/0.5636, allocations: 0.5291 MB / 1.197 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007853/0.5715, allocations: 3.49 MB / 1.2 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.5727, allocations: 1.392 MB / 1.202 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001622/0.5744, allocations: 375.9 kB / 1.202 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.5748, allocations: 103.4 kB / 1.202 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of SimCode: time 7.11e-07/0.5748, allocations: 0 / 1.202 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of Templates: time 0.04863/0.6234, allocations: 30.22 MB / 1.232 GB, free: 15.03 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches