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.001603/0.001603, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 225.6 MB / 234.8 MB, free: 3.18 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000966/0.0009662, allocations: 95.61 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.431e-05/2.471e-05, allocations: 0 / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1307, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3875/0.5182, allocations: 76.25 MB / 471.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.5185, allocations: 71.38 kB / 471.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002544/0.5211, allocations: 0.878 MB / 472.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5212, allocations: 0 / 472.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.5212, allocations: 0 / 472.5 MB, free: 14.02 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.0003309/0.5215, allocations: 337.5 kB / 472.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.5216, allocations: 8.031 kB / 472.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.5216, allocations: 6.812 kB / 472.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.5218, allocations: 177.4 kB / 473 MB, free: 13.45 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.0001305/0.522, allocations: 37.61 kB / 473 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.522, allocations: 4 kB / 473 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.937e-05/0.5221, allocations: 21.92 kB / 473 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.5223, allocations: 112.1 kB / 473.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.5223, allocations: 0 / 473.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.5223, allocations: 3.062 kB / 473.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.5223, allocations: 0 / 473.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.5225, allocations: 143.4 kB / 473.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.5226, allocations: 127.9 kB / 473.4 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.5227, allocations: 23.92 kB / 473.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.5227, allocations: 0 / 473.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.5227, allocations: 30.56 kB / 473.5 MB, free: 12.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.874e-06/0.5227, allocations: 3.984 kB / 473.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001607/0.5229, allocations: 68.52 kB / 473.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.5229, allocations: 56.53 kB / 473.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.646e-05/0.523, allocations: 97.72 kB / 473.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.5231, allocations: 25.7 kB / 473.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.349e-05/0.5231, allocations: 84.59 kB / 473.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.5231, allocations: 5.078 kB / 473.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.5231, allocations: 0 / 473.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.5232, allocations: 319.9 kB / 474.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.646e-05/0.5232, allocations: 8 kB / 474.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.752e-05/0.5232, allocations: 36.5 kB / 474.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.519e-05/0.5233, allocations: 16.38 kB / 474.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.5233, allocations: 0 / 474.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.406e-05/0.5234, allocations: 71.17 kB / 474.2 MB, free: 12.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.5234, allocations: 4 kB / 474.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5234, allocations: 0 / 474.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.5234, allocations: 4 kB / 474.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.598e-05/0.5235, allocations: 9.531 kB / 474.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.5235, allocations: 3.953 kB / 474.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.889e-05/0.5235, allocations: 4 kB / 474.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-06/0.5236, allocations: 3.938 kB / 474.3 MB, free: 12.13 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 5.933e-05/0.5236, allocations: 117 kB / 474.4 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.69e-05/0.5237, allocations: 55.02 kB / 474.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.5237, allocations: 4 kB / 474.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.5238, allocations: 12.61 kB / 474.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.5238, allocations: 0 / 474.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.5238, allocations: 4 kB / 474.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.5238, allocations: 0 / 474.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.21e-05/0.5239, allocations: 133.6 kB / 474.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5239, allocations: 4 kB / 474.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.464e-06/0.5239, allocations: 0 / 474.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5239, allocations: 4 kB / 474.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.5239, allocations: 5.203 kB / 474.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5239, allocations: 0 / 474.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.5239, allocations: 3.953 kB / 474.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.649e-05/0.524, allocations: 86.5 kB / 474.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.788e-05/0.5241, allocations: 79.64 kB / 474.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.5241, allocations: 7.75 kB / 474.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.616e-05/0.5241, allocations: 1.453 kB / 474.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-06/0.5242, allocations: 4 kB / 474.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.5242, allocations: 4.703 kB / 474.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.149e-05/0.5242, allocations: 87.56 kB / 474.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5242, allocations: 0 / 474.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.5244, allocations: 8 kB / 474.9 MB, free: 11.5 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.000325/0.5248, allocations: 0.6371 MB / 475.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.163e-05/0.5249, allocations: 23 kB / 475.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5249, allocations: 3.938 kB / 475.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.5249, allocations: 0 / 475.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.5254, allocations: 0.709 MB / 476.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003217/0.5257, allocations: 111.3 kB / 476.4 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.5259, allocations: 0.6883 MB / 477.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.803e-05/0.5259, allocations: 1.547 kB / 477.1 MB, free: 9.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.5259, allocations: 14.81 kB / 477.1 MB, free: 9.273 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.5259, allocations: 0 / 477.1 MB, free: 9.273 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.5477, allocations: 1.113 MB / 478.2 MB, free: 8.652 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/0.5481, allocations: 157.8 kB / 478.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.452/2.001, allocations: 0 / 478.3 MB, free: 8.461 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