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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001463/0.001467, allocations: 108 kB / 15.6 MB, free: 132 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.001791/0.001791, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.821/2.821, allocations: 472.7 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 66.67 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3265, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00787/0.3344, allocations: 6.292 MB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007078/0.3416, allocations: 4.537 MB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008042/0.3424, allocations: 27.88 kB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.3449, allocations: 0.9099 MB / 1.08 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002345/0.3473, allocations: 0.7747 MB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008898/0.3482, allocations: 322.6 kB / 1.081 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001762/0.3499, allocations: 1.137 MB / 1.082 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.3511, allocations: 0.6929 MB / 1.083 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008947/0.3521, allocations: 462.4 kB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.3532, allocations: 0.4942 MB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002292/0.3534, allocations: 68 kB / 1.084 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007133/0.3541, allocations: 279.5 kB / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003234/0.3544, allocations: 243.3 kB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006338/0.3551, allocations: 417.9 kB / 1.084 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.3565, allocations: 1.055 MB / 1.085 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.3565, allocations: 0 / 1.085 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3565, allocations: 0 / 1.085 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.603e-05/0.3566, allocations: 4 kB / 1.085 GB, free: 8.648 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002698/0.3593, allocations: 1.102 MB / 1.087 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3593, allocations: 12.03 kB / 1.087 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003356/0.3627, allocations: 0.628 MB / 1.087 GB, free: 6.855 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.3637, allocations: 0.5424 MB / 1.088 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.896e-05/0.3638, allocations: 37.69 kB / 1.088 GB, free: 6.234 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.3639, allocations: 60.11 kB / 1.088 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.3662, allocations: 1.014 MB / 1.089 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3662, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.607e-05/0.3663, allocations: 24 kB / 1.089 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.513e-05/0.3664, allocations: 45.28 kB / 1.089 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/0.369, allocations: 1.012 MB / 1.09 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004817/0.3739, allocations: 3.497 MB / 1.093 GB, free: 240 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.3754, allocations: 0.4953 MB / 1.094 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005863/0.376, allocations: 233.2 kB / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.376, allocations: 4 kB / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3761, allocations: 34.56 kB / 1.094 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 2.525e-06/0.3761, allocations: 0 / 1.094 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43): time 0.007417/0.3835, allocations: 2.029 MB / 1.096 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.3836, allocations: 59.34 kB / 1.096 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009742/0.3846, allocations: 0.5666 MB / 1.097 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.273e-05/0.3847, allocations: 29.7 kB / 1.097 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.385, allocations: 360.2 kB / 1.097 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.3852, allocations: 153.8 kB / 1.097 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.3854, allocations: 86.16 kB / 1.097 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3856, allocations: 378.6 kB / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006917/0.3862, allocations: 262.9 kB / 1.098 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007512/0.387, allocations: 357.8 kB / 1.098 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.3885, allocations: 0.6187 MB / 1.099 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3885, allocations: 0 / 1.099 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00263/0.3911, allocations: 0.9352 MB / 1.1 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3912, allocations: 4 kB / 1.1 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.3912, allocations: 4 kB / 1.1 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.3923, allocations: 273.2 kB / 1.1 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.393, allocations: 119.8 kB / 1.1 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/0.4008, allocations: 9.119 MB / 1.109 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.4016, allocations: 39.95 kB / 1.109 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.181e-05/0.4017, allocations: 20 kB / 1.109 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001111/0.4028, allocations: 441 kB / 1.109 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008008/0.4036, allocations: 361.4 kB / 1.11 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00147/0.4051, allocations: 0.6051 MB / 1.11 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.007e-06/0.4051, allocations: 0 / 1.11 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002662/0.4078, allocations: 1.117 MB / 1.111 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4078, allocations: 11.94 kB / 1.111 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4078, allocations: 0 / 1.111 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000876/0.4087, allocations: 233.2 kB / 1.112 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006414/0.4094, allocations: 119.8 kB / 1.112 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006593/0.416, allocations: 8.797 MB / 1.12 GB, free: 2.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006837/0.4167, allocations: 43.89 kB / 1.12 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.4167, allocations: 20 kB / 1.12 GB, free: 2.273 MB / 0.8731 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.0002341/0.417, allocations: 224.1 kB / 1.121 GB, free: 2.047 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.4171, allocations: 63.25 kB / 1.121 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.4173, allocations: 78.38 kB / 1.121 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4173, allocations: 8 kB / 1.121 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.4173, allocations: 0 / 1.121 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.4173, allocations: 3.984 kB / 1.121 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008934/0.4182, allocations: 0.6377 MB / 1.121 GB, free: 1.207 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4182, allocations: 4.141 kB / 1.121 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.4188, allocations: 91.84 kB / 1.122 GB, free: 1.113 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.4198, allocations: 260.9 kB / 1.122 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.4199, allocations: 8 kB / 1.122 GB, free: 0.832 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007298/0.4272, allocations: 9.073 MB / 1.131 GB, free: 6.914 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4272, allocations: 0 / 1.131 GB, free: 6.914 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.4296, allocations: 0.921 MB / 1.132 GB, free: 5.957 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.4299, allocations: 188.2 kB / 1.132 GB, free: 5.754 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-05/0.43, allocations: 8 kB / 1.132 GB, free: 5.746 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.4306, allocations: 35.95 kB / 1.132 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.4307, allocations: 39.94 kB / 1.132 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/0.4308, allocations: 16 kB / 1.132 GB, free: 5.656 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004896/0.4312, allocations: 399.1 kB / 1.132 GB, free: 5.27 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4313, allocations: 3.938 kB / 1.132 GB, free: 5.266 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001042/0.4323, allocations: 304 kB / 1.132 GB, free: 4.969 MB / 0.8887 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.000151/0.4325, allocations: 115.2 kB / 1.133 GB, free: 4.848 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003943/0.4364, allocations: 2.403 MB / 1.135 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4364, allocations: 0 / 1.135 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.4378, allocations: 0.9963 MB / 1.136 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4389, allocations: 237.2 kB / 1.136 GB, free: 1 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.4416, allocations: 1.304 MB / 1.137 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000729/0.4423, allocations: 0.9781 MB / 1.138 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0005883/0.4429, allocations: 157.3 kB / 1.139 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.4431, allocations: 47.42 kB / 1.139 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of SimCode: time 8.22e-07/0.4431, allocations: 0 / 1.139 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of Templates: time 0.02549/0.4686, allocations: 13.44 MB / 1.152 GB, free: 1.164 MB / 0.9044 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