Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 174 kB / 16.76 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205 MB / 222.5 MB, free: 9.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006855/0.0006855, allocations: 82.38 kB / 270.5 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06516/0.06516, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000327/0.0003271, allocations: 12 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06249/0.06284, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001172/0.06404, allocations: 1.16 MB / 442.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000162/0.06422, allocations: 39.84 kB / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.614e-05/0.06429, allocations: 0 / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.677e-05/0.06433, allocations: 0 / 442.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.453e-05/0.06438, allocations: 3.938 kB / 442.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.06459, allocations: 31.97 kB / 442.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.372e-05/0.06466, allocations: 35.92 kB / 443 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.488e-05/0.06476, allocations: 11.98 kB / 443 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.312e-05/0.06482, allocations: 15.92 kB / 443 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.334e-05/0.06486, allocations: 19.92 kB / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.06488, allocations: 0 / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.976e-06/0.06489, allocations: 0 / 443 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.06492, allocations: 11.92 kB / 443 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.828e-05/0.06495, allocations: 11.94 kB / 443 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.423e-05/0.06501, allocations: 27.94 kB / 443.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.06502, allocations: 0 / 443.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.06503, allocations: 0 / 443.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.06504, allocations: 4 kB / 443.1 MB, free: 15.02 MB / 298.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.0003132/0.06535, allocations: 351.6 kB / 443.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.06539, allocations: 12.03 kB / 443.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.06543, allocations: 4.844 kB / 443.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.06555, allocations: 176.3 kB / 443.6 MB, free: 14.4 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.06567, allocations: 38.25 kB / 443.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.06569, allocations: 4.375 kB / 443.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.06593, allocations: 131.7 kB / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.06595, allocations: 3.938 kB / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.06596, allocations: 0 / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.06597, allocations: 0 / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.15e-05/0.06603, allocations: 23.98 kB / 443.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.865e-05/0.06612, allocations: 157.7 kB / 443.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.06628, allocations: 143.7 kB / 444.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.185e-05/0.06633, allocations: 24.86 kB / 444.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.06634, allocations: 4 kB / 444.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.125e-05/0.06636, allocations: 34.55 kB / 444.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.06637, allocations: 0 / 444.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001666/0.06654, allocations: 81.62 kB / 444.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.06658, allocations: 51.41 kB / 444.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.848e-05/0.06663, allocations: 117.8 kB / 444.4 MB, free: 13.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-06/0.06665, allocations: 25.7 kB / 444.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.761e-05/0.06667, allocations: 84.14 kB / 444.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.06669, allocations: 15.83 kB / 444.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/0.06672, allocations: 17.7 kB / 444.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.64e-05/0.06676, allocations: 314.8 kB / 444.8 MB, free: 13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.06678, allocations: 4 kB / 444.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.504e-05/0.06681, allocations: 44.28 kB / 444.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.773e-05/0.06685, allocations: 44.23 kB / 444.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.06686, allocations: 4 kB / 444.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.957e-05/0.06694, allocations: 73.56 kB / 445 MB, free: 12.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.06696, allocations: 7.938 kB / 445 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.06697, allocations: 4 kB / 445 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.06699, allocations: 0 / 445 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.849e-05/0.06703, allocations: 4 kB / 445 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.06704, allocations: 7.984 kB / 445 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.06707, allocations: 3.906 kB / 445 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.06708, allocations: 8 kB / 445 MB, free: 12.76 MB / 298.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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.06713, allocations: 121.9 kB / 445.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.06722, allocations: 61.62 kB / 445.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.762e-05/0.06724, allocations: 7.969 kB / 445.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.06725, allocations: 0 / 445.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.06726, allocations: 0 / 445.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.06726, allocations: 0 / 445.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.871e-05/0.06732, allocations: 161.6 kB / 445.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.06732, allocations: 7.938 kB / 445.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.352e-06/0.06733, allocations: 0 / 445.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.06734, allocations: 3.938 kB / 445.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.06735, allocations: 7.984 kB / 445.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.06736, allocations: 0 / 445.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.06736, allocations: 0 / 445.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.702e-05/0.06747, allocations: 97.41 kB / 445.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.673e-05/0.06749, allocations: 81.11 kB / 445.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.06751, allocations: 7.938 kB / 445.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.346e-05/0.06756, allocations: 7.922 kB / 445.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-06/0.06757, allocations: 0 / 445.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.06759, allocations: 8 kB / 445.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.078e-05/0.06761, allocations: 83.28 kB / 445.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06762, allocations: 0 / 445.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001772/0.0678, allocations: 12 kB / 445.7 MB, free: 12 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.652e-05/0.06786, allocations: 91.25 kB / 445.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.238e-05/0.06796, allocations: 35.92 kB / 445.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.06797, allocations: 0 / 445.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.06798, allocations: 320 / 445.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.06842, allocations: 0.7297 MB / 446.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002232/0.06866, allocations: 152.9 kB / 446.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.796e-05/0.06875, allocations: 0.6809 MB / 447.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.768e-05/0.06877, allocations: 15.5 kB / 447.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.0688, allocations: 0 / 447.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of Templates: time 0.001557/0.07036, allocations: 0.7684 MB / 448.2 MB, free: 9.441 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches