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.001067/0.001067, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009142/0.000914, allocations: 88.7 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.698e-05, allocations: 4 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1288, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3473/0.4761, allocations: 77.93 MB / 480.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.4764, allocations: 80.2 kB / 480.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004266/0.4807, allocations: 1.512 MB / 481.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4807, allocations: 0 / 481.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.4808, allocations: 2.625 kB / 481.6 MB, free: 10.14 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.000347/0.4811, allocations: 362.9 kB / 482 MB, free: 9.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4812, allocations: 12.03 kB / 482 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.4812, allocations: 45.42 kB / 482.1 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.4814, allocations: 19.27 kB / 482.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.4816, allocations: 176.8 kB / 482.2 MB, free: 9.469 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.0001167/0.4817, allocations: 43.52 kB / 482.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.4817, allocations: 6.938 kB / 482.3 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.482, allocations: 164.4 kB / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.482, allocations: 0 / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.4821, allocations: 7.156 kB / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4821, allocations: 0 / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.033e-05/0.4821, allocations: 27.05 kB / 482.5 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.4823, allocations: 178.6 kB / 482.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.4825, allocations: 166.1 kB / 482.8 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.311e-05/0.4826, allocations: 33.66 kB / 482.9 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.4826, allocations: 3.953 kB / 482.9 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.4826, allocations: 38.12 kB / 482.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.4827, allocations: 7.938 kB / 482.9 MB, free: 8.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001911/0.4828, allocations: 76.45 kB / 483 MB, free: 8.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.4829, allocations: 85.42 kB / 483.1 MB, free: 8.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.817e-05/0.483, allocations: 118.2 kB / 483.2 MB, free: 8.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.483, allocations: 25.7 kB / 483.2 MB, free: 8.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.612e-05/0.4831, allocations: 95.27 kB / 483.3 MB, free: 8.367 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.4831, allocations: 7.891 kB / 483.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-06/0.4831, allocations: 3.688 kB / 483.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.4832, allocations: 324.1 kB / 483.6 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.116e-05/0.4832, allocations: 4 kB / 483.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.726e-05/0.4832, allocations: 58.66 kB / 483.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.341e-05/0.4833, allocations: 15.62 kB / 483.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4833, allocations: 4 kB / 483.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001094/0.4834, allocations: 92.45 kB / 483.8 MB, free: 7.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.4834, allocations: 12.17 kB / 483.8 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.4834, allocations: 4 kB / 483.8 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.4834, allocations: 4 kB / 483.8 MB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.171e-05/0.4835, allocations: 15.98 kB / 483.8 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4835, allocations: 4 kB / 483.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.025e-05/0.4836, allocations: 8.562 kB / 483.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.4836, allocations: 16.81 kB / 483.9 MB, free: 7.809 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 5.61e-05/0.4837, allocations: 105.8 kB / 484 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-05/0.4838, allocations: 73.09 kB / 484 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.021e-05/0.4838, allocations: 20.19 kB / 484.1 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4838, allocations: 4 kB / 484.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4838, allocations: 0 / 484.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4839, allocations: 0 / 484.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.889e-05/0.484, allocations: 169.3 kB / 484.2 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.484, allocations: 0 / 484.2 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.484, allocations: 19.92 kB / 484.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.484, allocations: 0 / 484.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.4841, allocations: 1.312 kB / 484.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4841, allocations: 3.953 kB / 484.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4841, allocations: 8 kB / 484.3 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.4842, allocations: 126.5 kB / 484.4 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.4843, allocations: 92.75 kB / 484.5 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.4843, allocations: 3.953 kB / 484.5 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.666e-05/0.4844, allocations: 11.61 kB / 484.5 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.4844, allocations: 4 kB / 484.5 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.4844, allocations: 4.688 kB / 484.5 MB, free: 7.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.86e-05/0.4845, allocations: 99.64 kB / 484.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4845, allocations: 0 / 484.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000185/0.4847, allocations: 15.69 kB / 484.6 MB, free: 7.016 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 0.0004615/0.4851, allocations: 0.7548 MB / 485.4 MB, free: 6.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001146/0.4853, allocations: 47.66 kB / 485.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4853, allocations: 0 / 485.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.568e-05/0.4853, allocations: 11.95 kB / 485.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.4857, allocations: 0.721 MB / 486.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.4861, allocations: 138.2 kB / 486.3 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.4862, allocations: 0.6965 MB / 487 MB, free: 4.609 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.085e-05/0.4863, allocations: 2.531 kB / 487 MB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.4863, allocations: 22.61 kB / 487 MB, free: 4.59 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4863, allocations: 4.031 kB / 487 MB, free: 4.586 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01133/0.4977, allocations: 1.644 MB / 488.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.4979, allocations: 172.3 kB / 488.8 MB, free: 2.949 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/2.039, allocations: 0 / 488.8 MB, free: 2.949 MB / 346.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