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.000979/0.0009791, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008555/0.0008555, allocations: 93.61 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.089e-05/2.092e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.4521, allocations: 77.27 MB / 472.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.4524, allocations: 78.2 kB / 472.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00457/0.457, allocations: 1.505 MB / 474.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.457, allocations: 0 / 474.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.4571, allocations: 4 kB / 474.1 MB, free: 12.96 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.0003599/0.4574, allocations: 360.9 kB / 474.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.4575, allocations: 12.03 kB / 474.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.4577, allocations: 21.28 kB / 474.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.4579, allocations: 184.1 kB / 474.7 MB, free: 12.35 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.0001141/0.458, allocations: 37.89 kB / 474.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.458, allocations: 3.062 kB / 474.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001003/0.4581, allocations: 25.83 kB / 474.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.4584, allocations: 153.1 kB / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.4584, allocations: 0 / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.4584, allocations: 4 kB / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.4584, allocations: 0.7969 kB / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.4586, allocations: 164.5 kB / 475.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.4588, allocations: 148.8 kB / 475.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.4589, allocations: 29.05 kB / 475.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.4589, allocations: 7.812 kB / 475.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.4589, allocations: 42.5 kB / 475.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.4589, allocations: 0 / 475.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001664/0.4591, allocations: 73.56 kB / 475.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.4591, allocations: 85.77 kB / 475.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.436e-05/0.4592, allocations: 108.3 kB / 475.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.4592, allocations: 25.7 kB / 475.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.371e-05/0.4593, allocations: 88.89 kB / 475.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.4593, allocations: 8.828 kB / 475.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.4593, allocations: 4.031 kB / 475.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.389e-05/0.4594, allocations: 321 kB / 476 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.809e-05/0.4594, allocations: 12.09 kB / 476 MB, free: 11.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.215e-05/0.4594, allocations: 46.48 kB / 476 MB, free: 10.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.4595, allocations: 22.11 kB / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4595, allocations: 0 / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001056/0.4596, allocations: 79.11 kB / 476.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4596, allocations: 8.75 kB / 476.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4596, allocations: 4.156 kB / 476.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4596, allocations: 8 kB / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.515e-05/0.4597, allocations: 22.38 kB / 476.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.4598, allocations: 8.656 kB / 476.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.211e-05/0.4598, allocations: 8.734 kB / 476.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.4598, allocations: 4.75 kB / 476.2 MB, free: 10.83 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.464e-05/0.4599, allocations: 101 kB / 476.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001061/0.46, allocations: 79.09 kB / 476.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.46, allocations: 11.94 kB / 476.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.4601, allocations: 19.95 kB / 476.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4601, allocations: 0.75 kB / 476.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4601, allocations: 0 / 476.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.4601, allocations: 0 / 476.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.3e-05/0.4602, allocations: 149.2 kB / 476.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4602, allocations: 0 / 476.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.069e-05/0.4603, allocations: 15.52 kB / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.4603, allocations: 0.5625 kB / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4603, allocations: 1.312 kB / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4603, allocations: 8 kB / 476.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.4603, allocations: 8.641 kB / 476.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.4604, allocations: 108.7 kB / 476.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.4605, allocations: 88.52 kB / 476.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.4605, allocations: 4.562 kB / 476.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.4606, allocations: 16.12 kB / 476.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.4606, allocations: 1.266 kB / 476.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4607, allocations: 8.422 kB / 476.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.406e-05/0.4607, allocations: 91.98 kB / 476.9 MB, free: 10.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4607, allocations: 0 / 476.9 MB, free: 10.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.4609, allocations: 16 kB / 476.9 MB, free: 10.12 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.0003725/0.4613, allocations: 0.7518 MB / 477.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.941e-05/0.4614, allocations: 39.92 kB / 477.7 MB, free: 9.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4614, allocations: 0 / 477.7 MB, free: 9.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.4614, allocations: 8.688 kB / 477.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.4618, allocations: 0.7197 MB / 478.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000351/0.4622, allocations: 128.3 kB / 478.6 MB, free: 8.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.4624, allocations: 0.6982 MB / 479.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.327e-05/0.4624, allocations: 5.219 kB / 479.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.4624, allocations: 17.12 kB / 479.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4624, allocations: 7.969 kB / 479.3 MB, free: 7.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.4809, allocations: 1.323 MB / 480.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.4811, allocations: 153.6 kB / 480.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.452/1.933, allocations: 0 / 480.8 MB, free: 6.797 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