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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") [: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.7565/0.7565, allocations: 141.8 MB / 149.1 MB, free: 11.94 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 184.3 kB / 181.9 MB, free: 8.652 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 221.4 MB / 436 MB, free: 0.8633 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.001002/0.001002, allocations: 97.05 kB / 0.507 GB, free: 9.836 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001843/0.001843, allocations: 266.3 kB / 0.5884 GB, free: 6.648 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.41e-05/1.421e-05, allocations: 4 kB / 0.6759 GB, free: 12.99 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4073/0.4073, allocations: 82.77 MB / 0.7567 GB, free: 137.8 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.5202, allocations: 107.1 MB / 0.8613 GB, free: 30.58 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.5205, allocations: 80.84 kB / 0.8614 GB, free: 30.5 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.00104/0.5215, allocations: 250 kB / 0.8616 GB, free: 30.27 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 5.922e-06/0.5216, allocations: 0 / 0.8616 GB, free: 30.27 MB / 0.5575 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.0001973/0.5218, allocations: 345.3 kB / 0.8619 GB, free: 29.88 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.5218, allocations: 8.031 kB / 0.8619 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.5218, allocations: 3.906 kB / 0.8619 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.141e-05/0.5219, allocations: 167.6 kB / 0.8621 GB, free: 29.66 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.5219, allocations: 0 / 0.8621 GB, free: 29.66 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.5219, allocations: 0.6562 kB / 0.8621 GB, free: 29.66 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.493e-05/0.522, allocations: 24.55 kB / 0.8621 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.601e-05/0.5221, allocations: 54.88 kB / 0.8622 GB, free: 29.58 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.5221, allocations: 0 / 0.8622 GB, free: 29.58 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.5221, allocations: 0 / 0.8622 GB, free: 29.58 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/0.5222, allocations: 4 kB / 0.8622 GB, free: 29.58 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002605/0.5224, allocations: 250.4 kB / 0.8624 GB, free: 29.3 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.011e-05/0.5225, allocations: 15.92 kB / 0.8624 GB, free: 29.27 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.668e-05/0.5225, allocations: 8.922 kB / 0.8624 GB, free: 29.26 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.5225, allocations: 0.8125 kB / 0.8624 GB, free: 29.26 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.5225, allocations: 31.09 kB / 0.8625 GB, free: 29.22 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.5226, allocations: 4.656 kB / 0.8625 GB, free: 29.22 MB / 0.5575 GB Notification: Performance of matching and sorting (n=1): time 0.0001743/0.5227, allocations: 42.09 kB / 0.8625 GB, free: 29.17 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.5228, allocations: 78.2 kB / 0.8626 GB, free: 29.08 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.759e-05/0.5228, allocations: 114.8 kB / 0.8627 GB, free: 28.96 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.5229, allocations: 26.45 kB / 0.8627 GB, free: 28.93 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.5229, allocations: 103.7 kB / 0.8628 GB, free: 28.82 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 6.783e-06/0.5229, allocations: 8.406 kB / 0.8628 GB, free: 28.82 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.5229, allocations: 0.5312 kB / 0.8628 GB, free: 28.82 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 5.077e-05/0.523, allocations: 315.3 kB / 0.8631 GB, free: 28.5 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.72e-05/0.523, allocations: 8.656 kB / 0.8631 GB, free: 28.49 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.107e-05/0.5231, allocations: 60.7 kB / 0.8632 GB, free: 28.41 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.5232, allocations: 27.02 kB / 0.8632 GB, free: 28.39 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.5232, allocations: 0 / 0.8632 GB, free: 28.39 MB / 0.5575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000135/0.5234, allocations: 76.16 kB / 0.8633 GB, free: 28.31 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.5234, allocations: 8 kB / 0.8633 GB, free: 28.3 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5234, allocations: 3.984 kB / 0.8633 GB, free: 28.3 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5234, allocations: 7.906 kB / 0.8633 GB, free: 28.29 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.445e-05/0.5235, allocations: 9.562 kB / 0.8633 GB, free: 28.28 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.5235, allocations: 7.938 kB / 0.8633 GB, free: 28.27 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.51e-05/0.5236, allocations: 7.938 kB / 0.8633 GB, free: 28.27 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.5236, allocations: 9.25 kB / 0.8633 GB, free: 28.26 MB / 0.5575 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 7.123e-05/0.5237, allocations: 138.6 kB / 0.8635 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.5237, allocations: 4.984 kB / 0.8635 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.7e-05/0.5237, allocations: 9.984 kB / 0.8635 GB, free: 28.1 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5238, allocations: 0 / 0.8635 GB, free: 28.1 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.5238, allocations: 1.156 kB / 0.8635 GB, free: 28.1 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5238, allocations: 3.984 kB / 0.8635 GB, free: 28.09 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.5239, allocations: 134.1 kB / 0.8636 GB, free: 27.93 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.5239, allocations: 0.9375 kB / 0.8636 GB, free: 27.93 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.5239, allocations: 0 / 0.8636 GB, free: 27.93 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.5239, allocations: 4 kB / 0.8636 GB, free: 27.92 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.5239, allocations: 0.5 kB / 0.8636 GB, free: 27.92 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5239, allocations: 0.7188 kB / 0.8636 GB, free: 27.92 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5239, allocations: 0 / 0.8636 GB, free: 27.92 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001069/0.5241, allocations: 145.2 kB / 0.8638 GB, free: 27.77 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.663e-05/0.5241, allocations: 77.11 kB / 0.8638 GB, free: 27.67 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.5241, allocations: 4.406 kB / 0.8638 GB, free: 27.67 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.5242, allocations: 1.281 kB / 0.8639 GB, free: 27.67 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.192e-05/0.5242, allocations: 4 kB / 0.8639 GB, free: 27.66 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.239e-06/0.5242, allocations: 0 / 0.8639 GB, free: 27.66 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.584e-05/0.5243, allocations: 93.47 kB / 0.8639 GB, free: 27.57 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002749/0.5245, allocations: 12.66 kB / 0.864 GB, free: 27.56 MB / 0.5575 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.0001693/0.5247, allocations: 104.3 kB / 0.8641 GB, free: 27.45 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001007/0.5248, allocations: 54.78 kB / 0.8641 GB, free: 27.39 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5248, allocations: 7.938 kB / 0.8641 GB, free: 27.39 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 1.357e-05/0.5249, allocations: 26.23 kB / 0.8641 GB, free: 27.36 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.525, allocations: 8.469 kB / 0.8641 GB, free: 27.35 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.5252, allocations: 68.73 kB / 0.8642 GB, free: 27.26 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.5253, allocations: 0.6919 MB / 0.8649 GB, free: 26.54 MB / 0.5575 GB Notification: Performance of SimCode: time 2.31e-07/0.5254, allocations: 0 / 0.8649 GB, free: 26.54 MB / 0.5575 GB Notification: Performance of Templates: time 0.002497/0.5279, allocations: 0.4931 MB / 0.8654 GB, free: 26.06 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)