Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,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_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, 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.001537/0.001538, allocations: 200 kB / 16.79 MB, free: 6.828 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.466/1.466, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.766/2.766, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.02 kB / 0.899 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3551, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008041/0.3632, allocations: 6.094 MB / 1.059 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005234/0.3685, allocations: 3.169 MB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007926/0.3693, allocations: 27.81 kB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002557/0.3719, allocations: 0.8681 MB / 1.063 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001439/0.3733, allocations: 438 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.3746, allocations: 441.6 kB / 1.064 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001745/0.3764, allocations: 1.463 MB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.3776, allocations: 0.625 MB / 1.066 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007783/0.3784, allocations: 390.3 kB / 1.066 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007984/0.3792, allocations: 490.1 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.3794, allocations: 44 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.3805, allocations: 0.5769 MB / 1.067 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003931/0.381, allocations: 279.2 kB / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005899/0.3816, allocations: 382 kB / 1.068 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.3827, allocations: 0.9002 MB / 1.069 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3827, allocations: 4 kB / 1.069 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3827, allocations: 4 kB / 1.069 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.562e-05/0.3828, allocations: 0 / 1.069 GB, free: 8.141 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001954/0.3847, allocations: 1.045 MB / 1.07 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3848, allocations: 11.97 kB / 1.07 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00158/0.3864, allocations: 227.7 kB / 1.07 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008189/0.3872, allocations: 0.5259 MB / 1.07 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.3873, allocations: 45.67 kB / 1.07 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.3874, allocations: 72.27 kB / 1.07 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.3889, allocations: 1.03 MB / 1.071 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.389, allocations: 11.94 kB / 1.071 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-05/0.3891, allocations: 31.98 kB / 1.071 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.73e-05/0.3892, allocations: 65.27 kB / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.3903, allocations: 0.6918 MB / 1.072 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/0.3954, allocations: 5.749 MB / 1.078 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008381/0.3963, allocations: 0.6077 MB / 1.078 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007507/0.397, allocations: 416.6 kB / 1.079 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.3971, allocations: 4 kB / 1.079 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.3971, allocations: 38.56 kB / 1.079 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=41): time 2.234e-06/0.3971, allocations: 0 / 1.079 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.004315/0.4014, allocations: 2.057 MB / 1.081 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.4015, allocations: 55.41 kB / 1.081 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004953/0.402, allocations: 454.7 kB / 1.081 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.4021, allocations: 33.7 kB / 1.081 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.4023, allocations: 383 kB / 1.082 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.4024, allocations: 149.9 kB / 1.082 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.4026, allocations: 114.2 kB / 1.082 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001978/0.4028, allocations: 362.8 kB / 1.082 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/0.4032, allocations: 253.1 kB / 1.083 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.4038, allocations: 453 kB / 1.083 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.4049, allocations: 0.7558 MB / 1.084 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.4049, allocations: 0 / 1.084 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002159/0.4071, allocations: 1.074 MB / 1.085 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4071, allocations: 8 kB / 1.085 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.4072, allocations: 11.94 kB / 1.085 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.4084, allocations: 331.1 kB / 1.085 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/0.4087, allocations: 99.81 kB / 1.085 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007236/0.416, allocations: 6.943 MB / 1.092 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.4164, allocations: 36.02 kB / 1.092 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/0.4164, allocations: 24 kB / 1.092 GB, free: 14.46 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003718/0.4168, allocations: 249.5 kB / 1.092 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.417, allocations: 55.34 kB / 1.092 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/0.4187, allocations: 0.912 MB / 1.093 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.4187, allocations: 8 kB / 1.093 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4187, allocations: 4 kB / 1.093 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.4187, allocations: 3.984 kB / 1.093 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.4215, allocations: 1.696 MB / 1.095 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4215, allocations: 4.188 kB / 1.095 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.4217, allocations: 43.91 kB / 1.095 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000965/0.4227, allocations: 323 kB / 1.095 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.4227, allocations: 16.08 kB / 1.095 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006662/0.4294, allocations: 6.947 MB / 1.102 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.4294, allocations: 7.828 kB / 1.102 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.4311, allocations: 1.007 MB / 1.103 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.4314, allocations: 176.4 kB / 1.103 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.4315, allocations: 8 kB / 1.103 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.4319, allocations: 19.97 kB / 1.103 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.432, allocations: 43.95 kB / 1.103 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.432, allocations: 15.94 kB / 1.103 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003499/0.4324, allocations: 310.8 kB / 1.104 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4324, allocations: 0 / 1.104 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008048/0.4332, allocations: 192 kB / 1.104 GB, free: 1.707 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.0001536/0.4333, allocations: 112.3 kB / 1.104 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001869/0.4352, allocations: 1.2 MB / 1.105 GB, free: 344 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4352, allocations: 3.938 kB / 1.105 GB, free: 340 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.4364, allocations: 0.858 MB / 1.106 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009984/0.4375, allocations: 185.7 kB / 1.106 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.4399, allocations: 1.593 MB / 1.108 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.4405, allocations: 0.992 MB / 1.109 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.4407, allocations: 39.44 kB / 1.109 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.4407, allocations: 0 / 1.109 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of Templates: time 0.02167/0.4623, allocations: 18.44 MB / 1.127 GB, free: 10.13 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches