Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001553/0.001553, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001848/0.001848, allocations: 195.7 kB / 16.26 MB, free: 6.625 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.566/1.566, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.865/2.865, allocations: 472.6 MB / 0.7448 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 55.34 kB / 0.9115 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3486, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005844/0.3545, allocations: 3.899 MB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0027/0.3573, allocations: 1.749 MB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.3575, allocations: 11.94 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.3588, allocations: 430.6 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.3594, allocations: 231 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.36, allocations: 222.5 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000547/0.3605, allocations: 0.4906 MB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006389/0.3612, allocations: 413 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.3614, allocations: 195.3 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003462/0.3617, allocations: 247.1 kB / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.506e-05/0.3618, allocations: 31.94 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002905/0.3621, allocations: 187.6 kB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.3622, allocations: 123.7 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.3624, allocations: 179.1 kB / 1.076 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005472/0.363, allocations: 0.4984 MB / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.363, allocations: 0 / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.553e-06/0.363, allocations: 0 / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.363, allocations: 0 / 1.076 GB, free: 1.887 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.00118/0.3642, allocations: 0.6549 MB / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3642, allocations: 8.031 kB / 1.077 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005765/0.3648, allocations: 88.41 kB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.3652, allocations: 297.3 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.3653, allocations: 25.02 kB / 1.077 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.3653, allocations: 24.38 kB / 1.077 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008118/0.3661, allocations: 494 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3661, allocations: 4 kB / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.3662, allocations: 15.98 kB / 1.078 GB, free: 184 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.892e-05/0.3663, allocations: 32.64 kB / 1.078 GB, free: 152 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007271/0.367, allocations: 374.2 kB / 1.078 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.369, allocations: 2.037 MB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.3695, allocations: 210.7 kB / 1.08 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000377/0.3699, allocations: 160.7 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.37, allocations: 11.97 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.37, allocations: 34.56 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.37, allocations: 0 / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001066/0.3711, allocations: 416.2 kB / 1.081 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.3711, allocations: 55.41 kB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.3714, allocations: 270.6 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.3714, allocations: 29.7 kB / 1.081 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3716, allocations: 207.7 kB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.3717, allocations: 67.05 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.698e-05/0.3717, allocations: 53.89 kB / 1.082 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3719, allocations: 346.7 kB / 1.082 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.3721, allocations: 97.91 kB / 1.082 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.3724, allocations: 203.6 kB / 1.082 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005364/0.373, allocations: 314.8 kB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.373, allocations: 0 / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007256/0.3737, allocations: 359.6 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3738, allocations: 8 kB / 1.083 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3738, allocations: 4 kB / 1.083 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002108/0.374, allocations: 37.3 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.3743, allocations: 67.83 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.3757, allocations: 1.437 MB / 1.084 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.3759, allocations: 43.77 kB / 1.085 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.376, allocations: 15.98 kB / 1.085 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003411/0.3763, allocations: 212.6 kB / 1.085 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003079/0.3766, allocations: 217 kB / 1.085 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000504/0.3771, allocations: 319.1 kB / 1.085 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.687e-06/0.3771, allocations: 4 kB / 1.085 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006552/0.3778, allocations: 332.9 kB / 1.086 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.3778, allocations: 8 kB / 1.086 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3778, allocations: 4 kB / 1.086 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.831e-06/0.3779, allocations: 4.047 kB / 1.086 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3781, allocations: 79.81 kB / 1.086 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3781, allocations: 8 kB / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.3784, allocations: 40.19 kB / 1.086 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.3784, allocations: 12 kB / 1.086 GB, free: 7.473 MB / 0.8419 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.0001269/0.3785, allocations: 204.7 kB / 1.086 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.038e-05/0.3786, allocations: 23.72 kB / 1.086 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.209e-05/0.3787, allocations: 30.17 kB / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3787, allocations: 0 / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3787, allocations: 0 / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3787, allocations: 0 / 1.086 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.3799, allocations: 0.7556 MB / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3799, allocations: 64 / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.3801, allocations: 47.91 kB / 1.087 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/0.3802, allocations: 24.84 kB / 1.087 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.3802, allocations: 4 kB / 1.087 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.3812, allocations: 1.437 MB / 1.088 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3812, allocations: 4.156 kB / 1.088 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.3818, allocations: 367.5 kB / 1.089 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.382, allocations: 116.8 kB / 1.089 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.382, allocations: 3.938 kB / 1.089 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.3822, allocations: 15.98 kB / 1.089 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.048e-05/0.3823, allocations: 19.97 kB / 1.089 GB, free: 4.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3823, allocations: 7.938 kB / 1.089 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000158/0.3825, allocations: 186 kB / 1.089 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3825, allocations: 0 / 1.089 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005544/0.383, allocations: 147.5 kB / 1.089 GB, free: 3.832 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.0001384/0.3832, allocations: 99.25 kB / 1.089 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00106/0.3842, allocations: 0.5057 MB / 1.09 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3842, allocations: 1.562 kB / 1.09 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.3846, allocations: 218.7 kB / 1.09 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.3851, allocations: 73.19 kB / 1.09 GB, free: 2.914 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009661/0.3861, allocations: 0.6816 MB / 1.091 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3864, allocations: 0.7957 MB / 1.091 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002184/0.3867, allocations: 78.28 kB / 1.091 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-05/0.3867, allocations: 19.44 kB / 1.091 GB, free: 1.277 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3867, allocations: 0 / 1.091 GB, free: 1.277 MB / 0.8419 GB Notification: Performance of Templates: time 0.006735/0.3935, allocations: 3.391 MB / 1.095 GB, free: 13.91 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)