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.000906/0.0009063, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 88.88 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.14e-05/3.146e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.4272, allocations: 76.45 MB / 464 MB, free: 2.262 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.4274, allocations: 75.95 kB / 464.1 MB, free: 2.188 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004367/0.4318, allocations: 1.433 MB / 465.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4319, allocations: 0 / 465.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.4319, allocations: 4 kB / 465.5 MB, free: 0.7617 MB / 330.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.0004381/0.4323, allocations: 359.1 kB / 465.9 MB, free: 376 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.4324, allocations: 12.03 kB / 465.9 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.4324, allocations: 11.86 kB / 465.9 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.4326, allocations: 184.6 kB / 466.1 MB, free: 128 kB / 330.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.000104/0.4327, allocations: 33.7 kB / 466.1 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.4328, allocations: 7.938 kB / 466.1 MB, free: 80 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.138e-05/0.4329, allocations: 23.98 kB / 466.1 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.4332, allocations: 148.9 kB / 466.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4332, allocations: 0 / 466.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.4332, allocations: 4 kB / 466.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.4332, allocations: 3.953 kB / 466.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.4334, allocations: 159 kB / 466.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.4336, allocations: 154.4 kB / 466.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.93e-05/0.4337, allocations: 34.58 kB / 466.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.4337, allocations: 0 / 466.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.4337, allocations: 38.56 kB / 466.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.4337, allocations: 0 / 466.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001815/0.4339, allocations: 69.53 kB / 466.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.434, allocations: 89.14 kB / 466.8 MB, free: 15.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.824e-05/0.4341, allocations: 105 kB / 466.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.4341, allocations: 25.7 kB / 467 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.4341, allocations: 100.1 kB / 467.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.4342, allocations: 3.906 kB / 467.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.4342, allocations: 0 / 467.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4343, allocations: 326.8 kB / 467.4 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.284e-05/0.4343, allocations: 8 kB / 467.4 MB, free: 14.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.4343, allocations: 50.02 kB / 467.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.713e-05/0.4344, allocations: 23.92 kB / 467.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4344, allocations: 0 / 467.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001345/0.4345, allocations: 85.45 kB / 467.5 MB, free: 14.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.4346, allocations: 9.25 kB / 467.5 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.4346, allocations: 0 / 467.5 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.4346, allocations: 4 kB / 467.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.716e-05/0.4347, allocations: 15.98 kB / 467.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.4347, allocations: 4 kB / 467.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.408e-05/0.4348, allocations: 12.16 kB / 467.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4348, allocations: 4 kB / 467.6 MB, free: 14.42 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 7.958e-05/0.4349, allocations: 108.9 kB / 467.7 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001268/0.435, allocations: 82.5 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.435, allocations: 4 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.4351, allocations: 16.56 kB / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4351, allocations: 0 / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4351, allocations: 3.984 kB / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4351, allocations: 0 / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.4352, allocations: 166 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4352, allocations: 0 / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.317e-05/0.4353, allocations: 12 kB / 468 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4353, allocations: 0 / 468 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.4354, allocations: 3.984 kB / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4354, allocations: 4 kB / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4354, allocations: 0 / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.4355, allocations: 119.5 kB / 468.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.218e-05/0.4356, allocations: 89.09 kB / 468.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.4356, allocations: 4 kB / 468.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.891e-05/0.4357, allocations: 4.188 kB / 468.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.4358, allocations: 3.938 kB / 468.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.4358, allocations: 15.92 kB / 468.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.155e-05/0.4358, allocations: 90.16 kB / 468.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4358, allocations: 0 / 468.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000221/0.4361, allocations: 16 kB / 468.3 MB, free: 13.6 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.0005141/0.4366, allocations: 0.7461 MB / 469.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.4367, allocations: 40.19 kB / 469.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4367, allocations: 0 / 469.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.746e-05/0.4367, allocations: 11.94 kB / 469.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.4373, allocations: 0.7101 MB / 469.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.4377, allocations: 138.2 kB / 470 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.4379, allocations: 0.6966 MB / 470.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.339e-05/0.438, allocations: 4.172 kB / 470.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.438, allocations: 19.44 kB / 470.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of SimCode: time 4.8e-07/0.438, allocations: 0 / 470.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.4552, allocations: 1.322 MB / 472 MB, free: 9.797 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.4554, allocations: 165.1 kB / 472.2 MB, free: 9.598 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.479/1.934, allocations: 0 / 472.2 MB, free: 9.598 MB / 346.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