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 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.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.001656/0.001656, allocations: 108 kB / 15.61 MB, free: 152 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.002447/0.002447, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.442/1.442, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 472.7 MB / 0.7452 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 67.75 kB / 0.9121 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3271, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.006892/0.3341, allocations: 3.836 MB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003813/0.3379, allocations: 1.776 MB / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005425/0.3385, allocations: 11.94 kB / 1.074 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.3402, allocations: 446.2 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008245/0.341, allocations: 242.8 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000857/0.3419, allocations: 259.1 kB / 1.075 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000807/0.3427, allocations: 498.4 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008382/0.3436, allocations: 361.1 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.344, allocations: 195.3 kB / 1.076 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005133/0.3445, allocations: 239.1 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.1e-05/0.3446, allocations: 32 kB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000438/0.3451, allocations: 191.5 kB / 1.076 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.3452, allocations: 127.7 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.3455, allocations: 179.1 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006997/0.3462, allocations: 486.4 kB / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3462, allocations: 7.938 kB / 1.077 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.257e-06/0.3462, allocations: 0 / 1.077 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.686e-05/0.3462, allocations: 3.938 kB / 1.077 GB, free: 1.574 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.001309/0.3475, allocations: 0.655 MB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3476, allocations: 8.031 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000585/0.3482, allocations: 84.41 kB / 1.078 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.3485, allocations: 301.3 kB / 1.078 GB, free: 460 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.3486, allocations: 21.03 kB / 1.078 GB, free: 436 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.3486, allocations: 32.36 kB / 1.078 GB, free: 404 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000776/0.3494, allocations: 486 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3494, allocations: 4 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.3495, allocations: 15.98 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.406e-05/0.3496, allocations: 36.64 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000715/0.3503, allocations: 374.2 kB / 1.079 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.3523, allocations: 2.033 MB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.3528, allocations: 214.7 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.3532, allocations: 156.7 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3532, allocations: 0 / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.3533, allocations: 46.55 kB / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.302e-06/0.3533, allocations: 0 / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001033/0.3543, allocations: 416.9 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.3544, allocations: 55.41 kB / 1.082 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.3546, allocations: 262.6 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.3547, allocations: 29.7 kB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3548, allocations: 211.6 kB / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.3548, allocations: 71.02 kB / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.3549, allocations: 57.89 kB / 1.082 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3551, allocations: 346.8 kB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.3553, allocations: 93.91 kB / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.3556, allocations: 203.6 kB / 1.083 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.3562, allocations: 314.7 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3562, allocations: 0 / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007119/0.3569, allocations: 363.5 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3569, allocations: 4 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3569, allocations: 4 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.3571, allocations: 32.83 kB / 1.084 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3574, allocations: 67.84 kB / 1.084 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.3586, allocations: 1.451 MB / 1.085 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.3589, allocations: 39.67 kB / 1.085 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.3589, allocations: 15.98 kB / 1.085 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003334/0.3592, allocations: 218.3 kB / 1.085 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002968/0.3595, allocations: 219 kB / 1.085 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005041/0.36, allocations: 315.1 kB / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5e-06/0.3601, allocations: 4 kB / 1.086 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006373/0.3607, allocations: 332.8 kB / 1.086 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.3607, allocations: 8 kB / 1.086 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.3607, allocations: 4.5 kB / 1.086 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.55e-06/0.3607, allocations: 4 kB / 1.086 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.361, allocations: 79.83 kB / 1.086 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.361, allocations: 8 kB / 1.086 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.3612, allocations: 27.83 kB / 1.086 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.3613, allocations: 12 kB / 1.086 GB, free: 7.176 MB / 0.8419 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.0001255/0.3614, allocations: 209.5 kB / 1.086 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.3615, allocations: 23.72 kB / 1.086 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.426e-05/0.3615, allocations: 34.17 kB / 1.086 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3615, allocations: 4 kB / 1.086 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3615, allocations: 0 / 1.086 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3615, allocations: 0 / 1.086 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.3627, allocations: 0.7499 MB / 1.087 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3627, allocations: 4 kB / 1.087 GB, free: 6.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3629, allocations: 47.84 kB / 1.087 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-05/0.363, allocations: 24.91 kB / 1.087 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.363, allocations: 8 kB / 1.087 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009511/0.3639, allocations: 1.429 MB / 1.089 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.364, allocations: 0 / 1.089 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.3646, allocations: 367.3 kB / 1.089 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.784e-05/0.3647, allocations: 116.8 kB / 1.089 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.3647, allocations: 7.938 kB / 1.089 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.3649, allocations: 15.98 kB / 1.089 GB, free: 3.879 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.365, allocations: 23.97 kB / 1.089 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.365, allocations: 11.88 kB / 1.089 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001509/0.3651, allocations: 182 kB / 1.089 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3652, allocations: 0 / 1.089 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005545/0.3657, allocations: 147.5 kB / 1.09 GB, free: 3.523 MB / 0.8419 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.0001079/0.3658, allocations: 99.25 kB / 1.09 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.3669, allocations: 0.5037 MB / 1.09 GB, free: 2.898 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3669, allocations: 4 kB / 1.09 GB, free: 2.895 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.3672, allocations: 210.6 kB / 1.09 GB, free: 2.676 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.3677, allocations: 69.2 kB / 1.09 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008195/0.3685, allocations: 0.5566 MB / 1.091 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.3689, allocations: 0.8035 MB / 1.092 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002098/0.3691, allocations: 70.22 kB / 1.092 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.3692, allocations: 23.42 kB / 1.092 GB, free: 1.105 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3692, allocations: 0 / 1.092 GB, free: 1.105 MB / 0.8419 GB Notification: Performance of Templates: time 0.006896/0.3761, allocations: 3.515 MB / 1.095 GB, free: 13.62 MB / 0.8575 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