Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.151/2.151, allocations: 284.8 MB / 292.1 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001619/0.001618, allocations: 193.2 kB / 360.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001243/0.001242, allocations: 96.3 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2456/0.2469, allocations: 121.4 MB / 0.8502 GB, free: 3.898 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5546/0.8015, allocations: 115.2 MB / 0.9628 GB, free: 78.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.593/5.394, allocations: 2.102 GB / 3.065 GB, free: 264.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/5.395, allocations: 103.6 kB / 3.065 GB, free: 264.6 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.2306/5.625, allocations: 59.72 MB / 3.123 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/5.625, allocations: 8 kB / 3.123 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002555/5.628, allocations: 309.8 kB / 3.123 GB, free: 234.3 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/5.63, allocations: 0.832 MB / 3.124 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/5.631, allocations: 32 kB / 3.124 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/5.631, allocations: 63.94 kB / 3.124 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003401/5.634, allocations: 1.296 MB / 3.125 GB, free: 232.5 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003026/5.637, allocations: 1.13 MB / 3.127 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.501e-05/5.637, allocations: 4 kB / 3.127 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/5.638, allocations: 0 / 3.127 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.769e-05/5.638, allocations: 65.25 kB / 3.127 GB, free: 231.5 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009559/5.647, allocations: 4.531 MB / 3.131 GB, free: 227.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/5.649, allocations: 0.9051 MB / 3.132 GB, free: 226.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008439/5.65, allocations: 394.4 kB / 3.132 GB, free: 226.7 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002844/5.651, allocations: 117.5 kB / 3.132 GB, free: 226.5 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/5.652, allocations: 0.5275 MB / 3.133 GB, free: 226.1 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=94): time 3.917e-06/5.652, allocations: 0 / 3.133 GB, free: 226.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=95): time 0.004177/5.656, allocations: 1.348 MB / 3.134 GB, free: 225 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/5.656, allocations: 299.4 kB / 3.135 GB, free: 224.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/5.658, allocations: 0.7864 MB / 3.135 GB, free: 224.1 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001847/5.658, allocations: 25.7 kB / 3.135 GB, free: 224 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/5.658, allocations: 409.2 kB / 3.136 GB, free: 223.7 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/5.658, allocations: 311.6 kB / 3.136 GB, free: 223.4 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.66e-05/5.659, allocations: 0 / 3.136 GB, free: 223.4 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.38e-05/5.659, allocations: 344.5 kB / 3.136 GB, free: 223.1 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007709/5.659, allocations: 317 kB / 3.137 GB, free: 222.9 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009571/5.66, allocations: 0.5049 MB / 3.137 GB, free: 222.4 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/5.662, allocations: 434.8 kB / 3.138 GB, free: 222.2 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/5.662, allocations: 0 / 3.138 GB, free: 222.2 MB / 0.9323 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003507/5.665, allocations: 1.052 MB / 3.139 GB, free: 221.3 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002236/5.666, allocations: 1.143 MB / 3.14 GB, free: 220.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/5.666, allocations: 4 kB / 3.14 GB, free: 220.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/5.667, allocations: 100.2 kB / 3.14 GB, free: 220.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001876/5.669, allocations: 204.1 kB / 3.14 GB, free: 219.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009174/5.67, allocations: 0.6615 MB / 3.141 GB, free: 219.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/5.671, allocations: 79.58 kB / 3.141 GB, free: 219.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/5.671, allocations: 39.72 kB / 3.141 GB, free: 219.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/5.671, allocations: 7.938 kB / 3.141 GB, free: 219.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002254/5.674, allocations: 0.7987 MB / 3.142 GB, free: 218.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/5.674, allocations: 3.906 kB / 3.142 GB, free: 218.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/5.674, allocations: 9.125 kB / 3.142 GB, free: 218.5 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/5.675, allocations: 207.1 kB / 3.142 GB, free: 218.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/5.675, allocations: 8 kB / 3.142 GB, free: 218.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/5.677, allocations: 79.73 kB / 3.142 GB, free: 218.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/5.677, allocations: 41.19 kB / 3.142 GB, free: 218.2 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003193/5.677, allocations: 139.9 kB / 3.142 GB, free: 218.1 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002728/5.677, allocations: 106.7 kB / 3.142 GB, free: 217.9 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004843/5.682, allocations: 1.319 MB / 3.143 GB, free: 217 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/5.682, allocations: 12.94 kB / 3.143 GB, free: 216.9 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/5.682, allocations: 0 / 3.143 GB, free: 216.9 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/5.682, allocations: 11.88 kB / 3.143 GB, free: 216.9 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00673/5.689, allocations: 2.491 MB / 3.146 GB, free: 215 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/5.689, allocations: 4 kB / 3.146 GB, free: 215 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/5.691, allocations: 190.9 kB / 3.146 GB, free: 214.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001442/5.692, allocations: 184.2 kB / 3.146 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/5.692, allocations: 16.42 kB / 3.146 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002695/5.695, allocations: 1.682 MB / 3.148 GB, free: 213 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/5.695, allocations: 7.969 kB / 3.148 GB, free: 213 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00381/5.699, allocations: 1.393 MB / 3.149 GB, free: 211.8 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003877/5.703, allocations: 1.801 MB / 3.151 GB, free: 210.2 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008716/5.704, allocations: 356.7 kB / 3.151 GB, free: 209.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/5.704, allocations: 5.875 kB / 3.151 GB, free: 209.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/5.706, allocations: 71.92 kB / 3.151 GB, free: 209.8 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/5.706, allocations: 71.95 kB / 3.151 GB, free: 209.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/5.706, allocations: 35.8 kB / 3.152 GB, free: 209.7 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001182/5.707, allocations: 0.6182 MB / 3.152 GB, free: 209.3 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003993/5.711, allocations: 493.6 kB / 3.153 GB, free: 208.9 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/5.713, allocations: 496.9 kB / 3.153 GB, free: 208.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003381/5.716, allocations: 1.337 MB / 3.154 GB, free: 207.4 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/5.716, allocations: 1.5 kB / 3.154 GB, free: 207.4 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001422/5.717, allocations: 0.5954 MB / 3.155 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/5.72, allocations: 268.2 kB / 3.155 GB, free: 206.6 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/5.725, allocations: 1.815 MB / 3.157 GB, free: 204.7 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/5.727, allocations: 1.338 MB / 3.158 GB, free: 203.3 MB / 0.9323 GB Notification: Performance of SimCode: time 2.535e-06/5.727, allocations: 4 kB / 3.158 GB, free: 203.3 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)