Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001441/0.001441, allocations: 105.9 kB / 16.41 MB, free: 6.508 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.001639/0.001639, allocations: 187 kB / 17.34 MB, free: 5.742 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.89 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8243/0.8257, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005282/0.831, allocations: 3.853 MB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003205/0.8342, allocations: 1.77 MB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003804/0.8346, allocations: 6.719 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.8361, allocations: 458.2 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007994/0.8369, allocations: 249.9 kB / 1.095 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007943/0.8377, allocations: 251.7 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007808/0.8385, allocations: 0.4884 MB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006711/0.8392, allocations: 363 kB / 1.096 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.8395, allocations: 199.6 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004516/0.8399, allocations: 236.5 kB / 1.096 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.336e-05/0.84, allocations: 30.47 kB / 1.096 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004729/0.8405, allocations: 188.8 kB / 1.096 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.8407, allocations: 131.9 kB / 1.097 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.8409, allocations: 180.5 kB / 1.097 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007716/0.8417, allocations: 494.1 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.8417, allocations: 1.109 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8417, allocations: 0 / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.8417, allocations: 0.75 kB / 1.097 GB, free: 248 kB / 0.8575 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.001325/0.843, allocations: 0.6573 MB / 1.098 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.8431, allocations: 9.781 kB / 1.098 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005931/0.8437, allocations: 89.08 kB / 1.098 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.8441, allocations: 304.9 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.8441, allocations: 20.25 kB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.668e-05/0.8442, allocations: 31.83 kB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009652/0.8452, allocations: 488.4 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.8452, allocations: 7.875 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.8453, allocations: 17.12 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.029e-05/0.8453, allocations: 42.3 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008141/0.8461, allocations: 364.6 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.8485, allocations: 2.036 MB / 1.101 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006006/0.8491, allocations: 210.5 kB / 1.101 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.8496, allocations: 153.9 kB / 1.102 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.8496, allocations: 1.516 kB / 1.102 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.8496, allocations: 45.56 kB / 1.102 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.834e-06/0.8496, allocations: 0 / 1.102 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.001211/0.8509, allocations: 416.9 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/0.8509, allocations: 57.72 kB / 1.102 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.8512, allocations: 256.6 kB / 1.102 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.8513, allocations: 31.02 kB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.8514, allocations: 210.6 kB / 1.102 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.123e-05/0.8515, allocations: 68.92 kB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.8516, allocations: 53.55 kB / 1.103 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.8517, allocations: 343.6 kB / 1.103 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.852, allocations: 97.78 kB / 1.103 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.8524, allocations: 204.3 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.853, allocations: 311.2 kB / 1.104 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.853, allocations: 1.281 kB / 1.104 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009426/0.854, allocations: 360.5 kB / 1.104 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.854, allocations: 8 kB / 1.104 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.854, allocations: 3.625 kB / 1.104 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.8542, allocations: 29.2 kB / 1.104 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.8546, allocations: 68.03 kB / 1.104 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.856, allocations: 1.438 MB / 1.105 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.8563, allocations: 49.69 kB / 1.105 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.8563, allocations: 14.16 kB / 1.105 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003997/0.8567, allocations: 215.9 kB / 1.106 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003306/0.8571, allocations: 216.5 kB / 1.106 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005677/0.8577, allocations: 314.2 kB / 1.106 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.046e-06/0.8577, allocations: 5.25 kB / 1.106 GB, free: 9.484 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007227/0.8584, allocations: 337.4 kB / 1.106 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.8584, allocations: 8.75 kB / 1.106 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.8584, allocations: 4.438 kB / 1.106 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.095e-06/0.8584, allocations: 6.203 kB / 1.106 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.8587, allocations: 79.73 kB / 1.107 GB, free: 9.336 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.8588, allocations: 10.36 kB / 1.107 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.859, allocations: 40.55 kB / 1.107 GB, free: 9.312 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.8591, allocations: 10.97 kB / 1.107 GB, free: 9.312 MB / 0.8731 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.0001609/0.8592, allocations: 199 kB / 1.107 GB, free: 9.117 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.8593, allocations: 24.48 kB / 1.107 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.754e-05/0.8594, allocations: 31.64 kB / 1.107 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.8594, allocations: 6.5 kB / 1.107 GB, free: 9.082 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.8594, allocations: 1.859 kB / 1.107 GB, free: 9.082 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.8594, allocations: 0.6562 kB / 1.107 GB, free: 9.082 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.8607, allocations: 0.7542 MB / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.8608, allocations: 0.6094 kB / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001977/0.861, allocations: 40.39 kB / 1.108 GB, free: 8.551 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.8611, allocations: 27.22 kB / 1.108 GB, free: 8.539 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.8611, allocations: 6.781 kB / 1.108 GB, free: 8.535 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.8622, allocations: 1.421 MB / 1.109 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.8622, allocations: 5.312 kB / 1.109 GB, free: 7.113 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.8629, allocations: 364.5 kB / 1.109 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.8631, allocations: 120.6 kB / 1.11 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.8631, allocations: 1.672 kB / 1.11 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.8633, allocations: 18.25 kB / 1.11 GB, free: 6.766 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.8634, allocations: 20.38 kB / 1.11 GB, free: 6.758 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.8634, allocations: 8.844 kB / 1.11 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001917/0.8636, allocations: 182.6 kB / 1.11 GB, free: 6.645 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8636, allocations: 0 / 1.11 GB, free: 6.645 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006524/0.8643, allocations: 150 kB / 1.11 GB, free: 6.605 MB / 0.8731 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.000138/0.8644, allocations: 102.4 kB / 1.11 GB, free: 6.512 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001166/0.8656, allocations: 490.8 kB / 1.11 GB, free: 6.301 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.8656, allocations: 1.094 kB / 1.11 GB, free: 6.301 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.866, allocations: 228.1 kB / 1.111 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.8665, allocations: 74.83 kB / 1.111 GB, free: 6.129 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.8676, allocations: 0.5924 MB / 1.111 GB, free: 5.754 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.868, allocations: 0.8 MB / 1.112 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.745e-05/0.8681, allocations: 27.84 kB / 1.112 GB, free: 5.031 MB / 0.8731 GB Notification: Performance of SimCode: time 3.3e-07/0.8681, allocations: 0 / 1.112 GB, free: 5.031 MB / 0.8731 GB Notification: Performance of Templates: time 0.008898/0.877, allocations: 4.792 MB / 1.117 GB, free: 4.633 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches