Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",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.0008831/0.0008832, allocations: 183.3 kB / 8.137 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.1/1.1, 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.0009139/0.0009138, allocations: 100.8 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09285/0.09382, allocations: 55.83 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.2821, allocations: 50.38 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07581/0.3579, allocations: 76.39 MB / 463.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.3581, allocations: 75.95 kB / 463.5 MB, free: 10.42 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.004465/0.3626, allocations: 1.475 MB / 464.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3627, allocations: 11.98 kB / 465 MB, free: 8.906 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3627, allocations: 7.906 kB / 465 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.3629, allocations: 182.9 kB / 465.1 MB, free: 8.68 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.771e-05/0.363, allocations: 33.69 kB / 465.2 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.363, allocations: 4 kB / 465.2 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001011/0.3631, allocations: 32.95 kB / 465.2 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.3634, allocations: 144.9 kB / 465.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.3634, allocations: 1.969 kB / 465.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.3634, allocations: 0 / 465.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3634, allocations: 0 / 465.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.3636, allocations: 159 kB / 465.5 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.3638, allocations: 158.4 kB / 465.7 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.829e-05/0.3638, allocations: 36.66 kB / 465.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.3639, allocations: 3.984 kB / 465.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.3639, allocations: 30.56 kB / 465.7 MB, free: 7.973 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3639, allocations: 4 kB / 465.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001816/0.3641, allocations: 81.52 kB / 465.8 MB, free: 7.883 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.3641, allocations: 77.11 kB / 465.9 MB, free: 7.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.595e-05/0.3642, allocations: 114.4 kB / 466 MB, free: 7.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.3643, allocations: 25.7 kB / 466 MB, free: 7.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.366e-05/0.3643, allocations: 80.14 kB / 466.1 MB, free: 7.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.3643, allocations: 11.91 kB / 466.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.3643, allocations: 0 / 466.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.304e-05/0.3644, allocations: 326.8 kB / 466.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.097e-05/0.3644, allocations: 8 kB / 466.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.433e-05/0.3645, allocations: 54.52 kB / 466.5 MB, free: 7.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.46e-05/0.3645, allocations: 19.98 kB / 466.5 MB, free: 7.117 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3645, allocations: 0 / 466.5 MB, free: 7.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001184/0.3647, allocations: 81.47 kB / 466.6 MB, free: 7.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.3647, allocations: 4.938 kB / 466.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3647, allocations: 0 / 466.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.3647, allocations: 4 kB / 466.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.667e-05/0.3648, allocations: 20.2 kB / 466.6 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3648, allocations: 7.938 kB / 466.6 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.785e-05/0.3649, allocations: 7.984 kB / 466.6 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.3649, allocations: 7.938 kB / 466.6 MB, free: 6.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.236e-05/0.365, allocations: 105.7 kB / 466.8 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.3651, allocations: 65.59 kB / 466.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.3651, allocations: 8.375 kB / 466.8 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3651, allocations: 11.98 kB / 466.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3651, allocations: 0 / 466.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3651, allocations: 0 / 466.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.619e-05/0.3652, allocations: 158 kB / 467 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.3653, allocations: 0 / 467 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.125e-05/0.3653, allocations: 13.56 kB / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3654, allocations: 4 kB / 467 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3654, allocations: 3.984 kB / 467 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3654, allocations: 0 / 467 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3654, allocations: 0 / 467 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001428/0.3655, allocations: 126.2 kB / 467.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002097/0.3658, allocations: 0.4892 MB / 467.6 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.3658, allocations: 93 kB / 467.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.3659, allocations: 7.938 kB / 467.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.531e-05/0.3659, allocations: 4 kB / 467.7 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.177e-05/0.366, allocations: 0 / 467.7 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.366, allocations: 11.98 kB / 467.7 MB, free: 5.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.135e-05/0.366, allocations: 89.03 kB / 467.8 MB, free: 5.684 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007621/0.3668, allocations: 11.91 kB / 467.8 MB, free: 5.672 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.833e-05/0.3669, allocations: 108.4 kB / 467.9 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.367, allocations: 35.94 kB / 468 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.367, allocations: 0 / 468 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.504e-05/0.367, allocations: 8 kB / 468 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.3675, allocations: 0.7069 MB / 468.7 MB, free: 4.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002603/0.3678, allocations: 104.2 kB / 468.8 MB, free: 4.652 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.3681, allocations: 0.7114 MB / 469.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3681, allocations: 4 kB / 469.5 MB, free: 3.91 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1)