Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007459/0.007458, allocations: 101.5 kB / 15.73 MB, free: 6.445 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.001532/0.001532, allocations: 193.9 kB / 16.67 MB, free: 6.355 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.733/2.733, allocations: 437 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 68.09 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4236, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.007928/0.4316, allocations: 3.067 MB / 1.17 GB, free: 3.73 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003501/0.4351, allocations: 1.336 MB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.4353, allocations: 4 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.4368, allocations: 338.7 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005088/0.4373, allocations: 143.3 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.4379, allocations: 135.6 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005399/0.4384, allocations: 307 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006901/0.4391, allocations: 236.2 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.4395, allocations: 127.6 kB / 1.172 GB, free: 1.121 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004121/0.4399, allocations: 139.5 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.44, allocations: 20 kB / 1.172 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004552/0.4404, allocations: 159.7 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.4406, allocations: 83.78 kB / 1.173 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.4408, allocations: 111.5 kB / 1.173 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0007024/0.4415, allocations: 342.7 kB / 1.173 GB, free: 288 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4415, allocations: 4 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of FrontEnd: time 3.216e-06/0.4415, allocations: 0 / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.4416, allocations: 0 / 1.173 GB, free: 284 kB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001327/0.4429, allocations: 0.5181 MB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 7.72e-05/0.443, allocations: 12.03 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009571/0.444, allocations: 80.72 kB / 1.174 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004834/0.4445, allocations: 248 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.4445, allocations: 12.75 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.4445, allocations: 20.31 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000768/0.4453, allocations: 303.5 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4453, allocations: 0 / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.4454, allocations: 4 kB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-05/0.4455, allocations: 28.3 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005823/0.4461, allocations: 193 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.4483, allocations: 1.448 MB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.4487, allocations: 183.7 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.397e-05/0.4488, allocations: 28.86 kB / 1.176 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.4489, allocations: 4 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4489, allocations: 38.55 kB / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.016e-05/0.4489, allocations: 0 / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.000714/0.4496, allocations: 223.6 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.4497, allocations: 59.41 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003754/0.4501, allocations: 207.3 kB / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.4502, allocations: 25.7 kB / 1.176 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.4504, allocations: 160 kB / 1.177 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.4504, allocations: 31.73 kB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.4506, allocations: 33.72 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0003001/0.4509, allocations: 326.8 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.451, allocations: 43.97 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.4512, allocations: 100.5 kB / 1.177 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.4514, allocations: 144.4 kB / 1.177 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.4515, allocations: 12 kB / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004563/0.4519, allocations: 190.2 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.452, allocations: 4 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.452, allocations: 4 kB / 1.177 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002258/0.4522, allocations: 24.83 kB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.4524, allocations: 32.22 kB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.4543, allocations: 1.422 MB / 1.179 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.4545, allocations: 23.77 kB / 1.179 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.4546, allocations: 12 kB / 1.179 GB, free: 9.535 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002919/0.4549, allocations: 145.7 kB / 1.179 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.815e-05/0.4549, allocations: 11.95 kB / 1.179 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.455, allocations: 21.39 kB / 1.179 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.455, allocations: 0 / 1.179 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.455, allocations: 4.062 kB / 1.179 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.455, allocations: 0 / 1.179 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009649/0.456, allocations: 447.2 kB / 1.18 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.456, allocations: 3.984 kB / 1.18 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/0.4561, allocations: 8 kB / 1.18 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/0.4562, allocations: 20.84 kB / 1.18 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.4562, allocations: 0 / 1.18 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.4577, allocations: 1.43 MB / 1.181 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4577, allocations: 0 / 1.181 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.4581, allocations: 220.5 kB / 1.181 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.4582, allocations: 96.95 kB / 1.181 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.4583, allocations: 7.984 kB / 1.181 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.4584, allocations: 0 / 1.181 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.4585, allocations: 4.062 kB / 1.181 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.4585, allocations: 8 kB / 1.181 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001921/0.4587, allocations: 139.2 kB / 1.181 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4587, allocations: 0 / 1.181 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006345/0.4594, allocations: 51.89 kB / 1.181 GB, free: 6.688 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001792/0.4596, allocations: 107.2 kB / 1.182 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005135/0.4601, allocations: 210.8 kB / 1.182 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4601, allocations: 4.125 kB / 1.182 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.4603, allocations: 146.7 kB / 1.182 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007242/0.4611, allocations: 39.84 kB / 1.182 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009216/0.462, allocations: 354.5 kB / 1.182 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.4625, allocations: 0.7475 MB / 1.183 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001323/0.4626, allocations: 25.53 kB / 1.183 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.711e-05/0.4627, allocations: 15.44 kB / 1.183 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of SimCode: time 4.81e-07/0.4627, allocations: 0 / 1.183 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of Templates: time 0.006948/0.4696, allocations: 1.783 MB / 1.185 GB, free: 3.203 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches