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.008074/0.008074, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.00179/0.00179, allocations: 186.8 kB / 16.67 MB, free: 5.977 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.529/1.529, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.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.519/2.519, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 61.77 kB / 0.9508 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3542, allocations: 140.4 MB / 1.088 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005815/0.3601, allocations: 3.851 MB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002984/0.3631, allocations: 1.773 MB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.3634, allocations: 4 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.3647, allocations: 454.1 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006246/0.3654, allocations: 250.8 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006898/0.3661, allocations: 252.3 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005567/0.3666, allocations: 0.4906 MB / 1.095 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005926/0.3672, allocations: 368.8 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.3675, allocations: 199.3 kB / 1.095 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.3678, allocations: 231.2 kB / 1.096 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.3679, allocations: 28 kB / 1.096 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003768/0.3683, allocations: 187.6 kB / 1.096 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.3684, allocations: 131.6 kB / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.3686, allocations: 179.1 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005539/0.3692, allocations: 494.3 kB / 1.097 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3692, allocations: 0 / 1.097 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3692, allocations: 0 / 1.097 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.797e-06/0.3692, allocations: 4 kB / 1.097 GB, free: 8.664 MB / 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.001118/0.3703, allocations: 0.655 MB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3704, allocations: 12.03 kB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005338/0.3709, allocations: 88.39 kB / 1.097 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.3713, allocations: 307.3 kB / 1.098 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.3714, allocations: 21.03 kB / 1.098 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.3714, allocations: 28.38 kB / 1.098 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007834/0.3722, allocations: 493.9 kB / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3722, allocations: 0 / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.3723, allocations: 12 kB / 1.098 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-05/0.3723, allocations: 44.64 kB / 1.098 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000721/0.3731, allocations: 370.2 kB / 1.098 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.3752, allocations: 2.037 MB / 1.1 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005523/0.3758, allocations: 209.4 kB / 1.101 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.3761, allocations: 160.7 kB / 1.101 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.3762, allocations: 4 kB / 1.101 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.3762, allocations: 34.5 kB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.833e-06/0.3762, allocations: 4 kB / 1.101 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18): time 0.001021/0.3772, allocations: 420.1 kB / 1.101 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.3773, allocations: 63.19 kB / 1.101 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3776, allocations: 258.7 kB / 1.102 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.3776, allocations: 29.7 kB / 1.102 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.3777, allocations: 211.6 kB / 1.102 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.3778, allocations: 63.09 kB / 1.102 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.731e-05/0.3779, allocations: 65.97 kB / 1.102 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.378, allocations: 330.8 kB / 1.102 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.3782, allocations: 97.91 kB / 1.102 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.3786, allocations: 209.6 kB / 1.103 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000527/0.3791, allocations: 317.4 kB / 1.103 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3791, allocations: 0 / 1.103 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007112/0.3798, allocations: 356.2 kB / 1.103 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3799, allocations: 7.984 kB / 1.103 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3799, allocations: 4 kB / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.3801, allocations: 36.78 kB / 1.103 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.3803, allocations: 64.08 kB / 1.103 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.3817, allocations: 1.437 MB / 1.105 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.3819, allocations: 43.58 kB / 1.105 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3819, allocations: 12 kB / 1.105 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003321/0.3823, allocations: 216.6 kB / 1.105 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002919/0.3826, allocations: 217.6 kB / 1.105 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005073/0.3831, allocations: 311.2 kB / 1.105 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.196e-06/0.3831, allocations: 3.984 kB / 1.105 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006176/0.3837, allocations: 328.9 kB / 1.106 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.3838, allocations: 4 kB / 1.106 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3838, allocations: 4.5 kB / 1.106 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/0.3838, allocations: 15.92 kB / 1.106 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.3841, allocations: 67.91 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3841, allocations: 11.92 kB / 1.106 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.3843, allocations: 39.73 kB / 1.106 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.3843, allocations: 16 kB / 1.106 GB, free: 14.25 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.0001406/0.3845, allocations: 200.1 kB / 1.106 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.3845, allocations: 27.72 kB / 1.106 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.3846, allocations: 38.11 kB / 1.106 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3846, allocations: 4 kB / 1.106 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3846, allocations: 3.938 kB / 1.106 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3846, allocations: 0 / 1.106 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.3858, allocations: 0.7522 MB / 1.107 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3858, allocations: 0 / 1.107 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.386, allocations: 43.91 kB / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.966e-05/0.3861, allocations: 28.83 kB / 1.107 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.3862, allocations: 4.062 kB / 1.107 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.3872, allocations: 1.426 MB / 1.108 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3873, allocations: 0 / 1.108 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005971/0.3879, allocations: 367.1 kB / 1.109 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.388, allocations: 112.8 kB / 1.109 GB, free: 11 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.388, allocations: 11.98 kB / 1.109 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.3882, allocations: 11.98 kB / 1.109 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.381e-05/0.3883, allocations: 15.98 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3883, allocations: 7.938 kB / 1.109 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001852/0.3885, allocations: 190 kB / 1.109 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3885, allocations: 0 / 1.109 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005576/0.389, allocations: 143.5 kB / 1.109 GB, free: 10.62 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.0001479/0.3892, allocations: 99.78 kB / 1.109 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001051/0.3902, allocations: 0.4911 MB / 1.11 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3903, allocations: 0 / 1.11 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.3906, allocations: 226.6 kB / 1.11 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.3911, allocations: 67.86 kB / 1.11 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009038/0.392, allocations: 0.5461 MB / 1.111 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.3924, allocations: 0.8035 MB / 1.111 GB, free: 8.305 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002042/0.3926, allocations: 74.16 kB / 1.111 GB, free: 8.234 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.113e-05/0.3927, allocations: 23.44 kB / 1.111 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of SimCode: time 6.81e-07/0.3927, allocations: 0 / 1.111 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of Templates: time 0.007426/0.4001, allocations: 3.634 MB / 1.115 GB, free: 4.613 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/jenkins/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