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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000991/0.0009911, allocations: 199.3 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009933/0.0009933, allocations: 92.16 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.485e-05, allocations: 3.984 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1339, allocations: 51.47 MB / 395.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.5158, allocations: 76.25 MB / 471.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.5161, allocations: 75.19 kB / 471.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002322/0.5185, allocations: 0.8743 MB / 472.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.5185, allocations: 0 / 472.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.5185, allocations: 7.125 kB / 472.4 MB, free: 14.33 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.0002857/0.5188, allocations: 333.6 kB / 472.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.5189, allocations: 8.031 kB / 472.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.201e-05/0.5189, allocations: 9.25 kB / 472.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.5191, allocations: 167.2 kB / 472.9 MB, free: 13.76 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.0001179/0.5192, allocations: 38.83 kB / 472.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.5192, allocations: 0 / 472.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.622e-05/0.5193, allocations: 25.14 kB / 472.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.5195, allocations: 114.7 kB / 473.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5195, allocations: 3.172 kB / 473.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.5195, allocations: 0 / 473.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.5196, allocations: 2.812 kB / 473.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.909e-05/0.5197, allocations: 135.9 kB / 473.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.5198, allocations: 129.9 kB / 473.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.673e-05/0.5199, allocations: 24.73 kB / 473.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.5199, allocations: 1.641 kB / 473.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.5199, allocations: 37.75 kB / 473.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.193e-06/0.5199, allocations: 0 / 473.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001504/0.5201, allocations: 62.92 kB / 473.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.5201, allocations: 55.41 kB / 473.5 MB, free: 13.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.755e-05/0.5202, allocations: 97.23 kB / 473.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.5202, allocations: 29.7 kB / 473.6 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.969e-05/0.5202, allocations: 85.55 kB / 473.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.5202, allocations: 3.906 kB / 473.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.5202, allocations: 0 / 473.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.693e-05/0.5203, allocations: 323.9 kB / 474 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.5203, allocations: 6.938 kB / 474 MB, free: 12.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.544e-05/0.5203, allocations: 36.05 kB / 474.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.191e-05/0.5204, allocations: 15.25 kB / 474.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5204, allocations: 0 / 474.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001415/0.5205, allocations: 61.59 kB / 474.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.5206, allocations: 8 kB / 474.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.5206, allocations: 0 / 474.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.5206, allocations: 4 kB / 474.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.18e-05/0.5206, allocations: 9.672 kB / 474.2 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5206, allocations: 3.953 kB / 474.2 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.241e-05/0.5207, allocations: 160 / 474.2 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-06/0.5207, allocations: 8 kB / 474.2 MB, free: 12.45 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 6.022e-05/0.5207, allocations: 116.3 kB / 474.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.918e-05/0.5208, allocations: 59.34 kB / 474.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.425e-05/0.5208, allocations: 11.88 kB / 474.4 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.5209, allocations: 1.688 kB / 474.4 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5209, allocations: 0 / 474.4 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.5209, allocations: 3.953 kB / 474.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.274e-05/0.5209, allocations: 136.1 kB / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.5209, allocations: 0 / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.997e-06/0.521, allocations: 11.8 kB / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.521, allocations: 0 / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.521, allocations: 0.7031 kB / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.521, allocations: 0 / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.521, allocations: 0 / 474.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.071e-05/0.5211, allocations: 82.27 kB / 474.6 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.787e-05/0.5211, allocations: 85.58 kB / 474.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.5212, allocations: 4.734 kB / 474.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.474e-05/0.5212, allocations: 9.359 kB / 474.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-06/0.5212, allocations: 0 / 474.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.5212, allocations: 4.703 kB / 474.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.565e-05/0.5213, allocations: 82.92 kB / 474.8 MB, free: 11.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5213, allocations: 0 / 474.8 MB, free: 11.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.5215, allocations: 5.547 kB / 474.8 MB, free: 11.82 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 9.994e-05/0.5216, allocations: 96.14 kB / 474.9 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.815e-05/0.5217, allocations: 31.97 kB / 474.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.5217, allocations: 5.844 kB / 474.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.5217, allocations: 0 / 474.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.5222, allocations: 0.7049 MB / 475.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001931/0.5224, allocations: 74.53 kB / 475.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.5225, allocations: 0.6875 MB / 476.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.621e-05/0.5225, allocations: 5.469 kB / 476.4 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.037e-05/0.5226, allocations: 11.44 kB / 476.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5226, allocations: 0 / 476.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of Templates: time 0.002532/0.5251, allocations: 0.5818 MB / 477 MB, free: 9.855 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches