Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",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.001117/0.001117, allocations: 184.4 kB / 8.132 MB, free: 2.133 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.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.086 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.001007/0.001007, allocations: 97.41 kB / 280.8 MB, free: 1.332 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09429/0.09533, allocations: 55.83 MB / 336.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.2874, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07817/0.3656, allocations: 77.93 MB / 464.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.3658, allocations: 77.23 kB / 465 MB, free: 8.777 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.01306/0.3789, allocations: 4.856 MB / 469.9 MB, free: 3.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3789, allocations: 12 kB / 469.9 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.379, allocations: 19.72 kB / 469.9 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.3794, allocations: 238.8 kB / 470.1 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3794, allocations: 0 / 470.1 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3794, allocations: 8 kB / 470.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001404/0.3796, allocations: 56.17 kB / 470.2 MB, free: 3.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.38, allocations: 278.8 kB / 470.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.38, allocations: 3.984 kB / 470.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3801, allocations: 0 / 470.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3801, allocations: 7.938 kB / 470.5 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004295/0.3805, allocations: 330.4 kB / 470.8 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.3809, allocations: 214.7 kB / 471 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.381, allocations: 89.8 kB / 471.1 MB, free: 2.527 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005073/0.3815, allocations: 0.5817 MB / 471.7 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.3815, allocations: 34.56 kB / 471.7 MB, free: 1.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.3815, allocations: 0 / 471.7 MB, free: 1.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003179/0.3819, allocations: 141.4 kB / 471.9 MB, free: 1.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.3819, allocations: 110.8 kB / 472 MB, free: 1.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.3821, allocations: 169.5 kB / 472.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3821, allocations: 25.7 kB / 472.2 MB, free: 1.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.886e-05/0.3822, allocations: 92.56 kB / 472.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3822, allocations: 15.94 kB / 472.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.3822, allocations: 0 / 472.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.987e-05/0.3823, allocations: 334.7 kB / 472.6 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.698e-05/0.3824, allocations: 28.38 kB / 472.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.3825, allocations: 153.7 kB / 472.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.009e-05/0.3826, allocations: 59.94 kB / 472.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3826, allocations: 0 / 472.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002451/0.3829, allocations: 177.1 kB / 473 MB, free: 376 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3829, allocations: 7.719 kB / 473 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.3829, allocations: 4 kB / 473 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3829, allocations: 15.94 kB / 473 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.3831, allocations: 39.92 kB / 473.1 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.3831, allocations: 11.94 kB / 473.1 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.3832, allocations: 19.97 kB / 473.1 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.3833, allocations: 13.03 kB / 473.1 MB, free: 268 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 8.597e-05/0.3833, allocations: 117.7 kB / 473.2 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.3836, allocations: 137.4 kB / 473.4 MB, free: 0 / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.3839, allocations: 152.5 kB / 473.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.778e-06/0.3839, allocations: 4 kB / 473.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3839, allocations: 3.984 kB / 473.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3839, allocations: 3.984 kB / 473.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.3841, allocations: 198.8 kB / 473.7 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.3841, allocations: 4 kB / 473.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.3843, allocations: 35.97 kB / 473.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.3843, allocations: 4 kB / 473.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3843, allocations: 6.688 kB / 473.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3843, allocations: 0 / 473.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3843, allocations: 4 kB / 473.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002802/0.3846, allocations: 274 kB / 474 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003601/0.385, allocations: 0.6233 MB / 474.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.691e-05/0.3851, allocations: 121.6 kB / 474.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/0.3851, allocations: 4 kB / 474.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.3853, allocations: 19.98 kB / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.57e-05/0.3853, allocations: 0 / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.3853, allocations: 4 kB / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.877e-05/0.3854, allocations: 140.3 kB / 474.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008637/0.3863, allocations: 31.94 kB / 475 MB, free: 14.28 MB / 362.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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001626/0.3865, allocations: 111.2 kB / 475.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002036/0.3867, allocations: 115.8 kB / 475.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3867, allocations: 0 / 475.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.576e-05/0.3867, allocations: 7.938 kB / 475.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.3872, allocations: 128.2 kB / 475.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/0.3876, allocations: 212.7 kB / 475.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002681/0.3879, allocations: 0.7613 MB / 476.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3879, allocations: 0 / 476.3 MB, free: 12.89 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1)