Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",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/BuildingSystems 2.0.0-master/package.mo): time 0.7105/0.7105, allocations: 141.8 MB / 149.1 MB, free: 1.125 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 182.9 kB / 182 MB, free: 476 kB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 221.4 MB / 436 MB, free: 5.387 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008796/0.0008796, allocations: 96.39 kB / 0.507 GB, free: 2.055 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 276.3 kB / 0.5885 GB, free: 47.07 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3147/0.3165, allocations: 89.64 MB / 0.676 GB, free: 59.38 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.4498, allocations: 82.78 MB / 0.7568 GB, free: 400 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.5825, allocations: 107.1 MB / 0.8614 GB, free: 5.18 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.5828, allocations: 73.98 kB / 0.8615 GB, free: 5.109 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001532/0.5843, allocations: 0.586 MB / 0.862 GB, free: 4.473 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5844, allocations: 13 kB / 0.862 GB, free: 4.461 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.5844, allocations: 7.906 kB / 0.862 GB, free: 4.453 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.5845, allocations: 163 kB / 0.8622 GB, free: 4.254 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.5846, allocations: 4 kB / 0.8622 GB, free: 4.25 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.5846, allocations: 4 kB / 0.8622 GB, free: 4.246 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.972e-05/0.5847, allocations: 19.98 kB / 0.8622 GB, free: 4.227 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.014e-05/0.5848, allocations: 57.62 kB / 0.8623 GB, free: 4.164 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.5848, allocations: 0 / 0.8623 GB, free: 4.164 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.5848, allocations: 7.938 kB / 0.8623 GB, free: 4.156 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.5848, allocations: 4 kB / 0.8623 GB, free: 4.152 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000309/0.5851, allocations: 249.2 kB / 0.8625 GB, free: 3.871 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.937e-05/0.5852, allocations: 18.58 kB / 0.8625 GB, free: 3.844 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.445e-05/0.5852, allocations: 4.859 kB / 0.8626 GB, free: 3.836 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.183e-06/0.5852, allocations: 0 / 0.8626 GB, free: 3.836 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.5853, allocations: 38.62 kB / 0.8626 GB, free: 3.789 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.5853, allocations: 0 / 0.8626 GB, free: 3.789 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.5854, allocations: 41.53 kB / 0.8626 GB, free: 3.742 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.5855, allocations: 81.14 kB / 0.8627 GB, free: 3.645 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.288e-05/0.5856, allocations: 105 kB / 0.8628 GB, free: 3.535 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.5856, allocations: 25.7 kB / 0.8628 GB, free: 3.504 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.5857, allocations: 103.8 kB / 0.8629 GB, free: 3.398 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 7.034e-06/0.5857, allocations: 3.906 kB / 0.8629 GB, free: 3.395 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.5857, allocations: 0 / 0.8629 GB, free: 3.395 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.5858, allocations: 318.8 kB / 0.8632 GB, free: 3.074 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/0.5858, allocations: 8 kB / 0.8632 GB, free: 3.066 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.012e-05/0.5859, allocations: 62.86 kB / 0.8633 GB, free: 2.98 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.605e-05/0.5859, allocations: 23.92 kB / 0.8633 GB, free: 2.957 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5859, allocations: 0 / 0.8633 GB, free: 2.957 MB / 0.5419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001353/0.5861, allocations: 73.56 kB / 0.8634 GB, free: 2.879 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.5861, allocations: 7.906 kB / 0.8634 GB, free: 2.871 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.5861, allocations: 7.984 kB / 0.8634 GB, free: 2.863 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.5861, allocations: 0 / 0.8634 GB, free: 2.863 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.716e-05/0.5862, allocations: 16.25 kB / 0.8634 GB, free: 2.848 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.5862, allocations: 11.94 kB / 0.8634 GB, free: 2.836 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.5863, allocations: 4 kB / 0.8634 GB, free: 2.832 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.5863, allocations: 4 kB / 0.8634 GB, free: 2.828 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.124e-05/0.5864, allocations: 138.5 kB / 0.8636 GB, free: 2.68 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.5864, allocations: 3.984 kB / 0.8636 GB, free: 2.676 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.702e-05/0.5864, allocations: 7.406 kB / 0.8636 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.5864, allocations: 0 / 0.8636 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.5865, allocations: 7.906 kB / 0.8636 GB, free: 2.656 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.5865, allocations: 0 / 0.8636 GB, free: 2.656 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.5866, allocations: 138.2 kB / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.5866, allocations: 0 / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.5866, allocations: 0 / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5866, allocations: 0 / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.5866, allocations: 0 / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5866, allocations: 480 / 0.8637 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5866, allocations: 4 kB / 0.8637 GB, free: 2.48 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001344/0.5868, allocations: 139.4 kB / 0.8639 GB, free: 2.328 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001935/0.587, allocations: 0.5116 MB / 0.8644 GB, free: 1.797 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/0.587, allocations: 77.11 kB / 0.8644 GB, free: 1.703 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.587, allocations: 0 / 0.8644 GB, free: 1.703 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.345e-05/0.5871, allocations: 11.91 kB / 0.8645 GB, free: 1.691 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.5871, allocations: 3.984 kB / 0.8645 GB, free: 1.688 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.5871, allocations: 0 / 0.8645 GB, free: 1.688 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.341e-05/0.5872, allocations: 99.28 kB / 0.8646 GB, free: 1.59 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008016/0.588, allocations: 12 kB / 0.8646 GB, free: 1.578 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001623/0.5882, allocations: 107.3 kB / 0.8647 GB, free: 1.465 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.000102/0.5883, allocations: 57.62 kB / 0.8647 GB, free: 1.402 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5883, allocations: 0 / 0.8647 GB, free: 1.402 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 2.563e-05/0.5883, allocations: 33.64 kB / 0.8648 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.5885, allocations: 0.5625 kB / 0.8648 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.5887, allocations: 67.92 kB / 0.8648 GB, free: 1.273 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5889, allocations: 0.688 MB / 0.8655 GB, free: 0.5586 MB / 0.5419 GB Notification: Performance of SimCode: time 2.4e-07/0.5889, allocations: 0 / 0.8655 GB, free: 0.5586 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)