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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001701/0.001701, allocations: 100.1 kB / 15.88 MB, free: 12 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.002011/0.002011, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.393/1.393, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.372/2.372, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 59.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6239/0.6261, allocations: 140.4 MB / 0.9496 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004312/0.6305, allocations: 3.894 MB / 0.9534 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002239/0.6328, allocations: 1.764 MB / 0.9551 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.6329, allocations: 8.531 kB / 0.9551 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.634, allocations: 423.1 kB / 0.9555 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000403/0.6344, allocations: 232.1 kB / 0.9557 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000441/0.6348, allocations: 239 kB / 0.956 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.6353, allocations: 0.6978 MB / 0.9566 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.6357, allocations: 240.3 kB / 0.9569 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.6359, allocations: 164.5 kB / 0.957 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.6362, allocations: 248.2 kB / 0.9573 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.983e-05/0.6362, allocations: 20.72 kB / 0.9573 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.6366, allocations: 231.7 kB / 0.9575 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.6367, allocations: 119.7 kB / 0.9576 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.6369, allocations: 174.5 kB / 0.9578 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.6372, allocations: 371.6 kB / 0.9581 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.6372, allocations: 0 / 0.9581 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.11e-07/0.6372, allocations: 1.375 kB / 0.9581 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.6372, allocations: 0 / 0.9581 GB, free: 2.883 MB / 0.7169 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.0009843/0.6382, allocations: 0.6623 MB / 0.9588 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.6383, allocations: 8.594 kB / 0.9588 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005564/0.6388, allocations: 86.03 kB / 0.9589 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.6391, allocations: 289.4 kB / 0.9592 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.6392, allocations: 24.69 kB / 0.9592 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.6392, allocations: 27.06 kB / 0.9592 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.6399, allocations: 494.2 kB / 0.9597 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.64, allocations: 4 kB / 0.9597 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.64, allocations: 12.5 kB / 0.9597 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.647e-05/0.6401, allocations: 39.16 kB / 0.9597 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000706/0.6408, allocations: 367.5 kB / 0.9601 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.6426, allocations: 2.053 MB / 0.9621 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.6432, allocations: 213.6 kB / 0.9623 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003785/0.6436, allocations: 155 kB / 0.9624 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.6436, allocations: 1.406 kB / 0.9624 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.6436, allocations: 39.94 kB / 0.9625 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.272e-06/0.6436, allocations: 1.25 kB / 0.9625 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.001077/0.6447, allocations: 421.5 kB / 0.9629 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.6448, allocations: 53.69 kB / 0.9629 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/0.645, allocations: 262.5 kB / 0.9632 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.645, allocations: 30.86 kB / 0.9632 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.6452, allocations: 206.6 kB / 0.9634 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.6452, allocations: 67.22 kB / 0.9635 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.131e-05/0.6453, allocations: 57.14 kB / 0.9635 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.6454, allocations: 343.9 kB / 0.9639 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.6457, allocations: 95.66 kB / 0.964 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.646, allocations: 207.8 kB / 0.9641 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005558/0.6466, allocations: 310 kB / 0.9644 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.6466, allocations: 0.875 kB / 0.9644 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007874/0.6474, allocations: 360.7 kB / 0.9648 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.6474, allocations: 6.531 kB / 0.9648 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.6475, allocations: 4.188 kB / 0.9648 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.6477, allocations: 30.23 kB / 0.9648 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.6479, allocations: 69.45 kB / 0.9649 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.6493, allocations: 1.338 MB / 0.9662 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.6495, allocations: 40.02 kB / 0.9662 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.6496, allocations: 14.69 kB / 0.9663 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003675/0.6499, allocations: 219.8 kB / 0.9665 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003232/0.6503, allocations: 230.4 kB / 0.9667 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005428/0.6508, allocations: 317.8 kB / 0.967 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.084e-06/0.6508, allocations: 1.25 kB / 0.967 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000691/0.6515, allocations: 327.9 kB / 0.9673 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.6516, allocations: 10.47 kB / 0.9673 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.6516, allocations: 12.11 kB / 0.9673 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/0.6516, allocations: 6.281 kB / 0.9673 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.6519, allocations: 68.28 kB / 0.9674 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.6519, allocations: 14.45 kB / 0.9674 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.6521, allocations: 34.89 kB / 0.9674 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.6522, allocations: 15.06 kB / 0.9675 GB, free: 11.1 MB / 0.7325 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.0001244/0.6523, allocations: 193.5 kB / 0.9676 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.6524, allocations: 32.34 kB / 0.9677 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.6524, allocations: 28.23 kB / 0.9677 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.6524, allocations: 2.25 kB / 0.9677 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.6524, allocations: 0.875 kB / 0.9677 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.6524, allocations: 11.92 kB / 0.9677 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.6537, allocations: 0.7572 MB / 0.9684 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.6537, allocations: 0 / 0.9684 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.6539, allocations: 41.56 kB / 0.9685 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001042/0.654, allocations: 25.36 kB / 0.9685 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.654, allocations: 5.906 kB / 0.9685 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009341/0.655, allocations: 1.317 MB / 0.9698 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.655, allocations: 1.156 kB / 0.9698 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.6556, allocations: 362 kB / 0.9702 GB, free: 8.582 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.6557, allocations: 124.9 kB / 0.9703 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.6558, allocations: 2.625 kB / 0.9703 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.656, allocations: 20.17 kB / 0.9703 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.656, allocations: 18.56 kB / 0.9703 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.6561, allocations: 8.188 kB / 0.9703 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000185/0.6563, allocations: 184 kB / 0.9705 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6563, allocations: 0 / 0.9705 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005946/0.6569, allocations: 144.7 kB / 0.9706 GB, free: 8.262 MB / 0.7325 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.0001189/0.657, allocations: 112.5 kB / 0.9707 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001093/0.6581, allocations: 487.5 kB / 0.9712 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.6581, allocations: 0 / 0.9712 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.6585, allocations: 220.8 kB / 0.9714 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.659, allocations: 71.28 kB / 0.9715 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.66, allocations: 0.7083 MB / 0.9722 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.6604, allocations: 0.8017 MB / 0.973 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.05e-05/0.6605, allocations: 28.03 kB / 0.973 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.6605, allocations: 0 / 0.973 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of Templates: time 0.006846/0.6673, allocations: 4.762 MB / 0.9776 GB, free: 3.902 MB / 0.7325 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