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.0009049/0.0009048, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007984/0.007984, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 7.406 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3332, allocations: 162.2 MB / 1.074 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004646/0.3379, allocations: 3.518 MB / 1.078 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002692/0.3407, allocations: 1.738 MB / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.3408, allocations: 7.938 kB / 1.079 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.3411, allocations: 55.56 kB / 1.079 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005171/0.3416, allocations: 235 kB / 1.08 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.3422, allocations: 235.2 kB / 1.08 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000689/0.3429, allocations: 0.7012 MB / 1.08 GB, free: 1 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004468/0.3433, allocations: 361.5 kB / 1.081 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.3435, allocations: 151.4 kB / 1.081 GB, free: 476 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003585/0.3439, allocations: 235.1 kB / 1.081 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.3439, allocations: 20 kB / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003525/0.3443, allocations: 219.5 kB / 1.081 GB, free: 0 / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.3445, allocations: 115.7 kB / 1.082 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.3446, allocations: 180.8 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005061/0.3451, allocations: 498.5 kB / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3452, allocations: 0 / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3452, allocations: 0 / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.3452, allocations: 0 / 1.082 GB, free: 15.21 MB / 0.8419 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.001063/0.3462, allocations: 0.6043 MB / 1.083 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3463, allocations: 8.031 kB / 1.083 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005721/0.3469, allocations: 88.34 kB / 1.083 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.3472, allocations: 293.5 kB / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.3473, allocations: 29.02 kB / 1.083 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.063e-05/0.3473, allocations: 28.38 kB / 1.083 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008162/0.3482, allocations: 498 kB / 1.084 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.3482, allocations: 3.938 kB / 1.084 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.3482, allocations: 15.98 kB / 1.084 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/0.3483, allocations: 40.62 kB / 1.084 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007674/0.3491, allocations: 382.3 kB / 1.084 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.3512, allocations: 2.048 MB / 1.086 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.3518, allocations: 222.7 kB / 1.086 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/0.3522, allocations: 170.2 kB / 1.086 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.3523, allocations: 7.984 kB / 1.086 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.3523, allocations: 38.5 kB / 1.086 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.3523, allocations: 4 kB / 1.086 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001153/0.3535, allocations: 456.6 kB / 1.087 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.3535, allocations: 55.41 kB / 1.087 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3538, allocations: 270.6 kB / 1.087 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.3538, allocations: 25.7 kB / 1.087 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.354, allocations: 207.8 kB / 1.087 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.354, allocations: 59.11 kB / 1.088 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.3541, allocations: 29.7 kB / 1.088 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.3542, allocations: 334.8 kB / 1.088 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.3545, allocations: 112.4 kB / 1.088 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.3549, allocations: 215.6 kB / 1.088 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.3555, allocations: 334.6 kB / 1.088 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3555, allocations: 3.938 kB / 1.089 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007957/0.3563, allocations: 374.1 kB / 1.089 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.3564, allocations: 199.8 kB / 1.089 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3565, allocations: 7.938 kB / 1.089 GB, free: 7.574 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.3567, allocations: 32.84 kB / 1.089 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.357, allocations: 75.89 kB / 1.089 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.3582, allocations: 1.331 MB / 1.09 GB, free: 6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.3585, allocations: 43.67 kB / 1.091 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.3585, allocations: 16 kB / 1.091 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.271e-06/0.3585, allocations: 8.094 kB / 1.091 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006716/0.3592, allocations: 301.6 kB / 1.091 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3592, allocations: 4 kB / 1.091 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.3593, allocations: 4 kB / 1.091 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.3595, allocations: 88.11 kB / 1.091 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3595, allocations: 4 kB / 1.091 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.3598, allocations: 39.73 kB / 1.091 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.3598, allocations: 20 kB / 1.091 GB, free: 5.484 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.0002209/0.36, allocations: 249.7 kB / 1.091 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-05/0.3601, allocations: 23.72 kB / 1.091 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.362e-05/0.3602, allocations: 38.11 kB / 1.091 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3602, allocations: 3.938 kB / 1.091 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3602, allocations: 0 / 1.091 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3602, allocations: 0 / 1.091 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.3614, allocations: 0.7734 MB / 1.092 GB, free: 4.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3614, allocations: 0 / 1.092 GB, free: 4.312 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.3616, allocations: 47.91 kB / 1.092 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.732e-05/0.3617, allocations: 24.83 kB / 1.092 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.3617, allocations: 8 kB / 1.092 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009718/0.3627, allocations: 1.323 MB / 1.093 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3627, allocations: 12.09 kB / 1.093 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006843/0.3634, allocations: 383.5 kB / 1.094 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-05/0.3635, allocations: 116.8 kB / 1.094 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3636, allocations: 7.938 kB / 1.094 GB, free: 2.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.3638, allocations: 23.98 kB / 1.094 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.3638, allocations: 19.97 kB / 1.094 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3638, allocations: 4 kB / 1.094 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001599/0.364, allocations: 182 kB / 1.094 GB, free: 2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.364, allocations: 4 kB / 1.094 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005586/0.3646, allocations: 143.5 kB / 1.094 GB, free: 1.855 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.0001165/0.3647, allocations: 107.2 kB / 1.094 GB, free: 1.738 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00108/0.3658, allocations: 0.5045 MB / 1.095 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3658, allocations: 0 / 1.095 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.3662, allocations: 235.2 kB / 1.095 GB, free: 0.9805 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.3667, allocations: 63.48 kB / 1.095 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009099/0.3676, allocations: 0.7029 MB / 1.096 GB, free: 192 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.368, allocations: 0.7957 MB / 1.097 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002301/0.3683, allocations: 74.2 kB / 1.097 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.3683, allocations: 19.44 kB / 1.097 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3684, allocations: 0 / 1.097 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of Templates: time 0.007221/0.3756, allocations: 3.22 MB / 1.1 GB, free: 12.08 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)