Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.319/1.319, allocations: 285.5 MB / 292.8 MB, free: 9.805 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.0009337/0.0009337, allocations: 183.6 kB / 361.1 MB, free: 440 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.036/1.036, allocations: 205.1 MB / 0.6195 GB, free: 2.91 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007747/0.0007747, allocations: 100.4 kB / 0.7326 GB, free: 1.094 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.3618/0.3626, allocations: 121.4 MB / 0.8512 GB, free: 151.7 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.5169, allocations: 115.3 MB / 0.9638 GB, free: 56.32 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.9486, allocations: 159.2 MB / 1.119 GB, free: 31.71 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.9488, allocations: 95.28 kB / 1.119 GB, free: 31.71 MB / 0.7136 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.03505/0.9839, allocations: 17.2 MB / 1.136 GB, free: 29.89 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.9839, allocations: 8.25 kB / 1.136 GB, free: 29.89 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007519/0.9847, allocations: 102.8 kB / 1.136 GB, free: 29.88 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.985, allocations: 274.2 kB / 1.136 GB, free: 29.65 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.985, allocations: 15.41 kB / 1.137 GB, free: 29.65 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.9851, allocations: 11.72 kB / 1.137 GB, free: 29.65 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003564/0.9854, allocations: 247.7 kB / 1.137 GB, free: 29.65 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.9858, allocations: 353.6 kB / 1.137 GB, free: 29.54 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.9859, allocations: 0 / 1.137 GB, free: 29.54 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.9859, allocations: 3.906 kB / 1.137 GB, free: 29.54 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/0.9859, allocations: 30.56 kB / 1.137 GB, free: 29.53 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.9875, allocations: 1.609 MB / 1.139 GB, free: 28.46 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.9879, allocations: 343.7 kB / 1.139 GB, free: 28.4 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.9881, allocations: 162.5 kB / 1.139 GB, free: 28.38 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.9882, allocations: 92.33 kB / 1.139 GB, free: 28.28 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.9885, allocations: 218 kB / 1.139 GB, free: 28.22 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.9885, allocations: 0 / 1.139 GB, free: 28.22 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0007817/0.9893, allocations: 430.4 kB / 1.14 GB, free: 44.11 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.9893, allocations: 90.98 kB / 1.14 GB, free: 44.01 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.9895, allocations: 188.1 kB / 1.14 GB, free: 43.91 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.9895, allocations: 29.58 kB / 1.14 GB, free: 43.88 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.045e-05/0.9896, allocations: 152.7 kB / 1.14 GB, free: 43.75 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.9896, allocations: 85.23 kB / 1.14 GB, free: 43.7 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.9896, allocations: 0 / 1.14 GB, free: 43.7 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.9897, allocations: 336.2 kB / 1.141 GB, free: 43.38 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.9899, allocations: 127 kB / 1.141 GB, free: 43.38 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.9901, allocations: 209.1 kB / 1.141 GB, free: 43.29 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.9903, allocations: 176.4 kB / 1.141 GB, free: 43.28 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9904, allocations: 0 / 1.141 GB, free: 43.28 MB / 0.7292 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006185/0.991, allocations: 426.7 kB / 1.142 GB, free: 43.21 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002855/0.9913, allocations: 0.8721 MB / 1.142 GB, free: 42.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.9913, allocations: 7.906 kB / 1.142 GB, free: 42.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.9915, allocations: 40.17 kB / 1.143 GB, free: 42.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.9919, allocations: 92.77 kB / 1.143 GB, free: 42.28 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.9929, allocations: 1.408 MB / 1.144 GB, free: 41.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.9932, allocations: 48.64 kB / 1.144 GB, free: 41.03 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.9933, allocations: 16.92 kB / 1.144 GB, free: 41.03 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.12e-06/0.9933, allocations: 3.938 kB / 1.144 GB, free: 41.03 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005396/0.9938, allocations: 349.4 kB / 1.144 GB, free: 41 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.9939, allocations: 7.906 kB / 1.144 GB, free: 41 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001109/0.994, allocations: 41.98 kB / 1.144 GB, free: 40.98 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.9943, allocations: 84.94 kB / 1.145 GB, free: 40.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008701/0.9952, allocations: 1.402 MB / 1.146 GB, free: 39.74 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.9955, allocations: 52.47 kB / 1.146 GB, free: 39.73 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.9955, allocations: 11.69 kB / 1.146 GB, free: 39.73 MB / 0.7292 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.0001025/0.9956, allocations: 118.1 kB / 1.146 GB, free: 39.61 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.9957, allocations: 23.38 kB / 1.146 GB, free: 39.6 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.9963, allocations: 391.1 kB / 1.146 GB, free: 39.54 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.9963, allocations: 7.812 kB / 1.146 GB, free: 39.54 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.9963, allocations: 2.062 kB / 1.146 GB, free: 39.54 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.9963, allocations: 0 / 1.146 GB, free: 39.54 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004596/0.9968, allocations: 0.517 MB / 1.147 GB, free: 39.24 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.9968, allocations: 3.906 kB / 1.147 GB, free: 39.24 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.9972, allocations: 77.23 kB / 1.147 GB, free: 39.23 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.9973, allocations: 39.86 kB / 1.147 GB, free: 39.23 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.9973, allocations: 3.906 kB / 1.147 GB, free: 39.22 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007881/0.9981, allocations: 1.347 MB / 1.148 GB, free: 38.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.9981, allocations: 0 / 1.148 GB, free: 38.01 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005297/0.9987, allocations: 0.5019 MB / 1.149 GB, free: 37.77 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006213/0.9993, allocations: 0.8837 MB / 1.15 GB, free: 37.16 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.9994, allocations: 133.1 kB / 1.15 GB, free: 37.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.9995, allocations: 7.781 kB / 1.15 GB, free: 37.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.9998, allocations: 38.42 kB / 1.15 GB, free: 37.04 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.9999, allocations: 22.34 kB / 1.15 GB, free: 37.04 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.9999, allocations: 11.31 kB / 1.15 GB, free: 37.04 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001054/1, allocations: 163.5 kB / 1.15 GB, free: 36.96 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001567/1.002, allocations: 123.4 kB / 1.15 GB, free: 36.96 MB / 0.7292 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.0001462/1.002, allocations: 128.7 kB / 1.15 GB, free: 36.86 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009223/1.003, allocations: 0.7674 MB / 1.151 GB, free: 36.57 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.003, allocations: 0 / 1.151 GB, free: 36.57 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003285/1.003, allocations: 284.3 kB / 1.151 GB, free: 36.46 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/1.003, allocations: 37.95 kB / 1.151 GB, free: 36.45 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009115/1.004, allocations: 486.4 kB / 1.152 GB, free: 36.29 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/1.005, allocations: 0.8179 MB / 1.153 GB, free: 35.59 MB / 0.7292 GB Notification: Performance of SimCode: time 2.8e-07/1.005, allocations: 0 / 1.153 GB, free: 35.59 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)