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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008223/0.0008225, allocations: 95.42 kB / 297.2 MB, free: 6.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002025/0.0002025, allocations: 11.98 kB / 358 MB, free: 9.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1839, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09001/0.274, allocations: 78 MB / 487.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.2743, allocations: 75.95 kB / 487.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004741/0.279, allocations: 1.529 MB / 489.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.279, allocations: 0 / 489.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2791, allocations: 0 / 489.1 MB, free: 11.02 MB / 362.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.0004322/0.2795, allocations: 379 kB / 489.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2795, allocations: 12.03 kB / 489.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.342e-05/0.2796, allocations: 34.55 kB / 489.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.2798, allocations: 23.89 kB / 489.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.28, allocations: 186.6 kB / 489.7 MB, free: 10.3 MB / 362.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.0001303/0.2801, allocations: 37.69 kB / 489.8 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.2802, allocations: 7.953 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003587/0.2805, allocations: 172.8 kB / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.2805, allocations: 0 / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.2806, allocations: 3.938 kB / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2806, allocations: 0 / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.2807, allocations: 39.98 kB / 490 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.2809, allocations: 182.5 kB / 490.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.2812, allocations: 170.4 kB / 490.3 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.2812, allocations: 4.125 kB / 490.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.2812, allocations: 42.52 kB / 490.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2812, allocations: 0 / 490.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003709/0.2816, allocations: 194.6 kB / 490.6 MB, free: 9.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.2817, allocations: 93.17 kB / 490.7 MB, free: 9.211 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.933e-05/0.2818, allocations: 109 kB / 490.8 MB, free: 9.098 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.2818, allocations: 29.7 kB / 490.8 MB, free: 9.062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.2818, allocations: 88.14 kB / 490.9 MB, free: 8.973 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.2819, allocations: 3.906 kB / 490.9 MB, free: 8.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.2819, allocations: 4 kB / 490.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.282, allocations: 322.8 kB / 491.2 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.362e-05/0.282, allocations: 19.98 kB / 491.2 MB, free: 8.621 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.955e-05/0.2821, allocations: 58 kB / 491.3 MB, free: 8.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.235e-05/0.2822, allocations: 27.94 kB / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2822, allocations: 0 / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001797/0.2824, allocations: 105.4 kB / 491.4 MB, free: 8.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.2824, allocations: 4.219 kB / 491.4 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2824, allocations: 7.953 kB / 491.4 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2824, allocations: 4 kB / 491.4 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.013e-05/0.2825, allocations: 12 kB / 491.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.2825, allocations: 11.92 kB / 491.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.262e-05/0.2826, allocations: 8 kB / 491.5 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.2826, allocations: 4 kB / 491.5 MB, free: 8.355 MB / 362.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 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * 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.122e-05/0.2827, allocations: 118.2 kB / 491.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.2829, allocations: 77.58 kB / 491.6 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.2829, allocations: 24.3 kB / 491.7 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2829, allocations: 3.953 kB / 491.7 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2829, allocations: 3.938 kB / 491.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2829, allocations: 0 / 491.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.2831, allocations: 173.6 kB / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2831, allocations: 0 / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.2831, allocations: 11.98 kB / 491.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2832, allocations: 0 / 491.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.2832, allocations: 8 kB / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2832, allocations: 0 / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2832, allocations: 7.953 kB / 491.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.2834, allocations: 135.6 kB / 492 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.732e-05/0.2835, allocations: 96.94 kB / 492.1 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.2835, allocations: 4 kB / 492.1 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.032e-05/0.2836, allocations: 19.89 kB / 492.1 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.2836, allocations: 3.984 kB / 492.1 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.2837, allocations: 4 kB / 492.1 MB, free: 7.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.318e-05/0.2837, allocations: 99.27 kB / 492.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2837, allocations: 0 / 492.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.2839, allocations: 12 kB / 492.2 MB, free: 7.453 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 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * 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.0006387/0.2846, allocations: 0.7735 MB / 493 MB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001811/0.2848, allocations: 68.09 kB / 493.1 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2848, allocations: 0 / 493.1 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.774e-05/0.2848, allocations: 8 kB / 493.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.2854, allocations: 0.7161 MB / 493.8 MB, free: 5.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.2865, allocations: 1.47 MB / 495.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.2867, allocations: 0.6965 MB / 496 MB, free: 3.566 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.039e-05/0.2867, allocations: 192 / 496 MB, free: 3.566 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.2868, allocations: 23.42 kB / 496 MB, free: 3.543 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2868, allocations: 0 / 496 MB, free: 3.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01097/0.2978, allocations: 1.653 MB / 497.6 MB, free: 2.039 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/0.298, allocations: 190.8 kB / 497.8 MB, free: 1.801 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.452/1.75, allocations: 0 / 497.8 MB, free: 1.801 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat