Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 177.1 kB / 8.35 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.693/1.693, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009832/0.0009833, allocations: 80.73 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.774e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09742, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3759/0.4734, allocations: 75.44 MB / 463 MB, free: 3.277 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4737, allocations: 71.95 kB / 463.1 MB, free: 3.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002267/0.476, allocations: 0.8808 MB / 464 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.476, allocations: 3.984 kB / 464 MB, free: 2.332 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.476, allocations: 0 / 464 MB, free: 2.332 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003065/0.4763, allocations: 327.3 kB / 464.3 MB, free: 1.969 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.4764, allocations: 8.031 kB / 464.3 MB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.4764, allocations: 15.86 kB / 464.3 MB, free: 1.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.4766, allocations: 171 kB / 464.5 MB, free: 1.738 MB / 330.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.0001107/0.4767, allocations: 37.64 kB / 464.5 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.4767, allocations: 7.938 kB / 464.5 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.12e-05/0.4768, allocations: 27.92 kB / 464.5 MB, free: 1.664 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.477, allocations: 103.3 kB / 464.6 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.477, allocations: 0 / 464.6 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.4771, allocations: 0 / 464.6 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.4771, allocations: 7.891 kB / 464.7 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.4772, allocations: 142.2 kB / 464.8 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.4774, allocations: 128.5 kB / 464.9 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.4774, allocations: 24.91 kB / 464.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.4774, allocations: 0 / 464.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.4775, allocations: 30.56 kB / 465 MB, free: 1.148 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.031e-06/0.4775, allocations: 0 / 465 MB, free: 1.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001375/0.4776, allocations: 65.58 kB / 465 MB, free: 1.078 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.4777, allocations: 55.41 kB / 465.1 MB, free: 1.012 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.182e-05/0.4777, allocations: 101 kB / 465.2 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.4778, allocations: 29.64 kB / 465.2 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.4778, allocations: 84.14 kB / 465.3 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.4778, allocations: 3.906 kB / 465.3 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/0.4779, allocations: 0 / 465.3 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.478, allocations: 326.8 kB / 465.6 MB, free: 464 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.476e-05/0.478, allocations: 8 kB / 465.6 MB, free: 456 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.478, allocations: 33 kB / 465.7 MB, free: 408 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.457e-05/0.4781, allocations: 12 kB / 465.7 MB, free: 396 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4781, allocations: 0 / 465.7 MB, free: 396 kB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.523e-05/0.4782, allocations: 69.56 kB / 465.7 MB, free: 320 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.4782, allocations: 4 kB / 465.7 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.4782, allocations: 0 / 465.7 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.4782, allocations: 4 kB / 465.8 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.303e-05/0.4782, allocations: 7.984 kB / 465.8 MB, free: 304 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4783, allocations: 0 / 465.8 MB, free: 304 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.572e-05/0.4783, allocations: 7.938 kB / 465.8 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.4783, allocations: 0 / 465.8 MB, free: 296 kB / 330.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 7.937e-05/0.4784, allocations: 125 kB / 465.9 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.566e-05/0.4785, allocations: 53.59 kB / 465.9 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-06/0.4785, allocations: 4 kB / 465.9 MB, free: 100 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.4785, allocations: 8.406 kB / 466 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4785, allocations: 0 / 466 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4785, allocations: 0 / 466 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4786, allocations: 4 kB / 466 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.4787, allocations: 138.8 kB / 466.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4787, allocations: 4 kB / 466.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.805e-06/0.4787, allocations: 0 / 466.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.4787, allocations: 4 kB / 466.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.4788, allocations: 256 / 466.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4788, allocations: 4 kB / 466.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4788, allocations: 3.984 kB / 466.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.4789, allocations: 88.92 kB / 466.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.4789, allocations: 77.11 kB / 466.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.479, allocations: 8 kB / 466.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.29e-05/0.479, allocations: 0 / 466.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-06/0.479, allocations: 0 / 466.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.479, allocations: 11.98 kB / 466.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.582e-05/0.4791, allocations: 79.28 kB / 466.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4791, allocations: 0 / 466.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.4793, allocations: 8 kB / 466.4 MB, free: 15.59 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.0004224/0.4797, allocations: 0.6398 MB / 467 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.166e-05/0.4798, allocations: 31.98 kB / 467 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4798, allocations: 0 / 467 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4e-07/0.4798, allocations: 0 / 467 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.4804, allocations: 0.7103 MB / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.4807, allocations: 105.8 kB / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.481, allocations: 0.6924 MB / 468.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.324e-05/0.481, allocations: 4.188 kB / 468.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.4811, allocations: 15.42 kB / 468.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4811, allocations: 0 / 468.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.5005, allocations: 1.108 MB / 469.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/0.5008, allocations: 158 kB / 469.8 MB, free: 12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.447/1.948, allocations: 0 / 469.8 MB, free: 12 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat