Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001473/0.001473, allocations: 196.2 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001015, allocations: 106.5 kB / 286.4 MB, free: 12.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1209/0.122, allocations: 56.88 MB / 343.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.429, allocations: 51.46 MB / 394.7 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1536/0.5827, allocations: 77.2 MB / 471.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000451/0.5833, allocations: 76.45 kB / 472 MB, free: 3.75 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.008095/0.5914, allocations: 1.548 MB / 473.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.998e-05/0.5915, allocations: 8 kB / 473.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003655/0.5919, allocations: 23.89 kB / 473.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.5922, allocations: 194.8 kB / 473.7 MB, free: 1.91 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 0.0001676/0.5924, allocations: 37.69 kB / 473.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.5924, allocations: 0 / 473.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000164/0.5926, allocations: 24 kB / 473.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.5931, allocations: 146.9 kB / 473.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.5931, allocations: 0 / 473.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.5931, allocations: 4 kB / 474 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.5931, allocations: 7.906 kB / 474 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000267/0.5934, allocations: 151.1 kB / 474.1 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.5938, allocations: 154.4 kB / 474.3 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.5939, allocations: 45.75 kB / 474.3 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.594, allocations: 0 / 474.3 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.594, allocations: 34.56 kB / 474.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.594, allocations: 0 / 474.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003291/0.5944, allocations: 73.58 kB / 474.4 MB, free: 1.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.762e-05/0.5945, allocations: 85.05 kB / 474.5 MB, free: 1.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.5947, allocations: 112.9 kB / 474.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.5947, allocations: 29.73 kB / 474.6 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.47e-05/0.5948, allocations: 84.12 kB / 474.7 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.5948, allocations: 11.98 kB / 474.7 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.5948, allocations: 0 / 474.7 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5951, allocations: 327.9 kB / 475 MB, free: 456 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.674e-05/0.5951, allocations: 4 kB / 475 MB, free: 452 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.666e-05/0.5952, allocations: 54.02 kB / 475.1 MB, free: 376 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.842e-05/0.5953, allocations: 19.92 kB / 475.1 MB, free: 356 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.5953, allocations: 0 / 475.1 MB, free: 356 kB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002338/0.5955, allocations: 81.56 kB / 475.2 MB, free: 268 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.5956, allocations: 4 kB / 475.2 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.5956, allocations: 5.312 kB / 475.2 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.5956, allocations: 0 / 475.2 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.5958, allocations: 23.86 kB / 475.2 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.5958, allocations: 4 kB / 475.2 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.5959, allocations: 7.938 kB / 475.2 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.596, allocations: 12.09 kB / 475.3 MB, free: 212 kB / 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 0.0001263/0.5961, allocations: 108.9 kB / 475.4 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.5963, allocations: 65.58 kB / 475.4 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.291e-05/0.5964, allocations: 12.38 kB / 475.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.5964, allocations: 0 / 475.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.5964, allocations: 1.219 kB / 475.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.5964, allocations: 3.984 kB / 475.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.5966, allocations: 150.1 kB / 475.6 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.5967, allocations: 0 / 475.6 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.5968, allocations: 19.98 kB / 475.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.5968, allocations: 0 / 475.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.5969, allocations: 3.984 kB / 475.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.5969, allocations: 4 kB / 475.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5969, allocations: 128 / 475.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002701/0.5972, allocations: 124.9 kB / 475.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004406/0.5976, allocations: 500 kB / 476.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.5978, allocations: 89 kB / 476.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.5978, allocations: 0 / 476.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.5979, allocations: 9.219 kB / 476.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.598, allocations: 4 kB / 476.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.598, allocations: 7.984 kB / 476.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.477e-05/0.5981, allocations: 87.28 kB / 476.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001575/0.5997, allocations: 15.91 kB / 476.4 MB, free: 14.91 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: 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 0.0002136/0.5999, allocations: 99.19 kB / 476.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.6001, allocations: 44.3 kB / 476.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.6002, allocations: 4.062 kB / 476.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.314e-05/0.6002, allocations: 4 kB / 476.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009819/0.6012, allocations: 0.7134 MB / 477.3 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/0.6017, allocations: 105.1 kB / 477.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.6022, allocations: 0.7115 MB / 478.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of SimCode: time 8.31e-07/0.6022, allocations: 0 / 478.1 MB, free: 13.14 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1)