Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.009189/0.009189, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001819/0.001819, allocations: 191.3 kB / 16.67 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.444/1.444, allocations: 251.7 MB / 0.5094 GB, free: 408 kB / 430.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 71.89 kB / 0.7258 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6595/0.661, allocations: 104.7 MB / 0.828 GB, free: 2.598 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005676/0.6667, allocations: 3.842 MB / 0.8318 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.002732/0.6695, allocations: 1.781 MB / 0.8335 GB, free: 12.94 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.6697, allocations: 8 kB / 0.8335 GB, free: 12.93 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.6709, allocations: 442.2 kB / 0.8339 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0004995/0.6715, allocations: 254.8 kB / 0.8342 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005728/0.6721, allocations: 248.9 kB / 0.8344 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0005164/0.6726, allocations: 0.4906 MB / 0.8349 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005723/0.6732, allocations: 364.4 kB / 0.8352 GB, free: 11.16 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.6734, allocations: 199.3 kB / 0.8354 GB, free: 10.97 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.6738, allocations: 239.1 kB / 0.8357 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.6739, allocations: 28 kB / 0.8357 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003475/0.6742, allocations: 179.6 kB / 0.8359 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.6744, allocations: 135.7 kB / 0.836 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.6746, allocations: 179.1 kB / 0.8362 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0006086/0.6752, allocations: 0.4889 MB / 0.8366 GB, free: 9.734 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.6752, allocations: 0 / 0.8366 GB, free: 9.734 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6752, allocations: 0 / 0.8366 GB, free: 9.734 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.6753, allocations: 0 / 0.8366 GB, free: 9.734 MB / 0.6387 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.001184/0.6764, allocations: 0.6549 MB / 0.8373 GB, free: 9.031 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.6765, allocations: 8.031 kB / 0.8373 GB, free: 9.023 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.6771, allocations: 92.39 kB / 0.8374 GB, free: 8.934 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004173/0.6775, allocations: 299.1 kB / 0.8377 GB, free: 8.602 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.6775, allocations: 25.02 kB / 0.8377 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.6776, allocations: 28.38 kB / 0.8377 GB, free: 8.551 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008325/0.6784, allocations: 490 kB / 0.8382 GB, free: 8.039 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.6785, allocations: 3.938 kB / 0.8382 GB, free: 8.035 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.6785, allocations: 15.98 kB / 0.8382 GB, free: 8.02 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.904e-05/0.6786, allocations: 40.62 kB / 0.8382 GB, free: 7.98 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007198/0.6793, allocations: 358.3 kB / 0.8386 GB, free: 7.633 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.6814, allocations: 2.04 MB / 0.8406 GB, free: 5.391 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.682, allocations: 212.9 kB / 0.8408 GB, free: 5.176 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/0.6824, allocations: 156.7 kB / 0.8409 GB, free: 5.02 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.6825, allocations: 4 kB / 0.8409 GB, free: 5.016 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.6825, allocations: 42.5 kB / 0.841 GB, free: 4.965 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=18): time 2.074e-06/0.6825, allocations: 0 / 0.841 GB, free: 4.965 MB / 0.6387 GB Notification: Performance of matching and sorting (n=18): time 0.001102/0.6836, allocations: 419 kB / 0.8414 GB, free: 4.527 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.6837, allocations: 55.41 kB / 0.8414 GB, free: 4.461 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.6839, allocations: 262.6 kB / 0.8417 GB, free: 4.203 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.684, allocations: 29.7 kB / 0.8417 GB, free: 4.168 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.6841, allocations: 203.8 kB / 0.8419 GB, free: 3.961 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.6841, allocations: 67.09 kB / 0.842 GB, free: 3.895 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.243e-05/0.6842, allocations: 57.89 kB / 0.842 GB, free: 3.832 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.6844, allocations: 346.6 kB / 0.8423 GB, free: 3.484 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.6846, allocations: 97.91 kB / 0.8424 GB, free: 3.387 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.6849, allocations: 204.8 kB / 0.8426 GB, free: 3.137 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005457/0.6855, allocations: 312.6 kB / 0.8429 GB, free: 2.785 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.6855, allocations: 0 / 0.8429 GB, free: 2.785 MB / 0.6387 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007505/0.6862, allocations: 354.2 kB / 0.8433 GB, free: 2.43 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.6863, allocations: 12.06 kB / 0.8433 GB, free: 2.418 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.6863, allocations: 4 kB / 0.8433 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002086/0.6865, allocations: 28.83 kB / 0.8433 GB, free: 2.383 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.6868, allocations: 67.91 kB / 0.8434 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.6882, allocations: 1.449 MB / 0.8448 GB, free: 0.7305 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.6884, allocations: 39.67 kB / 0.8448 GB, free: 0.6914 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.6885, allocations: 19.98 kB / 0.8448 GB, free: 0.6719 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003681/0.6888, allocations: 216.6 kB / 0.845 GB, free: 468 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003056/0.6891, allocations: 221.2 kB / 0.8453 GB, free: 188 kB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000541/0.6897, allocations: 319.1 kB / 0.8456 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.6897, allocations: 0 / 0.8456 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006459/0.6904, allocations: 335.5 kB / 0.8459 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6904, allocations: 8 kB / 0.8459 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.6904, allocations: 7.938 kB / 0.8459 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.69e-06/0.6904, allocations: 4 kB / 0.8459 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.6907, allocations: 80.3 kB / 0.846 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.6907, allocations: 8 kB / 0.846 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.6909, allocations: 35.73 kB / 0.846 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.691, allocations: 16 kB / 0.846 GB, free: 15.33 MB / 0.6544 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.0001429/0.6911, allocations: 196.1 kB / 0.8462 GB, free: 15.13 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.6912, allocations: 31.75 kB / 0.8463 GB, free: 15.1 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.533e-05/0.6913, allocations: 26.19 kB / 0.8463 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.6913, allocations: 7.922 kB / 0.8463 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.6913, allocations: 4 kB / 0.8463 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.6913, allocations: 4 kB / 0.8463 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.6924, allocations: 0.761 MB / 0.847 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.6925, allocations: 0 / 0.847 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.6926, allocations: 39.97 kB / 0.8471 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.6928, allocations: 24.78 kB / 0.8471 GB, free: 14.15 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.6928, allocations: 8 kB / 0.8471 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009452/0.6937, allocations: 1.414 MB / 0.8485 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.6937, allocations: 4.094 kB / 0.8485 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006253/0.6944, allocations: 369.5 kB / 0.8488 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.6945, allocations: 124.7 kB / 0.849 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.6945, allocations: 4 kB / 0.849 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.6947, allocations: 15.98 kB / 0.849 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.6948, allocations: 19.91 kB / 0.849 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.6948, allocations: 11.94 kB / 0.849 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001734/0.695, allocations: 178 kB / 0.8492 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.695, allocations: 0 / 0.8492 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006144/0.6956, allocations: 143.5 kB / 0.8493 GB, free: 11.7 MB / 0.6544 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.0001209/0.6957, allocations: 112.3 kB / 0.8494 GB, free: 11.58 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00105/0.6968, allocations: 493.2 kB / 0.8499 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6968, allocations: 0 / 0.8499 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003363/0.6972, allocations: 224.1 kB / 0.8501 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.6977, allocations: 67.64 kB / 0.8502 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009389/0.6986, allocations: 0.541 MB / 0.8507 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.699, allocations: 0.8074 MB / 0.8515 GB, free: 9.391 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0002195/0.6992, allocations: 70.3 kB / 0.8516 GB, free: 9.32 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.863e-05/0.6993, allocations: 19.44 kB / 0.8516 GB, free: 9.301 MB / 0.6544 GB Notification: Performance of SimCode: time 3.81e-07/0.6993, allocations: 0 / 0.8516 GB, free: 9.301 MB / 0.6544 GB Notification: Performance of Templates: time 0.00725/0.7065, allocations: 3.589 MB / 0.8551 GB, free: 5.746 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)