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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008697/0.0008696, allocations: 103.9 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002609, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2266, allocations: 50.39 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08516/0.3118, allocations: 77.19 MB / 478.8 MB, free: 3.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.3121, allocations: 75.95 kB / 478.8 MB, free: 3.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00409/0.3162, allocations: 1.45 MB / 480.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3162, allocations: 0 / 480.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.3162, allocations: 0 / 480.3 MB, free: 1.77 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.0003942/0.3166, allocations: 371.1 kB / 480.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3167, allocations: 8.031 kB / 480.7 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.369e-05/0.3167, allocations: 42.55 kB / 480.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.3168, allocations: 11.86 kB / 480.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.317, allocations: 187.6 kB / 480.9 MB, free: 1.066 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.0001287/0.3171, allocations: 33.69 kB / 480.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.3171, allocations: 8 kB / 480.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.3175, allocations: 164.9 kB / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3175, allocations: 0 / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.3175, allocations: 4 kB / 481.1 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3175, allocations: 11.89 kB / 481.1 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.3177, allocations: 35.97 kB / 481.2 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.3178, allocations: 178.5 kB / 481.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.3181, allocations: 170.4 kB / 481.5 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.3182, allocations: 4 kB / 481.5 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.3182, allocations: 38.69 kB / 481.5 MB, free: 316 kB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.3182, allocations: 0 / 481.5 MB, free: 316 kB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003823/0.3186, allocations: 194.6 kB / 481.7 MB, free: 96 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.3187, allocations: 89.22 kB / 481.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.3188, allocations: 119.6 kB / 481.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3188, allocations: 25.7 kB / 482 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.558e-05/0.3188, allocations: 92.14 kB / 482 MB, free: 15.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.3188, allocations: 11.83 kB / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-06/0.3189, allocations: 4 kB / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.319, allocations: 314.8 kB / 482.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.348e-05/0.319, allocations: 23.92 kB / 482.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.339e-05/0.3191, allocations: 58 kB / 482.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.961e-05/0.3192, allocations: 31.98 kB / 482.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3192, allocations: 0 / 482.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001737/0.3193, allocations: 105.4 kB / 482.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3194, allocations: 4 kB / 482.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3194, allocations: 4.219 kB / 482.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3194, allocations: 7.984 kB / 482.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.679e-05/0.3195, allocations: 16.23 kB / 482.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.3195, allocations: 4 kB / 482.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.89e-05/0.3196, allocations: 8 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.3196, allocations: 11.95 kB / 482.6 MB, free: 15.11 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.234e-05/0.3197, allocations: 124.6 kB / 482.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.3198, allocations: 73.58 kB / 482.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.3198, allocations: 16.38 kB / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3198, allocations: 0 / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3199, allocations: 0 / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3199, allocations: 4 kB / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.32, allocations: 173.6 kB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.32, allocations: 0 / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.376e-05/0.3201, allocations: 15.92 kB / 483 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3201, allocations: 4 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.3201, allocations: 7.984 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3201, allocations: 0 / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3201, allocations: 4 kB / 483.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.3203, allocations: 135.5 kB / 483.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.3204, allocations: 93 kB / 483.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.3204, allocations: 4 kB / 483.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.752e-05/0.3205, allocations: 15.98 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.3205, allocations: 192 / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.3206, allocations: 4 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.68e-05/0.3206, allocations: 95.2 kB / 483.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3206, allocations: 0 / 483.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.3208, allocations: 16 kB / 483.4 MB, free: 14.23 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.0005845/0.3214, allocations: 0.7812 MB / 484.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.3216, allocations: 64.34 kB / 484.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3216, allocations: 0 / 484.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.3216, allocations: 15.92 kB / 484.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.3222, allocations: 0.7212 MB / 485 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.3233, allocations: 1.463 MB / 486.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.3236, allocations: 0.6965 MB / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.762e-05/0.3236, allocations: 192 / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.3236, allocations: 23.42 kB / 487.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.774e-06/0.3236, allocations: 0 / 487.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8052/1.129, allocations: 1.651 MB / 488.8 MB, free: 8.812 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002929/1.129, allocations: 196.2 kB / 489 MB, free: 8.574 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.463/2.592, allocations: 0 / 489 MB, free: 8.574 MB / 362.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat