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.001524/0.001524, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001917/0.001917, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.8 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 65.61 kB / 0.8984 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3207, allocations: 157.4 MB / 1.052 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008267/0.329, allocations: 6.3 MB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007046/0.3361, allocations: 4.522 MB / 1.063 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007801/0.3369, allocations: 23.88 kB / 1.063 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.3395, allocations: 0.8597 MB / 1.064 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002306/0.3418, allocations: 0.7089 MB / 1.064 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008152/0.3427, allocations: 290.4 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001772/0.3444, allocations: 1.437 MB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007812/0.3452, allocations: 473.8 kB / 1.066 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007192/0.346, allocations: 426.3 kB / 1.067 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008796/0.3468, allocations: 0.502 MB / 1.067 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.347, allocations: 44 kB / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006783/0.3477, allocations: 319.4 kB / 1.068 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002776/0.348, allocations: 219.3 kB / 1.068 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005171/0.3485, allocations: 386 kB / 1.068 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.3497, allocations: 1.063 MB / 1.069 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3497, allocations: 0 / 1.069 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.316e-06/0.3498, allocations: 3.984 kB / 1.069 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.485e-05/0.3498, allocations: 0 / 1.069 GB, free: 7.219 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.002208/0.352, allocations: 1.091 MB / 1.07 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3521, allocations: 8.031 kB / 1.07 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003275/0.3553, allocations: 0.628 MB / 1.071 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008905/0.3562, allocations: 0.5463 MB / 1.071 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.3563, allocations: 41.69 kB / 1.071 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.626e-05/0.3564, allocations: 56.06 kB / 1.072 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.3584, allocations: 1.014 MB / 1.073 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.3585, allocations: 7.938 kB / 1.073 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.578e-05/0.3585, allocations: 27.98 kB / 1.073 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.551e-05/0.3586, allocations: 49.28 kB / 1.073 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002378/0.361, allocations: 0.9964 MB / 1.074 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004434/0.3654, allocations: 3.498 MB / 1.077 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.367, allocations: 0.5003 MB / 1.077 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000573/0.3675, allocations: 228.7 kB / 1.078 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.3676, allocations: 4 kB / 1.078 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.3676, allocations: 38.56 kB / 1.078 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.3676, allocations: 0 / 1.078 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.007146/0.3748, allocations: 2.009 MB / 1.08 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.3749, allocations: 55.41 kB / 1.08 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007423/0.3756, allocations: 0.5704 MB / 1.08 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.3757, allocations: 33.7 kB / 1.08 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.3759, allocations: 352.2 kB / 1.081 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.3761, allocations: 153.8 kB / 1.081 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.3763, allocations: 94.14 kB / 1.081 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3764, allocations: 378.7 kB / 1.081 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000673/0.3771, allocations: 258.9 kB / 1.082 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007201/0.3778, allocations: 365.8 kB / 1.082 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.3792, allocations: 0.6225 MB / 1.082 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3793, allocations: 0 / 1.082 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002484/0.3817, allocations: 0.9313 MB / 1.083 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3818, allocations: 4 kB / 1.083 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.3818, allocations: 4 kB / 1.083 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.3831, allocations: 273.2 kB / 1.084 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006368/0.3837, allocations: 119.8 kB / 1.084 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007987/0.3917, allocations: 8.443 MB / 1.092 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007438/0.3925, allocations: 51.94 kB / 1.092 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/0.3926, allocations: 20 kB / 1.092 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001047/0.3936, allocations: 433 kB / 1.092 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000739/0.3944, allocations: 353.4 kB / 1.093 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001339/0.3957, allocations: 0.6168 MB / 1.093 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.647e-06/0.3958, allocations: 0 / 1.093 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002721/0.3985, allocations: 1.125 MB / 1.095 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3985, allocations: 8 kB / 1.095 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3985, allocations: 3.938 kB / 1.095 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008547/0.3994, allocations: 229.3 kB / 1.095 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.4, allocations: 119.8 kB / 1.095 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007293/0.4074, allocations: 8.161 MB / 1.103 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/0.4081, allocations: 43.95 kB / 1.103 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.989e-05/0.4082, allocations: 16 kB / 1.103 GB, free: 2.25 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.0002576/0.4085, allocations: 219.2 kB / 1.103 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.4087, allocations: 71.23 kB / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.4089, allocations: 78.31 kB / 1.103 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.4089, allocations: 4 kB / 1.103 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.4089, allocations: 144 / 1.103 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.4089, allocations: 3.984 kB / 1.103 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.41, allocations: 0.6494 MB / 1.104 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.41, allocations: 0 / 1.104 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005227/0.4105, allocations: 95.84 kB / 1.104 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.4115, allocations: 256.9 kB / 1.104 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/0.4116, allocations: 4 kB / 1.104 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007014/0.4186, allocations: 8.404 MB / 1.112 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4187, allocations: 0 / 1.112 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4211, allocations: 0.9092 MB / 1.113 GB, free: 6.656 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000349/0.4214, allocations: 192.1 kB / 1.114 GB, free: 6.449 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.4216, allocations: 8 kB / 1.114 GB, free: 6.441 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005218/0.4221, allocations: 39.95 kB / 1.114 GB, free: 6.402 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.4222, allocations: 39.94 kB / 1.114 GB, free: 6.363 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.4223, allocations: 12 kB / 1.114 GB, free: 6.352 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005244/0.4228, allocations: 403.1 kB / 1.114 GB, free: 5.965 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4228, allocations: 0 / 1.114 GB, free: 5.965 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001202/0.424, allocations: 296 kB / 1.114 GB, free: 5.676 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.0001578/0.4242, allocations: 119.2 kB / 1.114 GB, free: 5.551 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003877/0.4281, allocations: 2.34 MB / 1.117 GB, free: 3.055 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4281, allocations: 0 / 1.117 GB, free: 3.055 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.4295, allocations: 0.9921 MB / 1.118 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.4307, allocations: 220.7 kB / 1.118 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.4336, allocations: 1.569 MB / 1.119 GB, free: 176 kB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007284/0.4343, allocations: 0.9859 MB / 1.12 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006759/0.435, allocations: 153.4 kB / 1.12 GB, free: 15.01 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.4352, allocations: 39.44 kB / 1.121 GB, free: 14.97 MB / 0.8887 GB Notification: Performance of SimCode: time 4.91e-07/0.4352, allocations: 0 / 1.121 GB, free: 14.97 MB / 0.8887 GB Notification: Performance of Templates: time 0.02323/0.4584, allocations: 12.82 MB / 1.133 GB, free: 2.277 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