Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00678/0.00678, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001377/0.001377, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.565/2.565, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.09 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.059/1.061, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00816/1.069, allocations: 6.3 MB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.007176/1.076, allocations: 4.542 MB / 1.177 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/1.077, allocations: 19.94 kB / 1.177 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002823/1.08, allocations: 0.9077 MB / 1.178 GB, free: 8.023 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002589/1.082, allocations: 0.7912 MB / 1.179 GB, free: 7.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001036/1.083, allocations: 329 kB / 1.179 GB, free: 6.91 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001838/1.085, allocations: 1.133 MB / 1.18 GB, free: 5.773 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/1.086, allocations: 0.682 MB / 1.181 GB, free: 5.086 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008842/1.087, allocations: 482.4 kB / 1.181 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009847/1.088, allocations: 0.4903 MB / 1.182 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001845/1.088, allocations: 68 kB / 1.182 GB, free: 4.055 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006712/1.089, allocations: 287.5 kB / 1.182 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002744/1.089, allocations: 243.3 kB / 1.182 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005608/1.09, allocations: 413.9 kB / 1.183 GB, free: 3.129 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001619/1.091, allocations: 1.077 MB / 1.184 GB, free: 2.051 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/1.091, allocations: 4 kB / 1.184 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.803e-06/1.091, allocations: 0 / 1.184 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.322e-05/1.092, allocations: 0 / 1.184 GB, free: 2.047 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002689/1.094, allocations: 1.113 MB / 1.185 GB, free: 0.8828 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/1.094, allocations: 8.031 kB / 1.185 GB, free: 0.875 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003144/1.097, allocations: 0.6362 MB / 1.186 GB, free: 240 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/1.099, allocations: 0.5819 MB / 1.186 GB, free: 15.61 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/1.099, allocations: 37.69 kB / 1.186 GB, free: 15.57 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/1.099, allocations: 60.11 kB / 1.186 GB, free: 15.52 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/1.101, allocations: 1.01 MB / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/1.101, allocations: 0 / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.035e-05/1.101, allocations: 27.94 kB / 1.187 GB, free: 14.43 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/1.101, allocations: 49.28 kB / 1.187 GB, free: 14.39 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002562/1.104, allocations: 1.004 MB / 1.188 GB, free: 13.38 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005308/1.109, allocations: 3.498 MB / 1.192 GB, free: 9.574 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/1.111, allocations: 495.3 kB / 1.192 GB, free: 9.082 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000553/1.111, allocations: 240.6 kB / 1.192 GB, free: 8.844 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/1.111, allocations: 0 / 1.192 GB, free: 8.844 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/1.111, allocations: 34.56 kB / 1.192 GB, free: 8.801 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/1.111, allocations: 0 / 1.192 GB, free: 8.801 MB / 0.92 GB Notification: Performance of matching and sorting (n=43): time 0.006984/1.118, allocations: 2.044 MB / 1.194 GB, free: 6.715 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/1.118, allocations: 55.41 kB / 1.195 GB, free: 6.648 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008934/1.119, allocations: 0.5666 MB / 1.195 GB, free: 6.074 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/1.119, allocations: 29.7 kB / 1.195 GB, free: 6.039 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/1.12, allocations: 360.8 kB / 1.195 GB, free: 5.684 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/1.12, allocations: 162.6 kB / 1.196 GB, free: 5.523 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/1.12, allocations: 86.2 kB / 1.196 GB, free: 5.434 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001761/1.12, allocations: 382.7 kB / 1.196 GB, free: 5.051 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006708/1.121, allocations: 258.9 kB / 1.196 GB, free: 4.793 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007076/1.121, allocations: 365.8 kB / 1.197 GB, free: 4.391 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/1.123, allocations: 0.6148 MB / 1.197 GB, free: 3.734 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/1.123, allocations: 0 / 1.197 GB, free: 3.734 MB / 0.92 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002467/1.125, allocations: 0.943 MB / 1.198 GB, free: 2.766 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/1.125, allocations: 4 kB / 1.198 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-05/1.125, allocations: 4.344 kB / 1.198 GB, free: 2.758 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/1.127, allocations: 272.8 kB / 1.198 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006282/1.127, allocations: 119.8 kB / 1.199 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007906/1.135, allocations: 9.123 MB / 1.207 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007878/1.136, allocations: 39.95 kB / 1.207 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.916e-05/1.136, allocations: 20 kB / 1.208 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001051/1.137, allocations: 441 kB / 1.208 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007614/1.138, allocations: 359 kB / 1.208 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00141/1.139, allocations: 0.609 MB / 1.209 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.121e-06/1.139, allocations: 0 / 1.209 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002608/1.142, allocations: 1.121 MB / 1.21 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/1.142, allocations: 11.94 kB / 1.21 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/1.142, allocations: 0 / 1.21 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008541/1.143, allocations: 225.3 kB / 1.21 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006497/1.144, allocations: 123.8 kB / 1.21 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006951/1.151, allocations: 8.796 MB / 1.219 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006937/1.151, allocations: 44.02 kB / 1.219 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/1.151, allocations: 23.98 kB / 1.219 GB, free: 11.59 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000243/1.152, allocations: 208.1 kB / 1.219 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/1.152, allocations: 67.58 kB / 1.219 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/1.152, allocations: 86.38 kB / 1.219 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/1.152, allocations: 4 kB / 1.219 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/1.152, allocations: 4 kB / 1.219 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/1.152, allocations: 3.984 kB / 1.219 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009027/1.153, allocations: 0.6455 MB / 1.22 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.153, allocations: 0 / 1.22 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/1.153, allocations: 83.91 kB / 1.22 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009866/1.154, allocations: 260.8 kB / 1.22 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/1.155, allocations: 12 kB / 1.22 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007452/1.162, allocations: 9.058 MB / 1.229 GB, free: 260 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.162, allocations: 3.938 kB / 1.229 GB, free: 256 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/1.164, allocations: 0.9252 MB / 1.23 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/1.165, allocations: 188.6 kB / 1.23 GB, free: 15.08 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/1.165, allocations: 8 kB / 1.23 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/1.165, allocations: 39.95 kB / 1.23 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/1.166, allocations: 43.88 kB / 1.23 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/1.166, allocations: 12 kB / 1.23 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0005327/1.166, allocations: 399.1 kB / 1.231 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/1.166, allocations: 0 / 1.231 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001199/1.167, allocations: 304 kB / 1.231 GB, free: 14.3 MB / 0.9669 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001711/1.168, allocations: 115.2 kB / 1.231 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004013/1.172, allocations: 2.357 MB / 1.233 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.172, allocations: 0 / 1.233 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001514/1.173, allocations: 1.004 MB / 1.234 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/1.175, allocations: 241.3 kB / 1.235 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/1.178, allocations: 1.311 MB / 1.236 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007348/1.178, allocations: 0.9743 MB / 1.237 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0006198/1.179, allocations: 161.3 kB / 1.237 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/1.179, allocations: 47.44 kB / 1.237 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of SimCode: time 1.092e-06/1.179, allocations: 0 / 1.237 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of Templates: time 0.02482/1.204, allocations: 13.59 MB / 1.25 GB, free: 10.36 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches