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.0008874/0.0008877, allocations: 98.88 kB / 16.02 MB, free: 76 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.001065/0.001065, allocations: 187.7 kB / 16.92 MB, free: 6.773 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.775/2.775, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003412, allocations: 13.11 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3537, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004429/0.3581, allocations: 3.519 MB / 1.063 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002843/0.361, allocations: 1.738 MB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.3613, allocations: 11.94 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002739/0.3616, allocations: 55.56 kB / 1.065 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000672/0.3623, allocations: 235 kB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006742/0.363, allocations: 231.6 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007547/0.3638, allocations: 0.7012 MB / 1.066 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004777/0.3642, allocations: 357.5 kB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.3645, allocations: 155.4 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004195/0.365, allocations: 231.1 kB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.365, allocations: 16 kB / 1.066 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003924/0.3654, allocations: 223.5 kB / 1.067 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.3656, allocations: 115.7 kB / 1.067 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3658, allocations: 184.8 kB / 1.067 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004183/0.3662, allocations: 379.3 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3662, allocations: 0 / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3662, allocations: 0 / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.529e-05/0.3662, allocations: 0 / 1.067 GB, free: 12.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.001056/0.3673, allocations: 0.6004 MB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3673, allocations: 8.031 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005882/0.3679, allocations: 84.5 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.3683, allocations: 295.5 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3684, allocations: 25.02 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.015e-05/0.3684, allocations: 28.38 kB / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008456/0.3693, allocations: 498 kB / 1.069 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3693, allocations: 0 / 1.069 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.3693, allocations: 15.98 kB / 1.069 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-05/0.3694, allocations: 44.56 kB / 1.069 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007912/0.3702, allocations: 382.3 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.3724, allocations: 2.048 MB / 1.071 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000582/0.373, allocations: 229.4 kB / 1.071 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004075/0.3734, allocations: 172.7 kB / 1.072 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.3734, allocations: 4 kB / 1.072 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.3735, allocations: 30.56 kB / 1.072 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.713e-06/0.3735, allocations: 7.938 kB / 1.072 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001142/0.3746, allocations: 456.7 kB / 1.072 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3747, allocations: 59.41 kB / 1.072 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.375, allocations: 266.5 kB / 1.072 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.375, allocations: 29.7 kB / 1.072 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.3751, allocations: 211.8 kB / 1.073 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.3752, allocations: 59.11 kB / 1.073 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.3753, allocations: 29.7 kB / 1.073 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3754, allocations: 338.8 kB / 1.073 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.3756, allocations: 104.5 kB / 1.073 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.376, allocations: 211.6 kB / 1.073 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000592/0.3766, allocations: 335.4 kB / 1.074 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3766, allocations: 0 / 1.074 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008114/0.3774, allocations: 382 kB / 1.074 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.3775, allocations: 194 kB / 1.074 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3775, allocations: 0 / 1.074 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001956/0.3777, allocations: 40.77 kB / 1.074 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.378, allocations: 75.89 kB / 1.074 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.3793, allocations: 1.335 MB / 1.076 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.3796, allocations: 43.67 kB / 1.076 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3796, allocations: 12 kB / 1.076 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.348e-06/0.3796, allocations: 9.656 kB / 1.076 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006417/0.3803, allocations: 299.6 kB / 1.076 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3803, allocations: 4 kB / 1.076 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.264e-06/0.3803, allocations: 8 kB / 1.076 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.3806, allocations: 80.11 kB / 1.076 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3806, allocations: 7.984 kB / 1.076 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.3808, allocations: 43.72 kB / 1.076 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3809, allocations: 23.88 kB / 1.076 GB, free: 3.07 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.0002023/0.3811, allocations: 249 kB / 1.076 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.635e-05/0.3811, allocations: 27.66 kB / 1.076 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.141e-05/0.3812, allocations: 38.11 kB / 1.076 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3812, allocations: 0 / 1.076 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3812, allocations: 4 kB / 1.076 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3812, allocations: 0 / 1.076 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.3824, allocations: 0.771 MB / 1.077 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3824, allocations: 0 / 1.077 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.3826, allocations: 43.91 kB / 1.077 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.3828, allocations: 28.84 kB / 1.077 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.3828, allocations: 0 / 1.077 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008833/0.3837, allocations: 1.327 MB / 1.078 GB, free: 372 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3837, allocations: 8.094 kB / 1.078 GB, free: 364 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006693/0.3844, allocations: 386.9 kB / 1.079 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3845, allocations: 112.8 kB / 1.079 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.3845, allocations: 15.92 kB / 1.079 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.3847, allocations: 19.98 kB / 1.079 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.3848, allocations: 15.98 kB / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.3848, allocations: 4 kB / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001722/0.385, allocations: 186 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.385, allocations: 0 / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005892/0.3856, allocations: 143.5 kB / 1.079 GB, free: 15.45 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.0001148/0.3857, allocations: 103.2 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001119/0.3868, allocations: 0.5127 MB / 1.08 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3868, allocations: 0 / 1.08 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003683/0.3872, allocations: 231.3 kB / 1.08 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.3878, allocations: 59.14 kB / 1.08 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.3888, allocations: 0.7552 MB / 1.081 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.3891, allocations: 0.7918 MB / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.636e-05/0.3892, allocations: 27.44 kB / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of SimCode: time 4.9e-07/0.3892, allocations: 4 kB / 1.082 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of Templates: time 0.006958/0.3962, allocations: 4.736 MB / 1.086 GB, free: 8.148 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/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