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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00146/0.00146, allocations: 103 kB / 16.37 MB, free: 6.438 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.001762/0.001762, allocations: 189.1 kB / 17.3 MB, free: 5.781 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.447/1.447, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.552/2.552, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 67.78 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3271, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.006519/0.3337, allocations: 3.869 MB / 1.031 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002918/0.3367, allocations: 1.769 MB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.3369, allocations: 15.94 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.3384, allocations: 454.1 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006195/0.3391, allocations: 242.8 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006871/0.3398, allocations: 258.6 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005826/0.3404, allocations: 0.4906 MB / 1.034 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006252/0.341, allocations: 352.8 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.3412, allocations: 191.4 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.3417, allocations: 239.1 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.3417, allocations: 32 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00038/0.3421, allocations: 191.5 kB / 1.035 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.3423, allocations: 127.7 kB / 1.035 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.3425, allocations: 179.1 kB / 1.035 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005706/0.3431, allocations: 490.4 kB / 1.035 GB, free: 9.199 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3431, allocations: 4 kB / 1.035 GB, free: 9.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.445e-06/0.3431, allocations: 0 / 1.035 GB, free: 9.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.3431, allocations: 0 / 1.035 GB, free: 9.195 MB / 0.8106 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.0012/0.3443, allocations: 0.6627 MB / 1.036 GB, free: 8.484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3444, allocations: 8.031 kB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000593/0.345, allocations: 84.41 kB / 1.036 GB, free: 8.395 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.3455, allocations: 303.6 kB / 1.036 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.3455, allocations: 21.03 kB / 1.036 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.965e-05/0.3456, allocations: 32.3 kB / 1.036 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.3464, allocations: 494 kB / 1.037 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3464, allocations: 4 kB / 1.037 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.3465, allocations: 8 kB / 1.037 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-05/0.3465, allocations: 40.62 kB / 1.037 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007204/0.3473, allocations: 370.2 kB / 1.037 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002255/0.3495, allocations: 2.033 MB / 1.039 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.3501, allocations: 210.7 kB / 1.039 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.3505, allocations: 160.8 kB / 1.04 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.3505, allocations: 0 / 1.04 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.3506, allocations: 38.56 kB / 1.04 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 2.064e-06/0.3506, allocations: 0 / 1.04 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18): time 0.00109/0.3517, allocations: 419 kB / 1.04 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.3518, allocations: 55.41 kB / 1.04 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.3521, allocations: 270.5 kB / 1.04 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.3521, allocations: 29.7 kB / 1.04 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.3523, allocations: 207.7 kB / 1.041 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.3523, allocations: 75.03 kB / 1.041 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/0.3524, allocations: 49.98 kB / 1.041 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3526, allocations: 342.8 kB / 1.041 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.3528, allocations: 93.91 kB / 1.041 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.3532, allocations: 210.5 kB / 1.041 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005606/0.3537, allocations: 317.4 kB / 1.042 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3537, allocations: 0 / 1.042 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007251/0.3545, allocations: 360.5 kB / 1.042 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3545, allocations: 8 kB / 1.042 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3545, allocations: 0 / 1.042 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002114/0.3547, allocations: 40.77 kB / 1.042 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.355, allocations: 68.08 kB / 1.042 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.3566, allocations: 1.43 MB / 1.044 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.3569, allocations: 47.56 kB / 1.044 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.3569, allocations: 19.92 kB / 1.044 GB, free: 112 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003931/0.3573, allocations: 212.7 kB / 1.044 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003133/0.3577, allocations: 221 kB / 1.044 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004971/0.3582, allocations: 307.2 kB / 1.044 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.566e-06/0.3582, allocations: 7.938 kB / 1.044 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006319/0.3588, allocations: 332.9 kB / 1.045 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.3588, allocations: 8 kB / 1.045 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3588, allocations: 4.5 kB / 1.045 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.763e-06/0.3589, allocations: 8 kB / 1.045 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.3591, allocations: 71.89 kB / 1.045 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3591, allocations: 8 kB / 1.045 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.3594, allocations: 43.66 kB / 1.045 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.3594, allocations: 12 kB / 1.045 GB, free: 14.77 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.0001389/0.3596, allocations: 208 kB / 1.045 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.3596, allocations: 31.72 kB / 1.045 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.3597, allocations: 30.17 kB / 1.045 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3597, allocations: 0 / 1.045 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3597, allocations: 0 / 1.045 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3597, allocations: 0 / 1.045 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.3609, allocations: 0.7498 MB / 1.046 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3609, allocations: 0 / 1.046 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.3611, allocations: 43.91 kB / 1.046 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001027/0.3612, allocations: 20.84 kB / 1.046 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.3612, allocations: 12.06 kB / 1.046 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.3623, allocations: 1.422 MB / 1.047 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3623, allocations: 4 kB / 1.047 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000613/0.3629, allocations: 369.6 kB / 1.048 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.3631, allocations: 116.8 kB / 1.048 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.3631, allocations: 0 / 1.048 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.3633, allocations: 15.98 kB / 1.048 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.3633, allocations: 24 kB / 1.048 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.3634, allocations: 7.938 kB / 1.048 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001821/0.3636, allocations: 190 kB / 1.048 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3636, allocations: 0 / 1.048 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005866/0.3642, allocations: 143.5 kB / 1.048 GB, free: 11.14 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.0001296/0.3643, allocations: 103.2 kB / 1.048 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001082/0.3654, allocations: 0.4914 MB / 1.049 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3654, allocations: 0 / 1.049 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003413/0.3657, allocations: 218.7 kB / 1.049 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.3662, allocations: 68.44 kB / 1.049 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009343/0.3672, allocations: 0.5547 MB / 1.049 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.3676, allocations: 0.7996 MB / 1.05 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001983/0.3678, allocations: 66.23 kB / 1.05 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.3679, allocations: 27.42 kB / 1.05 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3679, allocations: 0 / 1.05 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of Templates: time 0.007336/0.3752, allocations: 3.516 MB / 1.054 GB, free: 5.258 MB / 0.8262 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 -s cvode -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/jenkins1/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