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.0009973/0.0009973, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 97.19 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002079/0.0002079, allocations: 4 kB / 358 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1756, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08216/0.2578, allocations: 76.98 MB / 486.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.2581, allocations: 71.97 kB / 486.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002249/0.2603, allocations: 0.8842 MB / 487.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2603, allocations: 1.094 kB / 487.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.2604, allocations: 0 / 487.4 MB, free: 12.64 MB / 362.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.0003243/0.2607, allocations: 344.5 kB / 487.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.2607, allocations: 8.031 kB / 487.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.2608, allocations: 34.56 kB / 487.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.2608, allocations: 15.09 kB / 487.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.2609, allocations: 171 kB / 488 MB, free: 11.98 MB / 362.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.0001071/0.2611, allocations: 45.69 kB / 488 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.2611, allocations: 3.953 kB / 488.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.2613, allocations: 126 kB / 488.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.2613, allocations: 0 / 488.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.158e-06/0.2614, allocations: 7.938 kB / 488.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.2614, allocations: 0 / 488.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.323e-05/0.2614, allocations: 15.98 kB / 488.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.2616, allocations: 161.7 kB / 488.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.2617, allocations: 143.7 kB / 488.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.2618, allocations: 0 / 488.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.2618, allocations: 34.52 kB / 488.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.2618, allocations: 0 / 488.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002151/0.262, allocations: 154.9 kB / 488.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.2621, allocations: 63.31 kB / 488.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.069e-05/0.2621, allocations: 105 kB / 488.8 MB, free: 11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2622, allocations: 29.64 kB / 488.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/0.2622, allocations: 88.08 kB / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.103e-05/0.2622, allocations: 4 kB / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-06/0.2622, allocations: 0 / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.817e-05/0.2623, allocations: 314.8 kB / 489.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.48e-05/0.2623, allocations: 11.98 kB / 489.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.15e-05/0.2624, allocations: 36.3 kB / 489.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.561e-05/0.2624, allocations: 12 kB / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2624, allocations: 0 / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.9e-05/0.2625, allocations: 73.47 kB / 489.4 MB, free: 10.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2625, allocations: 12.14 kB / 489.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2626, allocations: 7.953 kB / 489.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.2626, allocations: 0 / 489.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.113e-05/0.2626, allocations: 8 kB / 489.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2626, allocations: 0 / 489.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.388e-05/0.2627, allocations: 4 kB / 489.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.2627, allocations: 4 kB / 489.4 MB, free: 10.36 MB / 362.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 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 7.343e-05/0.2627, allocations: 121.7 kB / 489.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.33e-05/0.2628, allocations: 57.69 kB / 489.6 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.2629, allocations: 11.97 kB / 489.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2629, allocations: 8.031 kB / 489.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2629, allocations: 4.438 kB / 489.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2629, allocations: 3.984 kB / 489.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.662e-05/0.263, allocations: 157.7 kB / 489.8 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.263, allocations: 4 kB / 489.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.263, allocations: 0 / 489.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.263, allocations: 0 / 489.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.263, allocations: 0 / 489.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.263, allocations: 4 kB / 489.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.263, allocations: 3.953 kB / 489.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.2632, allocations: 96.97 kB / 489.9 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.2632, allocations: 84.98 kB / 490 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.2633, allocations: 7.984 kB / 490 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.947e-05/0.2633, allocations: 0 / 490 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-06/0.2633, allocations: 4 kB / 490 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.2633, allocations: 7.953 kB / 490 MB, free: 9.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.132e-05/0.2634, allocations: 83.27 kB / 490.1 MB, free: 9.609 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2634, allocations: 0 / 490.1 MB, free: 9.609 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001865/0.2636, allocations: 16 kB / 490.1 MB, free: 9.594 MB / 362.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 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * 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.0004644/0.2641, allocations: 0.6436 MB / 490.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.2642, allocations: 27.94 kB / 490.8 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2642, allocations: 384 / 490.8 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.144e-06/0.2642, allocations: 7.984 kB / 490.8 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005687/0.2648, allocations: 0.7301 MB / 491.5 MB, free: 8.141 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007612/0.2655, allocations: 1.004 MB / 492.5 MB, free: 7.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.2658, allocations: 0.6887 MB / 493.2 MB, free: 6.355 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.353e-05/0.2658, allocations: 4.188 kB / 493.2 MB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.2658, allocations: 15.42 kB / 493.2 MB, free: 6.332 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2658, allocations: 0 / 493.2 MB, free: 6.332 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0106/0.2764, allocations: 1.415 MB / 494.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/0.2767, allocations: 209.2 kB / 494.8 MB, free: 4.844 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.41/1.686, allocations: 0 / 494.8 MB, free: 4.844 MB / 362.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