Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 100.1 kB / 15.88 MB, free: 12 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.00225/0.00225, allocations: 199.1 kB / 16.79 MB, free: 6.809 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.86/2.86, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 64.91 kB / 0.899 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3314, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009136/0.3406, allocations: 6.737 MB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005252/0.3459, allocations: 3.056 MB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009864/0.3469, allocations: 19.88 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003167/0.3501, allocations: 0.8902 MB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002185/0.3523, allocations: 481.7 kB / 1.064 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.3539, allocations: 393.6 kB / 1.064 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002438/0.3563, allocations: 1.587 MB / 1.066 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.3577, allocations: 0.6367 MB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009906/0.3587, allocations: 426.2 kB / 1.067 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.3597, allocations: 0.5215 MB / 1.067 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.36, allocations: 47.94 kB / 1.067 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.3612, allocations: 463 kB / 1.068 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0005231/0.3617, allocations: 287.2 kB / 1.068 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0009475/0.3627, allocations: 429.7 kB / 1.068 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.3642, allocations: 0.9275 MB / 1.069 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3642, allocations: 0 / 1.069 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3642, allocations: 4 kB / 1.069 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.66e-05/0.3643, allocations: 0 / 1.069 GB, free: 7.422 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.003035/0.3673, allocations: 1.153 MB / 1.07 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.3674, allocations: 19.84 kB / 1.07 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.3692, allocations: 235.6 kB / 1.071 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.3704, allocations: 0.5492 MB / 1.071 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.3704, allocations: 45.67 kB / 1.071 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000199/0.3706, allocations: 60.38 kB / 1.071 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.3724, allocations: 1.093 MB / 1.072 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.3724, allocations: 4 kB / 1.072 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.832e-05/0.3725, allocations: 28 kB / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/0.3727, allocations: 85.27 kB / 1.072 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.3739, allocations: 0.7581 MB / 1.073 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.3794, allocations: 5.893 MB / 1.079 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.3803, allocations: 0.5535 MB / 1.079 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004327/0.3808, allocations: 326 kB / 1.08 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3808, allocations: 4.438 kB / 1.08 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.3809, allocations: 39 kB / 1.08 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.494e-06/0.3809, allocations: 0 / 1.08 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.003936/0.3848, allocations: 1.99 MB / 1.082 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3849, allocations: 55.84 kB / 1.082 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007107/0.3856, allocations: 0.5509 MB / 1.082 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.3857, allocations: 41.7 kB / 1.082 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.386, allocations: 414.9 kB / 1.083 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.3861, allocations: 173.6 kB / 1.083 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002012/0.3863, allocations: 122.5 kB / 1.083 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3865, allocations: 378.7 kB / 1.083 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.3869, allocations: 273.8 kB / 1.084 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/0.3875, allocations: 493 kB / 1.084 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.3886, allocations: 0.8132 MB / 1.085 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.3886, allocations: 4 kB / 1.085 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001943/0.3905, allocations: 1.087 MB / 1.086 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3906, allocations: 8 kB / 1.086 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3906, allocations: 4 kB / 1.086 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009028/0.3915, allocations: 279.2 kB / 1.086 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.392, allocations: 131.7 kB / 1.086 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006385/0.3984, allocations: 6.599 MB / 1.093 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006554/0.3991, allocations: 39.97 kB / 1.093 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.501e-05/0.3992, allocations: 24 kB / 1.093 GB, free: 13.61 MB / 0.8575 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,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.0004424/0.3996, allocations: 257.6 kB / 1.093 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3998, allocations: 75.09 kB / 1.093 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.4014, allocations: 0.8885 MB / 1.094 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4014, allocations: 8 kB / 1.094 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.4015, allocations: 4 kB / 1.094 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.4015, allocations: 3.984 kB / 1.094 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.4043, allocations: 1.72 MB / 1.096 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4043, allocations: 7.938 kB / 1.096 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.4046, allocations: 59.89 kB / 1.096 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008101/0.4054, allocations: 263.4 kB / 1.096 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.4054, allocations: 8 kB / 1.096 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006241/0.4117, allocations: 6.587 MB / 1.103 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4117, allocations: 4.219 kB / 1.103 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.4134, allocations: 0.9838 MB / 1.103 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.4137, allocations: 200.2 kB / 1.104 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.4139, allocations: 11.94 kB / 1.104 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004031/0.4143, allocations: 27.97 kB / 1.104 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.4144, allocations: 47.88 kB / 1.104 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.4145, allocations: 19.94 kB / 1.104 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004819/0.4149, allocations: 383.1 kB / 1.104 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.415, allocations: 0 / 1.104 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008982/0.4159, allocations: 228 kB / 1.104 GB, free: 1.125 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001726/0.416, allocations: 117.2 kB / 1.104 GB, free: 1 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00202/0.4181, allocations: 1.264 MB / 1.106 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4181, allocations: 4 kB / 1.106 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.4193, allocations: 0.8816 MB / 1.107 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.4204, allocations: 206 kB / 1.107 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.423, allocations: 1.709 MB / 1.108 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006353/0.4237, allocations: 1.005 MB / 1.109 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.4239, allocations: 51.44 kB / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of SimCode: time 8.01e-07/0.4239, allocations: 0 / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.02572/0.4496, allocations: 20.64 MB / 1.13 GB, free: 7.109 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches