Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001839/0.001839, allocations: 189.7 kB / 16.25 MB, free: 6.629 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.386/1.386, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.847/2.847, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 65.27 kB / 0.8986 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3221, allocations: 157.4 MB / 1.052 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.006077/0.3282, allocations: 3.897 MB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002909/0.3311, allocations: 1.765 MB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.3315, allocations: 11.88 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.3328, allocations: 418.7 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006495/0.3335, allocations: 231 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006455/0.3342, allocations: 223.7 kB / 1.059 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006448/0.3348, allocations: 0.4906 MB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006712/0.3355, allocations: 405.1 kB / 1.06 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003015/0.3358, allocations: 195.3 kB / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.3363, allocations: 247.1 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.623e-05/0.3364, allocations: 28 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.3367, allocations: 191.5 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.3369, allocations: 127.7 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.3371, allocations: 179.1 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006249/0.3378, allocations: 0.4906 MB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3378, allocations: 4 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3378, allocations: 4 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.3378, allocations: 0 / 1.061 GB, free: 15.8 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001244/0.3391, allocations: 0.6548 MB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3391, allocations: 8.625 kB / 1.062 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005865/0.3397, allocations: 88.39 kB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.3401, allocations: 291.6 kB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.3401, allocations: 25.02 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.3402, allocations: 24.38 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008128/0.341, allocations: 490 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.341, allocations: 4 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.3411, allocations: 11.98 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.587e-05/0.3411, allocations: 40.62 kB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000709/0.3418, allocations: 370.2 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.344, allocations: 2.041 MB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005463/0.3445, allocations: 214.7 kB / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.3449, allocations: 164.8 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.345, allocations: 4 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.345, allocations: 34.56 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.345, allocations: 0 / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001051/0.3461, allocations: 420.9 kB / 1.066 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.3461, allocations: 55.41 kB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.3464, allocations: 270.5 kB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.3464, allocations: 25.7 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3465, allocations: 211.7 kB / 1.066 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.293e-05/0.3466, allocations: 67.12 kB / 1.066 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.3467, allocations: 57.89 kB / 1.066 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3468, allocations: 338.8 kB / 1.067 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.3471, allocations: 93.86 kB / 1.067 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/0.3474, allocations: 207.6 kB / 1.067 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.3479, allocations: 322.9 kB / 1.067 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3479, allocations: 0 / 1.067 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007332/0.3486, allocations: 350.1 kB / 1.068 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3487, allocations: 9.719 kB / 1.068 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3487, allocations: 0 / 1.068 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002045/0.3489, allocations: 32.84 kB / 1.068 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.3492, allocations: 72.02 kB / 1.068 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.3504, allocations: 1.444 MB / 1.069 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.3507, allocations: 39.67 kB / 1.069 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.3507, allocations: 8 kB / 1.069 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003369/0.351, allocations: 220.7 kB / 1.069 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002804/0.3513, allocations: 217 kB / 1.07 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004995/0.3518, allocations: 323.1 kB / 1.07 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.438e-06/0.3519, allocations: 4 kB / 1.07 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006301/0.3525, allocations: 333.2 kB / 1.07 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.3525, allocations: 12.09 kB / 1.07 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3525, allocations: 4 kB / 1.07 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.743e-06/0.3525, allocations: 4 kB / 1.07 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.3528, allocations: 71.83 kB / 1.07 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.3528, allocations: 8 kB / 1.07 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.3531, allocations: 31.73 kB / 1.07 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.3531, allocations: 16 kB / 1.07 GB, free: 5.406 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.3532, allocations: 212.1 kB / 1.071 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.266e-05/0.3533, allocations: 23.72 kB / 1.071 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.618e-05/0.3533, allocations: 30.17 kB / 1.071 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3533, allocations: 8 kB / 1.071 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3534, allocations: 0 / 1.071 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3534, allocations: 3.984 kB / 1.071 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3545, allocations: 0.7509 MB / 1.071 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3546, allocations: 3.984 kB / 1.071 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.3547, allocations: 39.91 kB / 1.071 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.3549, allocations: 28.91 kB / 1.071 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.3549, allocations: 4 kB / 1.071 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.3559, allocations: 1.415 MB / 1.073 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3559, allocations: 3.938 kB / 1.073 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.3565, allocations: 371.3 kB / 1.073 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.3566, allocations: 120.7 kB / 1.073 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3567, allocations: 7.938 kB / 1.073 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3569, allocations: 15.98 kB / 1.073 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.816e-05/0.3569, allocations: 15.98 kB / 1.073 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.357, allocations: 7.938 kB / 1.073 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001765/0.3571, allocations: 190 kB / 1.073 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3571, allocations: 0 / 1.073 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005823/0.3577, allocations: 139.5 kB / 1.074 GB, free: 1.766 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001478/0.3579, allocations: 107.2 kB / 1.074 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001128/0.359, allocations: 0.4995 MB / 1.074 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.359, allocations: 4 kB / 1.074 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.3594, allocations: 216.8 kB / 1.074 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.3599, allocations: 87.06 kB / 1.074 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.361, allocations: 0.6778 MB / 1.075 GB, free: 124 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.3614, allocations: 0.8035 MB / 1.076 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002442/0.3617, allocations: 70.31 kB / 1.076 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.214e-05/0.3617, allocations: 19.44 kB / 1.076 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of SimCode: time 4.41e-07/0.3617, allocations: 0 / 1.076 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.008571/0.3703, allocations: 3.403 MB / 1.079 GB, free: 11.83 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches