Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json 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) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",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/Complex 4.0.0+maint.om/package.mo): time 0.000965/0.000965, allocations: 184 kB / 8.136 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.097/1.097, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000951/0.0009511, allocations: 102.9 kB / 280.8 MB, free: 1.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09642/0.09741, allocations: 55.82 MB / 336.6 MB, free: 9.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.289, allocations: 50.39 MB / 387 MB, free: 37.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07904/0.3681, allocations: 76.1 MB / 463.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.3683, allocations: 81.73 kB / 463.2 MB, free: 10.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.003874/0.3722, allocations: 1.429 MB / 464.6 MB, free: 9.031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.3723, allocations: 13.19 kB / 464.6 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.3723, allocations: 7.906 kB / 464.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.3725, allocations: 185.5 kB / 464.8 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.3725, allocations: 0.9688 kB / 464.8 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.3725, allocations: 0 / 464.8 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.297e-05/0.3726, allocations: 15.94 kB / 464.8 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.3728, allocations: 94.14 kB / 464.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3728, allocations: 0 / 464.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.3728, allocations: 0 / 464.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3728, allocations: 2.438 kB / 464.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.3731, allocations: 254.3 kB / 465.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.27e-05/0.3732, allocations: 37.16 kB / 465.2 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.71e-05/0.3732, allocations: 17.78 kB / 465.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.3732, allocations: 0 / 465.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.3732, allocations: 30.56 kB / 465.3 MB, free: 8.262 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3732, allocations: 0 / 465.3 MB, free: 8.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001475/0.3734, allocations: 57.53 kB / 465.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.3734, allocations: 77.11 kB / 465.4 MB, free: 8.105 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.874e-05/0.3735, allocations: 120.1 kB / 465.5 MB, free: 7.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.3736, allocations: 29.7 kB / 465.5 MB, free: 7.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.3736, allocations: 88.12 kB / 465.6 MB, free: 7.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.3736, allocations: 0 / 465.6 MB, free: 7.855 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-06/0.3736, allocations: 0 / 465.6 MB, free: 7.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.781e-05/0.3737, allocations: 322.8 kB / 465.9 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.264e-05/0.3737, allocations: 4 kB / 465.9 MB, free: 7.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.201e-05/0.3738, allocations: 9.719 kB / 465.9 MB, free: 7.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.682e-05/0.3738, allocations: 11.94 kB / 466 MB, free: 7.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3738, allocations: 0 / 466 MB, free: 7.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.889e-05/0.3739, allocations: 41.69 kB / 466 MB, free: 7.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3739, allocations: 8.125 kB / 466 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3739, allocations: 3.906 kB / 466 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.3739, allocations: 4 kB / 466 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.924e-05/0.374, allocations: 7.984 kB / 466 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.374, allocations: 0 / 466 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.865e-05/0.374, allocations: 4 kB / 466 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.3741, allocations: 1.031 kB / 466 MB, free: 7.426 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 5.401e-05/0.3741, allocations: 108.9 kB / 466.1 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.3742, allocations: 41.61 kB / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.3742, allocations: 11.58 kB / 466.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3742, allocations: 0 / 466.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3742, allocations: 2.062 kB / 466.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3743, allocations: 7.844 kB / 466.2 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.3744, allocations: 146.2 kB / 466.3 MB, free: 7.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3744, allocations: 4 kB / 466.3 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.595e-05/0.3744, allocations: 4 kB / 466.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3744, allocations: 0 / 466.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.3745, allocations: 9.156 kB / 466.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3745, allocations: 0 / 466.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3745, allocations: 0 / 466.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001104/0.3746, allocations: 165.9 kB / 466.5 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001905/0.3748, allocations: 0.5298 MB / 467 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.3748, allocations: 89 kB / 467.1 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.3749, allocations: 0 / 467.1 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.502e-05/0.3749, allocations: 7.984 kB / 467.1 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-05/0.375, allocations: 4.031 kB / 467.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.375, allocations: 1.188 kB / 467.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.955e-05/0.3751, allocations: 107.2 kB / 467.3 MB, free: 6.086 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007618/0.3758, allocations: 4 kB / 467.3 MB, free: 6.082 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 9.023e-05/0.3759, allocations: 100.5 kB / 467.4 MB, free: 5.973 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.073e-05/0.376, allocations: 12 kB / 467.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.376, allocations: 0 / 467.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.338e-05/0.376, allocations: 4 kB / 467.4 MB, free: 5.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.3762, allocations: 27.08 kB / 467.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.3765, allocations: 88.61 kB / 467.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.3768, allocations: 0.7036 MB / 468.2 MB, free: 5.09 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3768, allocations: 0 / 468.2 MB, free: 5.09 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1)