Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.214/1.214, allocations: 249.4 MB / 256.7 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 180.4 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.118/1.118, allocations: 205.2 MB / 0.5667 GB, free: 15.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008494/0.0008494, allocations: 91.33 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3246/0.3255, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.4718, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4784/0.9502, allocations: 154 MB / 1.035 GB, free: 2.148 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.9505, allocations: 92.25 kB / 1.035 GB, free: 2.098 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.04046/0.9909, allocations: 17.19 MB / 1.052 GB, free: 3.707 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.991, allocations: 8 kB / 1.052 GB, free: 3.699 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000789/0.9918, allocations: 103.3 kB / 1.052 GB, free: 3.602 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.9922, allocations: 279.2 kB / 1.052 GB, free: 3.309 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.9923, allocations: 8 kB / 1.052 GB, free: 3.301 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.9923, allocations: 16 kB / 1.052 GB, free: 3.285 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004048/0.9927, allocations: 253.5 kB / 1.053 GB, free: 3.125 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.9933, allocations: 351.8 kB / 1.053 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.9933, allocations: 0 / 1.053 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.9933, allocations: 4 kB / 1.053 GB, free: 2.828 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.671e-05/0.9934, allocations: 24.36 kB / 1.053 GB, free: 2.801 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.9952, allocations: 1.62 MB / 1.054 GB, free: 1.258 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.9958, allocations: 332 kB / 1.055 GB, free: 0.9961 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.996, allocations: 161.8 kB / 1.055 GB, free: 0.8789 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.9961, allocations: 93.08 kB / 1.055 GB, free: 0.7695 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.9964, allocations: 227.5 kB / 1.055 GB, free: 0.5781 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=27): time 1.482e-06/0.9964, allocations: 0 / 1.055 GB, free: 0.5781 MB / 0.6667 GB Notification: Performance of matching and sorting (n=28): time 0.0008881/0.9973, allocations: 421.4 kB / 1.056 GB, free: 240 kB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.9974, allocations: 85.05 kB / 1.056 GB, free: 136 kB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.9976, allocations: 193.6 kB / 1.056 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.9977, allocations: 29.64 kB / 1.056 GB, free: 15.93 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.485e-05/0.9977, allocations: 146.5 kB / 1.056 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.9978, allocations: 95.06 kB / 1.056 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-05/0.9978, allocations: 0 / 1.056 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.9979, allocations: 336.5 kB / 1.056 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.9981, allocations: 127.5 kB / 1.057 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.9984, allocations: 203.2 kB / 1.057 GB, free: 15.13 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.9987, allocations: 167.8 kB / 1.057 GB, free: 15.02 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.9987, allocations: 0 / 1.057 GB, free: 15.02 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007137/0.9994, allocations: 435.6 kB / 1.057 GB, free: 14.68 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002874/0.9997, allocations: 0.872 MB / 1.058 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.9997, allocations: 4 kB / 1.058 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.9999, allocations: 40.14 kB / 1.058 GB, free: 13.71 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004139/1, allocations: 87.88 kB / 1.058 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/1.002, allocations: 1.418 MB / 1.06 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/1.002, allocations: 51.91 kB / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/1.002, allocations: 19.88 kB / 1.06 GB, free: 12.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.188e-06/1.002, allocations: 0 / 1.06 GB, free: 12.1 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000628/1.003, allocations: 348.8 kB / 1.06 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/1.003, allocations: 4 kB / 1.06 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/1.003, allocations: 39.45 kB / 1.06 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/1.003, allocations: 91.66 kB / 1.06 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/1.004, allocations: 1.4 MB / 1.062 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/1.005, allocations: 43.92 kB / 1.062 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/1.005, allocations: 15.31 kB / 1.062 GB, free: 10.21 MB / 0.6823 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.0001137/1.005, allocations: 108.9 kB / 1.062 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/1.005, allocations: 35.62 kB / 1.062 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006971/1.005, allocations: 392.4 kB / 1.062 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/1.005, allocations: 4 kB / 1.062 GB, free: 9.773 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.005, allocations: 4 kB / 1.062 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.005, allocations: 4.078 kB / 1.062 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/1.006, allocations: 0.5176 MB / 1.063 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.006, allocations: 0 / 1.063 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/1.006, allocations: 87.77 kB / 1.063 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/1.007, allocations: 32.58 kB / 1.063 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/1.007, allocations: 4 kB / 1.063 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009768/1.008, allocations: 1.336 MB / 1.064 GB, free: 7.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.008, allocations: 4 kB / 1.064 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000628/1.008, allocations: 0.5026 MB / 1.065 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007322/1.009, allocations: 0.8772 MB / 1.066 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/1.009, allocations: 131.8 kB / 1.066 GB, free: 6.328 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/1.009, allocations: 11.67 kB / 1.066 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/1.01, allocations: 35.97 kB / 1.066 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/1.01, allocations: 31.2 kB / 1.066 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/1.01, allocations: 11.72 kB / 1.066 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001311/1.01, allocations: 160.9 kB / 1.066 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001805/1.012, allocations: 131.9 kB / 1.066 GB, free: 5.996 MB / 0.6823 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.0001795/1.012, allocations: 119.1 kB / 1.066 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001072/1.013, allocations: 0.7703 MB / 1.067 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.013, allocations: 4 kB / 1.067 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003937/1.013, allocations: 272.7 kB / 1.067 GB, free: 4.992 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/1.014, allocations: 35.78 kB / 1.067 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/1.015, allocations: 496.8 kB / 1.068 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004337/1.015, allocations: 0.8223 MB / 1.068 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of SimCode: time 2.9e-07/1.015, allocations: 0 / 1.068 GB, free: 3.668 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)