Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",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.001148/0.001148, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0009733/0.0009732, allocations: 95.42 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09473/0.09573, allocations: 55.82 MB / 336.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.3052, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09361/0.3988, allocations: 75.3 MB / 462.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.3991, allocations: 76.7 kB / 462.4 MB, free: 11.39 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001976/0.4011, allocations: 0.7073 MB / 463.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.4012, allocations: 13.31 kB / 463.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.4012, allocations: 5.656 kB / 463.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.4014, allocations: 182.8 kB / 463.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.4014, allocations: 4 kB / 463.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/0.4014, allocations: 0 / 463.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.678e-05/0.4015, allocations: 12 kB / 463.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.4017, allocations: 85.16 kB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.4018, allocations: 0.5625 kB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.4018, allocations: 0.5 kB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4018, allocations: 4.844 kB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.4019, allocations: 135 kB / 463.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.72e-05/0.402, allocations: 44.06 kB / 463.6 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.242e-05/0.4021, allocations: 21.33 kB / 463.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.4021, allocations: 0 / 463.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.4021, allocations: 36.92 kB / 463.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.4021, allocations: 4 kB / 463.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001296/0.4023, allocations: 49.73 kB / 463.7 MB, free: 9.961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.4023, allocations: 51.41 kB / 463.7 MB, free: 9.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.595e-05/0.4024, allocations: 97.62 kB / 463.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.4024, allocations: 25.7 kB / 463.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.636e-05/0.4024, allocations: 80.14 kB / 463.9 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-06/0.4024, allocations: 3.984 kB / 463.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.4025, allocations: 0 / 463.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.4026, allocations: 322.8 kB / 464.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.534e-06/0.4026, allocations: 0 / 464.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.605e-05/0.4026, allocations: 31.38 kB / 464.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.793e-05/0.4026, allocations: 4 kB / 464.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.4026, allocations: 0 / 464.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.021e-05/0.4027, allocations: 57.53 kB / 464.3 MB, free: 9.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.4027, allocations: 4 kB / 464.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.4027, allocations: 0 / 464.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.325e-06/0.4028, allocations: 0 / 464.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.694e-05/0.4028, allocations: 17.25 kB / 464.4 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.4028, allocations: 3.047 kB / 464.4 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.124e-05/0.4028, allocations: 7.938 kB / 464.4 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-06/0.4029, allocations: 0 / 464.4 MB, free: 9.219 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.821e-05/0.4029, allocations: 113 kB / 464.5 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.354e-05/0.403, allocations: 45.59 kB / 464.5 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.403, allocations: 11.98 kB / 464.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.403, allocations: 0 / 464.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.403, allocations: 0 / 464.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.403, allocations: 1.031 kB / 464.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.143e-05/0.4031, allocations: 143 kB / 464.7 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4031, allocations: 0 / 464.7 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.183e-05/0.4032, allocations: 11.98 kB / 464.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4032, allocations: 4 kB / 464.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.4032, allocations: 0 / 464.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4032, allocations: 1.375 kB / 464.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4032, allocations: 0 / 464.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.186e-05/0.4033, allocations: 76.97 kB / 464.8 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001809/0.4035, allocations: 457.4 kB / 465.2 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.4036, allocations: 81.02 kB / 465.3 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.4036, allocations: 2.25 kB / 465.3 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.152e-05/0.4036, allocations: 4 kB / 465.3 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-06/0.4036, allocations: 0 / 465.3 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.4036, allocations: 3.984 kB / 465.3 MB, free: 8.176 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.88e-05/0.4037, allocations: 84.22 kB / 465.4 MB, free: 8.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008147/0.4045, allocations: 4 kB / 465.4 MB, free: 8.09 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 0.0001166/0.4046, allocations: 99.25 kB / 465.5 MB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.142e-05/0.4047, allocations: 19.94 kB / 465.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4047, allocations: 0 / 465.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.4047, allocations: 3.938 kB / 465.5 MB, free: 7.961 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.4049, allocations: 14.92 kB / 465.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.4051, allocations: 71.12 kB / 465.6 MB, free: 7.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.4054, allocations: 0.6996 MB / 466.3 MB, free: 7.137 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4054, allocations: 4 kB / 466.3 MB, free: 7.133 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1)