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 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,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.001406/0.001406, 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.001964/0.001964, 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.475/1.475, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.843/2.843, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 66.52 kB / 0.8991 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.4054, allocations: 157.4 MB / 1.053 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.0146/0.42, allocations: 10.86 MB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01362/0.4337, allocations: 8.796 MB / 1.072 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.4354, allocations: 51.69 kB / 1.072 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004446/0.4399, allocations: 1.56 MB / 1.074 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004866/0.4447, allocations: 1.394 MB / 1.075 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.4467, allocations: 0.6211 MB / 1.076 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003527/0.4502, allocations: 2.892 MB / 1.078 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002282/0.4525, allocations: 1.333 MB / 1.08 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.4542, allocations: 0.8831 MB / 1.08 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001873/0.4561, allocations: 1.027 MB / 1.081 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004357/0.4566, allocations: 91.94 kB / 1.082 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002185/0.4588, allocations: 0.9084 MB / 1.082 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008897/0.4597, allocations: 0.5218 MB / 1.083 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.4615, allocations: 0.8237 MB / 1.084 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.4644, allocations: 2.011 MB / 1.086 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4644, allocations: 4 kB / 1.086 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4644, allocations: 0 / 1.086 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.884e-05/0.4645, allocations: 0 / 1.086 GB, free: 6.398 MB / 0.8419 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.004809/0.4694, allocations: 2.014 MB / 1.088 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.4694, allocations: 11.97 kB / 1.088 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01076/0.4802, allocations: 2.05 MB / 1.09 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/0.4827, allocations: 1.119 MB / 1.091 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.4828, allocations: 90.69 kB / 1.091 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000447/0.4833, allocations: 120.1 kB / 1.091 GB, free: 0.8789 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006126/0.4894, allocations: 2.482 MB / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.642e-05/0.4895, allocations: 7.938 kB / 1.093 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.4897, allocations: 55.98 kB / 1.094 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003446/0.4901, allocations: 134.1 kB / 1.094 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007362/0.4974, allocations: 2.533 MB / 1.096 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01536/0.5128, allocations: 10.08 MB / 1.106 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00576/0.5186, allocations: 1.952 MB / 1.108 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002565/0.5212, allocations: 0.9738 MB / 1.109 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.5213, allocations: 12.42 kB / 1.109 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.5213, allocations: 35 kB / 1.109 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 2.174e-06/0.5213, allocations: 4 kB / 1.109 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.03026/0.5516, allocations: 8.71 MB / 1.117 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.5517, allocations: 60.06 kB / 1.117 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.5533, allocations: 1.097 MB / 1.118 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.5534, allocations: 37.7 kB / 1.119 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005455/0.554, allocations: 0.7496 MB / 1.119 GB, free: 2.992 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.5543, allocations: 276 kB / 1.12 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004191/0.5547, allocations: 194.5 kB / 1.12 GB, free: 2.52 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5548, allocations: 341.9 kB / 1.12 GB, free: 2.18 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5576, allocations: 1.079 MB / 1.121 GB, free: 1.102 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/0.5604, allocations: 1.305 MB / 1.122 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005499/0.5659, allocations: 2.378 MB / 1.125 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.566, allocations: 0 / 1.125 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008519/0.5745, allocations: 3.281 MB / 1.128 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.084e-05/0.5746, allocations: 8 kB / 1.128 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.5746, allocations: 8 kB / 1.128 GB, free: 9.898 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002979/0.5776, allocations: 0.7911 MB / 1.129 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/0.5795, allocations: 411.3 kB / 1.129 GB, free: 8.68 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/0.596, allocations: 14.7 MB / 1.143 GB, free: 8.906 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002271/0.5983, allocations: 295.6 kB / 1.144 GB, free: 8.617 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.5986, allocations: 51.97 kB / 1.144 GB, free: 8.566 MB / 0.9044 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.0009488/0.5995, allocations: 397.4 kB / 1.144 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004567/0.6, allocations: 142.3 kB / 1.144 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008524/0.6085, allocations: 3.21 MB / 1.147 GB, free: 4.777 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.6086, allocations: 8.188 kB / 1.147 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/0.6086, allocations: 8 kB / 1.147 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.6086, allocations: 7.969 kB / 1.147 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.6199, allocations: 4.912 MB / 1.152 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.62, allocations: 4.344 kB / 1.152 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.6215, allocations: 355.4 kB / 1.153 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002525/0.6241, allocations: 0.6979 MB / 1.153 GB, free: 14.64 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.6242, allocations: 31.97 kB / 1.153 GB, free: 14.61 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/0.6396, allocations: 14.31 MB / 1.167 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.6396, allocations: 0 / 1.167 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00803/0.6477, allocations: 3.046 MB / 1.17 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008733/0.6486, allocations: 387.1 kB / 1.171 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/0.6489, allocations: 19.94 kB / 1.171 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00183/0.6508, allocations: 295.5 kB / 1.171 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.6511, allocations: 76.48 kB / 1.171 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.6512, allocations: 40.16 kB / 1.171 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001194/0.6524, allocations: 0.7443 MB / 1.172 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6524, allocations: 0 / 1.172 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001707/0.6541, allocations: 435.9 kB / 1.172 GB, free: 10.11 MB / 0.9356 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.000278/0.6544, allocations: 127.2 kB / 1.172 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.008132/0.6626, allocations: 3.617 MB / 1.176 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6626, allocations: 0 / 1.176 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.004815/0.6674, allocations: 2.367 MB / 1.178 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/0.6702, allocations: 494.7 kB / 1.179 GB, free: 3.305 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008418/0.6786, allocations: 4.166 MB / 1.183 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.6799, allocations: 1.388 MB / 1.184 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006184/0.6806, allocations: 127.3 kB / 1.184 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of SimCode: time 9.21e-07/0.6806, allocations: 0 / 1.184 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of Templates: time 0.6067/1.287, allocations: 74.97 MB / 1.257 GB, free: 178.7 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/jenkins1/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