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.001406/0.001406, allocations: 172.9 kB / 16.8 MB, free: 5.012 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.483/1.483, allocations: 205.4 MB / 223 MB, free: 9.008 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.0008598/0.0008597, allocations: 102.9 kB / 271.3 MB, free: 8.242 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.06941/0.06941, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003466, allocations: 12 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07401/0.07437, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001236/0.07564, allocations: 1.152 MB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001576/0.07582, allocations: 35.84 kB / 444.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.489e-05/0.07588, allocations: 0 / 444.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.07591, allocations: 0 / 444.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.07597, allocations: 3.938 kB / 444.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.0762, allocations: 31.97 kB / 444.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.195e-05/0.07628, allocations: 31.92 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.024e-05/0.07637, allocations: 19.97 kB / 445 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.562e-05/0.07643, allocations: 19.92 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.369e-05/0.07647, allocations: 11.92 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.07649, allocations: 4 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.949e-06/0.0765, allocations: 0 / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.07653, allocations: 15.92 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.07658, allocations: 41.62 kB / 445.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.756e-05/0.07664, allocations: 15.95 kB / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.07665, allocations: 4 kB / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.07666, allocations: 0 / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.07667, allocations: 4 kB / 445.1 MB, free: 14.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.00033/0.077, allocations: 347.7 kB / 445.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.07704, allocations: 8.031 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.07708, allocations: 12.78 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.07722, allocations: 176.3 kB / 445.6 MB, free: 13.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.0001341/0.07736, allocations: 38.25 kB / 445.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.07738, allocations: 4.375 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.07764, allocations: 139.7 kB / 445.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.07765, allocations: 3.938 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.07767, allocations: 3.984 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.07768, allocations: 0 / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.907e-05/0.07773, allocations: 12 kB / 445.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.003e-05/0.07783, allocations: 165.7 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.07798, allocations: 143.7 kB / 446.1 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.213e-05/0.07803, allocations: 24.86 kB / 446.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.07805, allocations: 0 / 446.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.131e-05/0.07807, allocations: 30.56 kB / 446.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.07807, allocations: 4 kB / 446.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001679/0.07825, allocations: 73.61 kB / 446.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.0783, allocations: 59.41 kB / 446.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.471e-05/0.07836, allocations: 114 kB / 446.4 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/0.07838, allocations: 25.7 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.206e-05/0.0784, allocations: 88.08 kB / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.07842, allocations: 11.84 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/0.07843, allocations: 0 / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.27e-05/0.07848, allocations: 314.8 kB / 446.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/0.0785, allocations: 11.98 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.446e-05/0.07853, allocations: 40.3 kB / 446.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.301e-05/0.07857, allocations: 48.22 kB / 446.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.07858, allocations: 0 / 446.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.711e-05/0.07866, allocations: 73.56 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.07868, allocations: 7.938 kB / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.07869, allocations: 4 kB / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.07871, allocations: 0 / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.683e-05/0.07875, allocations: 4 kB / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.07876, allocations: 4 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.796e-05/0.0788, allocations: 7.906 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.07881, allocations: 4 kB / 447 MB, free: 11.78 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 (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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.243e-05/0.07887, allocations: 124.2 kB / 447.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.07895, allocations: 61.62 kB / 447.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.919e-05/0.07898, allocations: 11.95 kB / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.07899, allocations: 0 / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.07899, allocations: 0 / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.079, allocations: 96 / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.065e-05/0.07906, allocations: 165.6 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.07906, allocations: 7.922 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.483e-06/0.07907, allocations: 0 / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.07908, allocations: 3.938 kB / 447.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.07909, allocations: 8 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.0791, allocations: 0 / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.07911, allocations: 4 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.303e-05/0.0792, allocations: 88.97 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.821e-05/0.07923, allocations: 81.09 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.07925, allocations: 7.938 kB / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.0793, allocations: 8.188 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-06/0.07931, allocations: 4 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.07932, allocations: 8 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.057e-05/0.07935, allocations: 83.27 kB / 447.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07935, allocations: 0 / 447.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001768/0.07953, allocations: 12 kB / 447.7 MB, free: 11.02 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 6.628e-05/0.07961, allocations: 91.25 kB / 447.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.845e-05/0.0797, allocations: 35.92 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.07971, allocations: 320 / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.07972, allocations: 4 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.08017, allocations: 0.7219 MB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002148/0.0804, allocations: 158.3 kB / 448.7 MB, free: 9.941 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.483e-05/0.0805, allocations: 0.6849 MB / 449.4 MB, free: 9.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.665e-05/0.08052, allocations: 15.44 kB / 449.4 MB, free: 9.215 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.08053, allocations: 0 / 449.4 MB, free: 9.215 MB / 298.7 MB Notification: Performance of Templates: time 0.001598/0.08213, allocations: 0.7637 MB / 450.2 MB, free: 8.453 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