Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002067/0.002067, allocations: 197 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.688/1.688, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008748/0.0008749, allocations: 96.86 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.271e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3545/0.4696, allocations: 76.91 MB / 479 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.4698, allocations: 75.86 kB / 479.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002133/0.472, allocations: 0.8854 MB / 480 MB, free: 11.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.472, allocations: 0 / 480 MB, free: 11.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.472, allocations: 0 / 480 MB, free: 11.71 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002464/0.4723, allocations: 341.5 kB / 480.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.4723, allocations: 12.03 kB / 480.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.334e-05/0.4724, allocations: 34.12 kB / 480.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/0.4724, allocations: 7.281 kB / 480.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.4725, allocations: 176.3 kB / 480.6 MB, free: 11.09 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.4727, allocations: 34.5 kB / 480.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.4727, allocations: 4 kB / 480.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.4729, allocations: 129 kB / 480.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4729, allocations: 0 / 480.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.4729, allocations: 3.062 kB / 480.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4729, allocations: 0 / 480.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.131e-05/0.473, allocations: 24.8 kB / 480.7 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.377e-05/0.4731, allocations: 161.8 kB / 480.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.4732, allocations: 135.2 kB / 481 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.849e-05/0.4733, allocations: 24.48 kB / 481.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.4733, allocations: 3.953 kB / 481.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.4733, allocations: 39.31 kB / 481.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.4733, allocations: 4.688 kB / 481.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001268/0.4735, allocations: 60.52 kB / 481.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.4735, allocations: 55.34 kB / 481.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.089e-05/0.4736, allocations: 101.6 kB / 481.3 MB, free: 10.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.4736, allocations: 25.7 kB / 481.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.74e-05/0.4736, allocations: 83.95 kB / 481.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.4736, allocations: 8.688 kB / 481.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.4736, allocations: 0 / 481.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.4737, allocations: 324.8 kB / 481.7 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.56e-05/0.4737, allocations: 8 kB / 481.8 MB, free: 9.828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.329e-05/0.4737, allocations: 33.64 kB / 481.8 MB, free: 9.785 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.246e-05/0.4738, allocations: 19.56 kB / 481.8 MB, free: 9.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.4738, allocations: 0 / 481.8 MB, free: 9.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.645e-05/0.4738, allocations: 74.8 kB / 481.9 MB, free: 9.699 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.4739, allocations: 7.953 kB / 481.9 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.4739, allocations: 4.75 kB / 481.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.4739, allocations: 7.828 kB / 481.9 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.85e-05/0.4739, allocations: 4 kB / 481.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4739, allocations: 160 / 481.9 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.368e-05/0.474, allocations: 8 kB / 481.9 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-06/0.474, allocations: 3.938 kB / 481.9 MB, free: 9.672 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 3.726e-05/0.474, allocations: 109.5 kB / 482 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.891e-05/0.4741, allocations: 69.97 kB / 482.1 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.115e-05/0.4741, allocations: 8.047 kB / 482.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4741, allocations: 4 kB / 482.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4741, allocations: 0 / 482.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4742, allocations: 0 / 482.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.239e-05/0.4742, allocations: 165.5 kB / 482.3 MB, free: 9.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.4742, allocations: 4 kB / 482.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.733e-06/0.4742, allocations: 1 kB / 482.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4742, allocations: 0.7031 kB / 482.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.4742, allocations: 4 kB / 482.3 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4743, allocations: 5.641 kB / 482.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4743, allocations: 0 / 482.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.257e-05/0.4743, allocations: 85.25 kB / 482.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.922e-05/0.4744, allocations: 85.02 kB / 482.4 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.4744, allocations: 7.984 kB / 482.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.25e-05/0.4744, allocations: 7.938 kB / 482.5 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-06/0.4745, allocations: 4.891 kB / 482.5 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.4745, allocations: 5.062 kB / 482.5 MB, free: 9.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.962e-05/0.4745, allocations: 79.28 kB / 482.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4745, allocations: 0 / 482.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001793/0.4747, allocations: 11.44 kB / 482.6 MB, free: 8.977 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0002767/0.475, allocations: 0.6395 MB / 483.2 MB, free: 8.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.635e-05/0.475, allocations: 35.62 kB / 483.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.4751, allocations: 0 / 483.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.363e-06/0.4751, allocations: 1.781 kB / 483.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.4755, allocations: 0.7204 MB / 484 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002675/0.4758, allocations: 113.8 kB / 484.1 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.347e-05/0.4759, allocations: 0.6887 MB / 484.8 MB, free: 6.723 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.107e-05/0.4759, allocations: 192 / 484.8 MB, free: 6.719 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.709e-05/0.476, allocations: 15.25 kB / 484.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.476, allocations: 0 / 484.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01121/0.4872, allocations: 1.421 MB / 486.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.4874, allocations: 174.5 kB / 486.4 MB, free: 5.309 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/1.998, allocations: 0 / 486.4 MB, free: 5.309 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat