Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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_latest_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_latest_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.001304/0.001304, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01167/0.01167, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.433/1.433, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.743/2.743, allocations: 462.6 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 5.875 kB / 0.9028 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3383, allocations: 159.6 MB / 1.059 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.007857/0.3462, allocations: 5.887 MB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007294/0.3536, allocations: 4.448 MB / 1.069 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008271/0.3544, allocations: 23.88 kB / 1.069 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007035/0.3552, allocations: 154.9 kB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002414/0.3576, allocations: 0.7074 MB / 1.07 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009499/0.3586, allocations: 295.1 kB / 1.07 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001929/0.3605, allocations: 1.448 MB / 1.071 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008438/0.3613, allocations: 0.5263 MB / 1.072 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007343/0.3621, allocations: 402.3 kB / 1.072 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008903/0.363, allocations: 474 kB / 1.073 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.3631, allocations: 35.94 kB / 1.073 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006631/0.3638, allocations: 303.4 kB / 1.073 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.3641, allocations: 203.3 kB / 1.073 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004906/0.3646, allocations: 387.7 kB / 1.074 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.3658, allocations: 1.039 MB / 1.075 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3658, allocations: 0 / 1.075 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3659, allocations: 0 / 1.075 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.442e-05/0.3659, allocations: 0 / 1.075 GB, free: 5.109 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001917/0.3678, allocations: 0.9661 MB / 1.076 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3679, allocations: 12.02 kB / 1.076 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003538/0.3714, allocations: 0.6514 MB / 1.076 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009798/0.3724, allocations: 0.5385 MB / 1.077 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.3725, allocations: 41.67 kB / 1.077 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3726, allocations: 52.12 kB / 1.077 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.3748, allocations: 1.029 MB / 1.078 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.3749, allocations: 3.938 kB / 1.078 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.849e-05/0.375, allocations: 23.98 kB / 1.078 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.728e-05/0.375, allocations: 49.28 kB / 1.078 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.3777, allocations: 1.016 MB / 1.079 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004578/0.3823, allocations: 3.521 MB / 1.082 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3839, allocations: 0.5237 MB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006191/0.3845, allocations: 244.6 kB / 1.083 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.3846, allocations: 7.984 kB / 1.083 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001169/0.3847, allocations: 38.56 kB / 1.083 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.3847, allocations: 4 kB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.007414/0.3921, allocations: 2.224 MB / 1.085 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3922, allocations: 59.41 kB / 1.085 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006717/0.3929, allocations: 0.5742 MB / 1.086 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.3929, allocations: 33.7 kB / 1.086 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.3932, allocations: 356.2 kB / 1.086 GB, free: 8.621 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3934, allocations: 149.8 kB / 1.086 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/0.3934, allocations: 41.7 kB / 1.086 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001926/0.3936, allocations: 378.7 kB / 1.087 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007423/0.3944, allocations: 272.9 kB / 1.087 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000794/0.3952, allocations: 389.7 kB / 1.087 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.3967, allocations: 0.6733 MB / 1.088 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3968, allocations: 0 / 1.088 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002586/0.3994, allocations: 0.9742 MB / 1.089 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.3995, allocations: 184.8 kB / 1.089 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3995, allocations: 4 kB / 1.089 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.4007, allocations: 272.9 kB / 1.089 GB, free: 5.125 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000702/0.4014, allocations: 127.8 kB / 1.09 GB, free: 5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007833/0.4092, allocations: 8.486 MB / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007263/0.41, allocations: 55.95 kB / 1.098 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.4101, allocations: 16 kB / 1.098 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.4101, allocations: 4 kB / 1.098 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002636/0.4127, allocations: 1.096 MB / 1.099 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.4127, allocations: 4 kB / 1.099 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007885/0.4135, allocations: 225.3 kB / 1.099 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006482/0.4142, allocations: 135.8 kB / 1.099 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00664/0.4208, allocations: 8.156 MB / 1.107 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006825/0.4215, allocations: 51.95 kB / 1.107 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.4216, allocations: 20 kB / 1.107 GB, free: 1.074 MB / 0.8575 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.0004494/0.4221, allocations: 322.5 kB / 1.108 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4222, allocations: 71.16 kB / 1.108 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.4223, allocations: 78.38 kB / 1.108 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-06/0.4223, allocations: 4 kB / 1.108 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.4224, allocations: 4 kB / 1.108 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.4224, allocations: 3.984 kB / 1.108 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000779/0.4232, allocations: 0.6455 MB / 1.108 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4232, allocations: 4 kB / 1.108 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.4237, allocations: 99.84 kB / 1.109 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009902/0.4247, allocations: 261 kB / 1.109 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.4247, allocations: 11.98 kB / 1.109 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007003/0.4317, allocations: 8.427 MB / 1.117 GB, free: 6.277 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4318, allocations: 0 / 1.117 GB, free: 6.277 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/0.4343, allocations: 0.9639 MB / 1.118 GB, free: 5.277 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.4345, allocations: 180.2 kB / 1.118 GB, free: 5.082 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.626e-05/0.4346, allocations: 15.94 kB / 1.118 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.4352, allocations: 51.94 kB / 1.118 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.4353, allocations: 43.94 kB / 1.118 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.4354, allocations: 8 kB / 1.118 GB, free: 4.965 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005585/0.4359, allocations: 399.1 kB / 1.119 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.91e-07/0.436, allocations: 0 / 1.119 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00129/0.4372, allocations: 300 kB / 1.119 GB, free: 4.289 MB / 0.8731 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.0002028/0.4375, allocations: 119.2 kB / 1.119 GB, free: 4.164 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00431/0.4418, allocations: 2.419 MB / 1.121 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4418, allocations: 0 / 1.121 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.4432, allocations: 1.023 MB / 1.122 GB, free: 500 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4443, allocations: 211.7 kB / 1.123 GB, free: 292 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.447, allocations: 1.616 MB / 1.124 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.4476, allocations: 0.982 MB / 1.125 GB, free: 13.63 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006074/0.4482, allocations: 145.4 kB / 1.125 GB, free: 13.48 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.4483, allocations: 43.42 kB / 1.125 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of SimCode: time 7.62e-07/0.4483, allocations: 0 / 1.125 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of Templates: time 0.02481/0.4731, allocations: 12.85 MB / 1.138 GB, free: 0.7305 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches