Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",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 trunk/package.mo): time 0.001263/0.001263, allocations: 203.8 kB / 8.536 MB, free: 468 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 225.5 MB / 234.4 MB, free: 9.469 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008993/0.0008993, allocations: 95.8 kB / 286.3 MB, free: 5.832 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1174/0.1183, allocations: 56.88 MB / 343.2 MB, free: 12.93 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.402, allocations: 51.46 MB / 394.7 MB, free: 47.39 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09412/0.4961, allocations: 76.07 MB / 470.8 MB, free: 15.76 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.4964, allocations: 73.17 kB / 470.8 MB, free: 15.69 MB / 354.8 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.002541/0.499, allocations: 0.7898 MB / 471.6 MB, free: 14.88 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.499, allocations: 11.22 kB / 471.6 MB, free: 14.87 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.4991, allocations: 7.906 kB / 471.6 MB, free: 14.86 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.4993, allocations: 180.9 kB / 471.8 MB, free: 14.65 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.4993, allocations: 0 / 471.8 MB, free: 14.65 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.4994, allocations: 4.5 kB / 471.8 MB, free: 14.64 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.744e-05/0.4994, allocations: 12.31 kB / 471.8 MB, free: 14.64 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.4996, allocations: 88.83 kB / 471.9 MB, free: 14.54 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.4997, allocations: 0 / 471.9 MB, free: 14.54 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.4997, allocations: 7.25 kB / 471.9 MB, free: 14.54 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.4997, allocations: 0 / 471.9 MB, free: 14.54 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001369/0.4998, allocations: 138.1 kB / 472.1 MB, free: 14.36 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 9.535e-05/0.4999, allocations: 47.42 kB / 472.1 MB, free: 14.31 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.5, allocations: 16.86 kB / 472.1 MB, free: 14.29 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.5, allocations: 0 / 472.1 MB, free: 14.29 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.5001, allocations: 32.38 kB / 472.2 MB, free: 14.25 MB / 354.8 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.5001, allocations: 0 / 472.2 MB, free: 14.25 MB / 354.8 MB Notification: Performance of matching and sorting (n=4): time 0.0001266/0.5002, allocations: 53.3 kB / 472.2 MB, free: 14.2 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.5002, allocations: 54.84 kB / 472.3 MB, free: 14.13 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.816e-05/0.5003, allocations: 101 kB / 472.4 MB, free: 14.03 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.5003, allocations: 25.7 kB / 472.4 MB, free: 14 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 1.995e-05/0.5003, allocations: 84.08 kB / 472.5 MB, free: 13.91 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.5004, allocations: 4 kB / 472.5 MB, free: 13.91 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.5004, allocations: 0 / 472.5 MB, free: 13.91 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 8.205e-05/0.5005, allocations: 314.8 kB / 472.8 MB, free: 13.59 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.5005, allocations: 0.6562 kB / 472.8 MB, free: 13.59 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.761e-05/0.5005, allocations: 36.36 kB / 472.8 MB, free: 13.54 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.993e-05/0.5005, allocations: 10.44 kB / 472.8 MB, free: 13.54 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.5005, allocations: 0 / 472.8 MB, free: 13.54 MB / 354.8 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.435e-05/0.5006, allocations: 57.09 kB / 472.9 MB, free: 13.48 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.5006, allocations: 4 kB / 472.9 MB, free: 13.47 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.5006, allocations: 0 / 472.9 MB, free: 13.47 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.5007, allocations: 4.688 kB / 472.9 MB, free: 13.47 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.272e-05/0.5007, allocations: 8 kB / 472.9 MB, free: 13.46 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.5007, allocations: 4.781 kB / 472.9 MB, free: 13.46 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.292e-05/0.5008, allocations: 7.844 kB / 472.9 MB, free: 13.45 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.5008, allocations: 9.188 kB / 472.9 MB, free: 13.44 MB / 354.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.795e-05/0.5008, allocations: 101 kB / 473 MB, free: 13.34 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.5009, allocations: 47.12 kB / 473.1 MB, free: 13.29 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.5009, allocations: 7.906 kB / 473.1 MB, free: 13.28 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.5009, allocations: 4 kB / 473.1 MB, free: 13.27 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.5009, allocations: 1.281 kB / 473.1 MB, free: 13.27 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.501, allocations: 0 / 473.1 MB, free: 13.27 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.199e-05/0.501, allocations: 138.2 kB / 473.2 MB, free: 13.1 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.501, allocations: 0 / 473.2 MB, free: 13.1 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/0.5011, allocations: 11.31 kB / 473.2 MB, free: 13.09 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5011, allocations: 0 / 473.2 MB, free: 13.09 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.5011, allocations: 5.391 kB / 473.2 MB, free: 13.09 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.5011, allocations: 9.641 kB / 473.2 MB, free: 13.08 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5012, allocations: 1.125 kB / 473.2 MB, free: 13.08 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.412e-05/0.5012, allocations: 74.59 kB / 473.3 MB, free: 12.99 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002115/0.5015, allocations: 450.6 kB / 473.8 MB, free: 12.53 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.5015, allocations: 81.61 kB / 473.8 MB, free: 12.43 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.5015, allocations: 4.562 kB / 473.8 MB, free: 12.43 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.382e-05/0.5016, allocations: 9.172 kB / 473.9 MB, free: 12.42 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.239e-05/0.5016, allocations: 0 / 473.9 MB, free: 12.42 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.5016, allocations: 0 / 473.9 MB, free: 12.42 MB / 354.8 MB Notification: Performance of sort global known variables: time 3.698e-05/0.5017, allocations: 86.44 kB / 473.9 MB, free: 12.34 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0007726/0.5024, allocations: 4 kB / 473.9 MB, free: 12.34 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * 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.0001061/0.5026, allocations: 100.7 kB / 474 MB, free: 12.23 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 8.705e-05/0.5027, allocations: 21.14 kB / 474.1 MB, free: 12.21 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5027, allocations: 5.625 kB / 474.1 MB, free: 12.21 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 3.61e-07/0.5027, allocations: 1.031 kB / 474.1 MB, free: 12.21 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.5029, allocations: 24.62 kB / 474.1 MB, free: 12.18 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001881/0.5031, allocations: 71.59 kB / 474.2 MB, free: 12.09 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.5033, allocations: 0.6915 MB / 474.8 MB, free: 11.38 MB / 354.8 MB Notification: Performance of SimCode: time 2.81e-07/0.5033, allocations: 1 kB / 474.9 MB, free: 11.38 MB / 354.8 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1)