Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.508/2.508, allocations: 253.1 MB / 260.4 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002211/0.002212, allocations: 188.5 kB / 319.6 MB, free: 3.332 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 0.5704 GB, free: 15.14 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001331/0.001331, allocations: 95.98 kB / 0.6746 GB, free: 4.492 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.024e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.263, allocations: 106.2 MB / 0.888 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7052/0.9683, allocations: 148.6 MB / 1.033 GB, free: 7.609 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.9687, allocations: 76.77 kB / 1.033 GB, free: 7.57 MB / 0.6511 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.02146/0.9902, allocations: 5.291 MB / 1.038 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.249e-05/0.9903, allocations: 8 kB / 1.038 GB, free: 3.328 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006615/0.991, allocations: 452 kB / 1.039 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.991, allocations: 8.25 kB / 1.039 GB, free: 2.828 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.9913, allocations: 23.8 kB / 1.039 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.9917, allocations: 220.7 kB / 1.039 GB, free: 2.559 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/0.9918, allocations: 37.8 kB / 1.039 GB, free: 2.516 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.9918, allocations: 4 kB / 1.039 GB, free: 2.512 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002442/0.9921, allocations: 66.72 kB / 1.039 GB, free: 2.469 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.9924, allocations: 131.5 kB / 1.039 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.9924, allocations: 3.938 kB / 1.039 GB, free: 2.348 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.9925, allocations: 0 / 1.039 GB, free: 2.348 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/0.9925, allocations: 8.188 kB / 1.039 GB, free: 2.34 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.9936, allocations: 0.6007 MB / 1.04 GB, free: 1.746 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.9939, allocations: 51.31 kB / 1.04 GB, free: 1.699 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.994, allocations: 19.3 kB / 1.04 GB, free: 1.684 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.9941, allocations: 4 kB / 1.04 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000158/0.9942, allocations: 116.2 kB / 1.04 GB, free: 1.551 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 2.214e-06/0.9943, allocations: 7.938 kB / 1.04 GB, free: 1.543 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002854/0.9946, allocations: 79.23 kB / 1.04 GB, free: 1.469 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.9947, allocations: 135.7 kB / 1.04 GB, free: 1.309 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.9949, allocations: 161.4 kB / 1.04 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.9949, allocations: 25.7 kB / 1.04 GB, free: 1.133 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.878e-05/0.995, allocations: 132.3 kB / 1.041 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.9951, allocations: 18.97 kB / 1.041 GB, free: 0.9922 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.9951, allocations: 0 / 1.041 GB, free: 0.9922 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.9952, allocations: 325.5 kB / 1.041 GB, free: 0.6719 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-05/0.9953, allocations: 36.31 kB / 1.041 GB, free: 0.6445 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.9955, allocations: 95.48 kB / 1.041 GB, free: 0.5352 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.9957, allocations: 46.36 kB / 1.041 GB, free: 0.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.9957, allocations: 4 kB / 1.041 GB, free: 0.4961 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003566/0.996, allocations: 146.9 kB / 1.041 GB, free: 376 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.9961, allocations: 4 kB / 1.041 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.9961, allocations: 4 kB / 1.041 GB, free: 368 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.9961, allocations: 4 kB / 1.041 GB, free: 364 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.9964, allocations: 31.92 kB / 1.041 GB, free: 332 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.9964, allocations: 4 kB / 1.041 GB, free: 328 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.9967, allocations: 31.95 kB / 1.041 GB, free: 296 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.9967, allocations: 11.5 kB / 1.041 GB, free: 288 kB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.9968, allocations: 138.6 kB / 1.041 GB, free: 136 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.9969, allocations: 15.81 kB / 1.041 GB, free: 120 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.997, allocations: 16.64 kB / 1.041 GB, free: 108 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.997, allocations: 0 / 1.041 GB, free: 108 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.997, allocations: 0 / 1.041 GB, free: 108 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.997, allocations: 4 kB / 1.041 GB, free: 104 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.9973, allocations: 188.6 kB / 1.042 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.9973, allocations: 0 / 1.042 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.9974, allocations: 15.98 kB / 1.042 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.9974, allocations: 0 / 1.042 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.9975, allocations: 4 kB / 1.042 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.9975, allocations: 0 / 1.042 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.9975, allocations: 3.938 kB / 1.042 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003664/0.9979, allocations: 148.5 kB / 1.042 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.998, allocations: 93 kB / 1.042 GB, free: 15.63 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.998, allocations: 4 kB / 1.042 GB, free: 15.63 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.9982, allocations: 12.03 kB / 1.042 GB, free: 15.62 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.321e-05/0.9983, allocations: 10.48 kB / 1.042 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.9983, allocations: 0 / 1.042 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001418/0.9985, allocations: 122.3 kB / 1.042 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003836/0.9989, allocations: 35.95 kB / 1.042 GB, free: 15.47 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001746/0.9991, allocations: 110.3 kB / 1.042 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003106/0.9994, allocations: 137.6 kB / 1.042 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9994, allocations: 0 / 1.042 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.9995, allocations: 71.08 kB / 1.042 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.9998, allocations: 11.86 kB / 1.042 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006661/1.001, allocations: 185.5 kB / 1.043 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004633/1.001, allocations: 0.7309 MB / 1.043 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of SimCode: time 7.91e-07/1.001, allocations: 0 / 1.043 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of Templates: time 0.005647/1.007, allocations: 1.176 MB / 1.044 GB, free: 13.07 MB / 0.6667 GB