Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") [: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/Complex 3.2.3+maint.om/package.mo): time 0.001673/0.001673, allocations: 190.3 kB / 7.804 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00129/0.00129, allocations: 88.25 kB / 261.4 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2718/0.2718, allocations: 37.97 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.243e-06/7.384e-06, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 56.32 MB / 465.6 MB, free: 6.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3431/0.4438, allocations: 97.46 MB / 0.5499 GB, free: 13.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.4442, allocations: 95.94 kB / 0.55 GB, free: 13.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06723/0.5115, allocations: 15.73 MB / 0.5653 GB, free: 13.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.785e-05/0.5116, allocations: 15.94 kB / 0.5654 GB, free: 13.39 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002673/0.5143, allocations: 0.8712 MB / 0.5662 GB, free: 12.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.5143, allocations: 8.031 kB / 0.5662 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.5146, allocations: 79.16 kB / 0.5663 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004925/0.5196, allocations: 1.162 MB / 0.5674 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.5198, allocations: 96.7 kB / 0.5675 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.52, allocations: 39.94 kB / 0.5676 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001686/0.5217, allocations: 0.5023 MB / 0.5681 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.5234, allocations: 0.6368 MB / 0.5687 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.5235, allocations: 0 / 0.5687 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-05/0.5236, allocations: 7.984 kB / 0.5687 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.5236, allocations: 12 kB / 0.5687 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005929/0.5296, allocations: 2.38 MB / 0.571 GB, free: 7.367 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.5307, allocations: 363.6 kB / 0.5714 GB, free: 6.984 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.5313, allocations: 178.6 kB / 0.5715 GB, free: 6.805 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.5313, allocations: 8.266 kB / 0.5715 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004876/0.5318, allocations: 211.4 kB / 0.5717 GB, free: 6.566 MB / 410.7 MB Notification: Performance of pre-optimization done (n=36): time 3.507e-06/0.5318, allocations: 4 kB / 0.5717 GB, free: 6.562 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001813/0.5337, allocations: 407.7 kB / 0.5721 GB, free: 6.156 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.5338, allocations: 136.5 kB / 0.5723 GB, free: 5.992 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005395/0.5343, allocations: 282 kB / 0.5725 GB, free: 5.719 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.822e-05/0.5344, allocations: 25.7 kB / 0.5726 GB, free: 5.688 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.5347, allocations: 322.2 kB / 0.5729 GB, free: 5.367 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.5349, allocations: 114.4 kB / 0.573 GB, free: 5.254 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.5349, allocations: 0 / 0.573 GB, free: 5.254 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.5351, allocations: 334.8 kB / 0.5733 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.5354, allocations: 112.8 kB / 0.5734 GB, free: 4.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.5359, allocations: 225.2 kB / 0.5736 GB, free: 4.543 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.5363, allocations: 132.9 kB / 0.5737 GB, free: 4.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5364, allocations: 0 / 0.5737 GB, free: 4.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00186/0.5382, allocations: 460.9 kB / 0.5742 GB, free: 3.953 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.5383, allocations: 4 kB / 0.5742 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.5383, allocations: 4 kB / 0.5742 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005083/0.5388, allocations: 136.8 kB / 0.5743 GB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006521/0.5395, allocations: 83.91 kB / 0.5744 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003428/0.5429, allocations: 1.674 MB / 0.576 GB, free: 1.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.5435, allocations: 35.73 kB / 0.5761 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.309e-05/0.5436, allocations: 20 kB / 0.5761 GB, free: 1.883 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.5438, allocations: 49.52 kB / 0.5761 GB, free: 1.828 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.5439, allocations: 43.52 kB / 0.5762 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.5458, allocations: 414.7 kB / 0.5766 GB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.5458, allocations: 4 kB / 0.5766 GB, free: 1.367 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.5459, allocations: 0 / 0.5766 GB, free: 1.367 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.5459, allocations: 3.984 kB / 0.5766 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.5472, allocations: 0.6008 MB / 0.5772 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.5473, allocations: 3.984 kB / 0.5772 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005488/0.5478, allocations: 43.98 kB / 0.5772 GB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.5483, allocations: 124.8 kB / 0.5773 GB, free: 0.543 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.5483, allocations: 4 kB / 0.5773 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.5517, allocations: 1.67 MB / 0.579 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.5517, allocations: 0 / 0.579 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002273/0.554, allocations: 0.6563 MB / 0.5796 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.5544, allocations: 144.5 kB / 0.5797 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.721e-05/0.5545, allocations: 7.984 kB / 0.5798 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.5549, allocations: 15.98 kB / 0.5798 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.5551, allocations: 31.86 kB / 0.5798 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.5551, allocations: 15.94 kB / 0.5798 GB, free: 13.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004067/0.5556, allocations: 212.6 kB / 0.58 GB, free: 13.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007474/0.5563, allocations: 155.4 kB / 0.5802 GB, free: 13.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002813/0.5566, allocations: 130 kB / 0.5803 GB, free: 13.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.5579, allocations: 425.5 kB / 0.5807 GB, free: 12.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5579, allocations: 0 / 0.5807 GB, free: 12.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.5586, allocations: 278.6 kB / 0.581 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009395/0.5596, allocations: 109.4 kB / 0.5811 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.5626, allocations: 0.9286 MB / 0.582 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009569/0.5636, allocations: 0.9752 MB / 0.5829 GB, free: 10.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.854e-06/0.5637, allocations: 0 / 0.5829 GB, free: 10.53 MB / 426.7 MB Notification: Performance of Templates: time 0.02133/0.585, allocations: 9.554 MB / 0.5923 GB, free: 0.9688 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)