Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",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.1.4-maint.8.1.x/package.mo): time 1.372/1.372, allocations: 289.8 MB / 297 MB, free: 6.645 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.0009637/0.0009638, allocations: 181.3 kB / 366.3 MB, free: 1.938 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.101/1.101, allocations: 205.1 MB / 0.6256 GB, free: 5.785 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.0007438/0.0007437, allocations: 89.34 kB / 0.7395 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.19/0.1907, allocations: 122.4 MB / 0.8591 GB, free: 13.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.643, allocations: 116.3 MB / 0.9727 GB, free: 68.37 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.803, allocations: 160.2 MB / 1.129 GB, free: 4.191 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.8034, allocations: 91.94 kB / 1.129 GB, free: 4.102 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0399/0.8433, allocations: 17.19 MB / 1.146 GB, free: 2.73 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.8433, allocations: 8 kB / 1.146 GB, free: 2.723 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008374/0.8442, allocations: 103.5 kB / 1.146 GB, free: 2.621 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.8445, allocations: 282 kB / 1.146 GB, free: 2.305 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.8446, allocations: 11.98 kB / 1.146 GB, free: 2.293 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.254e-05/0.8446, allocations: 12 kB / 1.146 GB, free: 2.281 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004964/0.8451, allocations: 260.8 kB / 1.147 GB, free: 2.027 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.8457, allocations: 351.7 kB / 1.147 GB, free: 1.656 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.8457, allocations: 3.938 kB / 1.147 GB, free: 1.652 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.8457, allocations: 2.531 kB / 1.147 GB, free: 1.652 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.126e-05/0.8458, allocations: 28.36 kB / 1.147 GB, free: 1.621 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.8477, allocations: 1.611 MB / 1.149 GB, free: 15.89 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.8483, allocations: 334.2 kB / 1.149 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.8485, allocations: 161.7 kB / 1.149 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001943/0.8487, allocations: 97.08 kB / 1.149 GB, free: 15.27 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.849, allocations: 214.4 kB / 1.149 GB, free: 15.04 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.849, allocations: 0 / 1.149 GB, free: 15.04 MB / 0.7605 GB Notification: Performance of matching and sorting (n=28): time 0.0008794/0.8499, allocations: 424.9 kB / 1.15 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.8499, allocations: 89.11 kB / 1.15 GB, free: 14.51 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.8501, allocations: 187.1 kB / 1.15 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.8501, allocations: 29.7 kB / 1.15 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/0.8502, allocations: 148 kB / 1.15 GB, free: 14.13 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.8503, allocations: 86.75 kB / 1.15 GB, free: 14.05 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.938e-05/0.8503, allocations: 0 / 1.15 GB, free: 14.05 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.8504, allocations: 338.7 kB / 1.151 GB, free: 13.71 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.8506, allocations: 132.2 kB / 1.151 GB, free: 13.58 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.8509, allocations: 205.4 kB / 1.151 GB, free: 13.35 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.8512, allocations: 164.1 kB / 1.151 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.8512, allocations: 0 / 1.151 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007493/0.8519, allocations: 427.6 kB / 1.151 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.8522, allocations: 0.8736 MB / 1.152 GB, free: 11.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.8522, allocations: 11.98 kB / 1.152 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000212/0.8524, allocations: 36.83 kB / 1.152 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.8529, allocations: 97.41 kB / 1.152 GB, free: 11.68 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.8541, allocations: 1.406 MB / 1.154 GB, free: 10.15 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.8545, allocations: 51.91 kB / 1.154 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.8545, allocations: 8 kB / 1.154 GB, free: 10.09 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.649e-06/0.8545, allocations: 4 kB / 1.154 GB, free: 10.09 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006423/0.8552, allocations: 359.2 kB / 1.154 GB, free: 9.734 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.8552, allocations: 4 kB / 1.154 GB, free: 9.73 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001285/0.8553, allocations: 41.11 kB / 1.154 GB, free: 9.688 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.8557, allocations: 95.88 kB / 1.154 GB, free: 9.594 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009797/0.8567, allocations: 1.398 MB / 1.156 GB, free: 8.078 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.8571, allocations: 47.92 kB / 1.156 GB, free: 8.031 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.8571, allocations: 11.91 kB / 1.156 GB, free: 8.02 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.8572, allocations: 116.9 kB / 1.156 GB, free: 7.898 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/0.8573, allocations: 28.36 kB / 1.156 GB, free: 7.871 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006754/0.8579, allocations: 383.9 kB / 1.156 GB, free: 7.484 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.8579, allocations: 8 kB / 1.156 GB, free: 7.477 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.858, allocations: 0 / 1.156 GB, free: 7.477 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.858, allocations: 4 kB / 1.156 GB, free: 7.473 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.8586, allocations: 0.5198 MB / 1.157 GB, free: 6.902 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8586, allocations: 0 / 1.157 GB, free: 6.902 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.859, allocations: 77.34 kB / 1.157 GB, free: 6.828 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.8591, allocations: 40.73 kB / 1.157 GB, free: 6.785 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.8591, allocations: 8.062 kB / 1.157 GB, free: 6.777 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009037/0.86, allocations: 1.334 MB / 1.158 GB, free: 5.328 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.86, allocations: 4 kB / 1.158 GB, free: 5.324 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006271/0.8607, allocations: 0.5043 MB / 1.159 GB, free: 4.773 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007222/0.8614, allocations: 0.8831 MB / 1.16 GB, free: 3.84 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.8615, allocations: 140.6 kB / 1.16 GB, free: 3.684 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.8616, allocations: 0 / 1.16 GB, free: 3.684 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003289/0.8619, allocations: 39.95 kB / 1.16 GB, free: 3.645 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.862, allocations: 27.95 kB / 1.16 GB, free: 3.617 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.8621, allocations: 8 kB / 1.16 GB, free: 3.609 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001166/0.8622, allocations: 156.5 kB / 1.16 GB, free: 3.457 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001733/0.8639, allocations: 132 kB / 1.16 GB, free: 3.328 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002074/0.8641, allocations: 123.7 kB / 1.16 GB, free: 3.199 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001028/0.8652, allocations: 0.7617 MB / 1.161 GB, free: 2.406 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.8652, allocations: 3.938 kB / 1.161 GB, free: 2.402 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.8656, allocations: 286.7 kB / 1.161 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.8659, allocations: 45.5 kB / 1.161 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.8669, allocations: 482.3 kB / 1.162 GB, free: 1.57 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.8674, allocations: 0.8158 MB / 1.162 GB, free: 0.7266 MB / 0.7605 GB Notification: Performance of SimCode: time 2.2e-07/0.8674, allocations: 0 / 1.162 GB, free: 0.7266 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)