Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",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.00147/0.00147, allocations: 181 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.167/1.167, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009618/0.0009618, allocations: 97.86 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09776/0.09876, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.2846, allocations: 50.38 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0759/0.3605, allocations: 75.72 MB / 462.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.3607, allocations: 76.61 kB / 462.8 MB, free: 11.09 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.002781/0.3635, allocations: 1.182 MB / 464 MB, free: 9.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.3636, allocations: 12 kB / 464 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.882e-05/0.3636, allocations: 8.875 kB / 464 MB, free: 9.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.3638, allocations: 186.1 kB / 464.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-06/0.3638, allocations: 1.188 kB / 464.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.3638, allocations: 4 kB / 464.2 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.062e-05/0.3639, allocations: 12.91 kB / 464.2 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.3641, allocations: 109.3 kB / 464.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.3641, allocations: 0 / 464.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.3641, allocations: 0.625 kB / 464.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3641, allocations: 1.062 kB / 464.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.3644, allocations: 244.7 kB / 464.5 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.3645, allocations: 138.2 kB / 464.7 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.541e-05/0.3646, allocations: 25.77 kB / 464.7 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.3646, allocations: 0 / 464.7 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.3646, allocations: 34.56 kB / 464.7 MB, free: 8.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.3646, allocations: 4 kB / 464.7 MB, free: 8.973 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000131/0.3648, allocations: 53.62 kB / 464.8 MB, free: 8.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.3648, allocations: 77.11 kB / 464.9 MB, free: 8.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.63e-05/0.3649, allocations: 123.1 kB / 465 MB, free: 8.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.3649, allocations: 25.7 kB / 465 MB, free: 8.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.999e-05/0.365, allocations: 84.12 kB / 465.1 MB, free: 8.574 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.173e-06/0.365, allocations: 4 kB / 465.1 MB, free: 8.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-06/0.365, allocations: 0 / 465.1 MB, free: 8.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.3651, allocations: 322.8 kB / 465.4 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.193e-05/0.3651, allocations: 4 kB / 465.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.3651, allocations: 31.38 kB / 465.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.628e-05/0.3651, allocations: 7.984 kB / 465.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3651, allocations: 0 / 465.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.85e-05/0.3652, allocations: 49.64 kB / 465.5 MB, free: 8.137 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.3652, allocations: 12.59 kB / 465.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3652, allocations: 0 / 465.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3652, allocations: 3.906 kB / 465.5 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.923e-05/0.3653, allocations: 11.98 kB / 465.5 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3653, allocations: 4.75 kB / 465.5 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.621e-05/0.3654, allocations: 4 kB / 465.5 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.3654, allocations: 4.125 kB / 465.5 MB, free: 8.098 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: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * 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 4.964e-05/0.3654, allocations: 108.5 kB / 465.7 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.3655, allocations: 45.59 kB / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.3655, allocations: 8.125 kB / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3655, allocations: 0 / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3656, allocations: 4.875 kB / 465.7 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.3656, allocations: 7.906 kB / 465.7 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.3657, allocations: 146.2 kB / 465.9 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3657, allocations: 0 / 465.9 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.219e-05/0.3658, allocations: 16.92 kB / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3658, allocations: 0 / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.3658, allocations: 0 / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3658, allocations: 1.25 kB / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3658, allocations: 4 kB / 465.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001011/0.3659, allocations: 169.9 kB / 466.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001691/0.3661, allocations: 0.5297 MB / 466.6 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.024e-05/0.3661, allocations: 96.94 kB / 466.7 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.3662, allocations: 0 / 466.7 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.652e-05/0.3662, allocations: 8 kB / 466.7 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.187e-05/0.3663, allocations: 16.11 kB / 466.7 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.3663, allocations: 0 / 466.7 MB, free: 6.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.718e-05/0.3663, allocations: 99.27 kB / 466.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007626/0.3671, allocations: 4 kB / 466.8 MB, free: 6.727 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: 4 (sample1.u,assignClock.u,assignClock.y,sample1.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 7.618e-05/0.3672, allocations: 103.8 kB / 466.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.453e-05/0.3672, allocations: 19.92 kB / 466.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3673, allocations: 4.25 kB / 466.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.767e-06/0.3673, allocations: 4 kB / 466.9 MB, free: 6.594 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.3675, allocations: 20.02 kB / 466.9 MB, free: 6.574 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002041/0.3677, allocations: 94.11 kB / 467 MB, free: 6.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.3679, allocations: 0.7071 MB / 467.7 MB, free: 5.723 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3679, allocations: 0 / 467.7 MB, free: 5.723 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1)