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.001005/0.001005, allocations: 175.4 kB / 13.63 MB, free: 1.684 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.301/1.301, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0008332/0.0008331, allocations: 98.84 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.95e-05/2.958e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09851, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2948/0.3934, allocations: 77.12 MB / 471.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.3937, allocations: 79.94 kB / 471.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004299/0.398, allocations: 1.439 MB / 473 MB, free: 8.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.398, allocations: 0 / 473 MB, free: 8.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.398, allocations: 4 kB / 473 MB, free: 8.852 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.0003937/0.3984, allocations: 355.2 kB / 473.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.3985, allocations: 12.03 kB / 473.3 MB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.3985, allocations: 34.56 kB / 473.4 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.3986, allocations: 11.86 kB / 473.4 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.3988, allocations: 190.9 kB / 473.6 MB, free: 8.168 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.0001053/0.3989, allocations: 37.69 kB / 473.6 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.3989, allocations: 8 kB / 473.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.3992, allocations: 152.9 kB / 473.8 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3993, allocations: 4 kB / 473.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3993, allocations: 4 kB / 473.8 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3993, allocations: 3.953 kB / 473.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.568e-05/0.3994, allocations: 27.92 kB / 473.8 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.3996, allocations: 186.4 kB / 474 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.3999, allocations: 162.4 kB / 474.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.949e-05/0.3999, allocations: 37.83 kB / 474.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.4, allocations: 0 / 474.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.4, allocations: 34.56 kB / 474.2 MB, free: 7.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.4, allocations: 4 kB / 474.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.000237/0.4002, allocations: 81.53 kB / 474.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.4003, allocations: 85.94 kB / 474.4 MB, free: 7.203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.4005, allocations: 113 kB / 474.5 MB, free: 7.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.4005, allocations: 25.7 kB / 474.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.371e-05/0.4005, allocations: 96.16 kB / 474.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.4006, allocations: 7.906 kB / 474.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.4006, allocations: 0 / 474.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4008, allocations: 322.8 kB / 474.9 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.76e-05/0.4008, allocations: 8 kB / 474.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.619e-05/0.4009, allocations: 53.95 kB / 475 MB, free: 6.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.001e-05/0.4009, allocations: 19.98 kB / 475 MB, free: 6.523 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4009, allocations: 0 / 475 MB, free: 6.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001343/0.4011, allocations: 93.56 kB / 475.1 MB, free: 6.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.4011, allocations: 8 kB / 475.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4011, allocations: 3.984 kB / 475.1 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.4011, allocations: 7.938 kB / 475.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.4012, allocations: 20.11 kB / 475.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.4013, allocations: 0 / 475.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.264e-05/0.4013, allocations: 15.89 kB / 475.2 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.4013, allocations: 8.062 kB / 475.2 MB, free: 6.363 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 9.497e-05/0.4014, allocations: 111.8 kB / 475.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.4016, allocations: 81.58 kB / 475.4 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.262e-05/0.4016, allocations: 8.625 kB / 475.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4016, allocations: 0 / 475.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4017, allocations: 4 kB / 475.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4017, allocations: 0 / 475.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.4018, allocations: 181.5 kB / 475.6 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4018, allocations: 0 / 475.6 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.79e-05/0.4019, allocations: 12 kB / 475.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4019, allocations: 0 / 475.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.402, allocations: 11.98 kB / 475.6 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.402, allocations: 0 / 475.6 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.402, allocations: 4 kB / 475.6 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.4022, allocations: 123.5 kB / 475.7 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.4023, allocations: 89 kB / 475.8 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.4023, allocations: 8 kB / 475.8 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.8e-05/0.4024, allocations: 8 kB / 475.8 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.4024, allocations: 0 / 475.8 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.4024, allocations: 11.98 kB / 475.8 MB, free: 5.609 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.761e-05/0.4025, allocations: 92.16 kB / 475.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4025, allocations: 0 / 475.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001966/0.4027, allocations: 11.95 kB / 475.9 MB, free: 5.508 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.0006587/0.4034, allocations: 0.7657 MB / 476.7 MB, free: 4.707 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001237/0.4035, allocations: 43.94 kB / 476.7 MB, free: 4.664 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4035, allocations: 0 / 476.7 MB, free: 4.664 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.668e-05/0.4036, allocations: 4.5 kB / 476.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.4042, allocations: 0.7232 MB / 477.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.4046, allocations: 147.9 kB / 477.6 MB, free: 3.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.4049, allocations: 0.6926 MB / 478.3 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.561e-05/0.4049, allocations: 12.23 kB / 478.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.405, allocations: 19.44 kB / 478.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.405, allocations: 0 / 478.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.417, allocations: 1.653 MB / 480 MB, free: 1.469 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.4172, allocations: 177.9 kB / 480.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.437/1.854, allocations: 1.688 kB / 480.1 MB, free: 1.238 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