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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.89 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2357, allocations: 50.54 MB / 409.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002476/0.2382, allocations: 1.441 MB / 411.4 MB, free: 208 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001953/0.2384, allocations: 43.88 kB / 411.4 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.726e-05/0.2385, allocations: 0 / 411.4 MB, free: 164 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.784e-05/0.2385, allocations: 3.938 kB / 411.4 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.802e-05/0.2386, allocations: 7.938 kB / 411.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.2389, allocations: 23.97 kB / 411.4 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.88e-05/0.239, allocations: 39.91 kB / 411.5 MB, free: 88 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.919e-05/0.2391, allocations: 4 kB / 411.5 MB, free: 84 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.661e-05/0.2391, allocations: 27.92 kB / 411.5 MB, free: 56 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.056e-05/0.2392, allocations: 19.91 kB / 411.5 MB, free: 36 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.2392, allocations: 4 kB / 411.5 MB, free: 32 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.2392, allocations: 4 kB / 411.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.2392, allocations: 11.94 kB / 411.5 MB, free: 16 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.231e-05/0.2393, allocations: 19.91 kB / 411.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.475e-05/0.2394, allocations: 35.83 kB / 411.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2394, allocations: 0 / 411.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2394, allocations: 0 / 411.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2394, allocations: 0 / 411.6 MB, free: 15.96 MB / 334.1 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.0004666/0.2399, allocations: 363.1 kB / 412 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2399, allocations: 8.031 kB / 412 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.24, allocations: 8.844 kB / 412 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.2402, allocations: 176.4 kB / 412.1 MB, free: 15.33 MB / 334.1 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 9.422e-05/0.2403, allocations: 34.27 kB / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.2403, allocations: 4.375 kB / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.2407, allocations: 127.8 kB / 412.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.2407, allocations: 7.938 kB / 412.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.2407, allocations: 0 / 412.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2407, allocations: 0 / 412.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.937e-05/0.2408, allocations: 15.98 kB / 412.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.2409, allocations: 161.7 kB / 412.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.2411, allocations: 139.7 kB / 412.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/0.2412, allocations: 32.84 kB / 412.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.2412, allocations: 0 / 412.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.2412, allocations: 34.5 kB / 412.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.2413, allocations: 0 / 412.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001933/0.2415, allocations: 81.52 kB / 412.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.2415, allocations: 63.34 kB / 412.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.66e-05/0.2416, allocations: 105.8 kB / 412.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.2416, allocations: 29.7 kB / 413 MB, free: 14.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.2417, allocations: 84.14 kB / 413 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.2417, allocations: 11.88 kB / 413.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.2417, allocations: 21.72 kB / 413.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2418, allocations: 314.8 kB / 413.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.692e-05/0.2419, allocations: 8.422 kB / 413.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.668e-05/0.2419, allocations: 40.28 kB / 413.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.559e-05/0.242, allocations: 52.23 kB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.242, allocations: 4 kB / 413.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001025/0.2421, allocations: 81.53 kB / 413.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2421, allocations: 7.938 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2421, allocations: 4 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.2421, allocations: 0 / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.409e-05/0.2422, allocations: 4 kB / 413.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.2422, allocations: 7.938 kB / 413.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.232e-05/0.2422, allocations: 0 / 413.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.2422, allocations: 4 kB / 413.6 MB, free: 13.68 MB / 334.1 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 8.596e-05/0.2423, allocations: 125.9 kB / 413.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.2424, allocations: 65.53 kB / 413.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.359e-05/0.2425, allocations: 7.969 kB / 413.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2425, allocations: 0 / 413.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2425, allocations: 3.984 kB / 413.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.2425, allocations: 4 kB / 413.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.2426, allocations: 157.7 kB / 414 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2426, allocations: 0 / 414 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-06/0.2426, allocations: 3.938 kB / 414 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2426, allocations: 3.938 kB / 414 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.2426, allocations: 0 / 414 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2426, allocations: 4 kB / 414 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2426, allocations: 7.938 kB / 414 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.2428, allocations: 81.12 kB / 414.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.2428, allocations: 85 kB / 414.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.2429, allocations: 11.94 kB / 414.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.193e-05/0.2429, allocations: 0 / 414.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-06/0.2429, allocations: 8 kB / 414.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.2429, allocations: 0 / 414.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.089e-05/0.243, allocations: 91.27 kB / 414.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.243, allocations: 3.938 kB / 414.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001956/0.2432, allocations: 12 kB / 414.3 MB, free: 12.91 MB / 334.1 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 0.0001042/0.2433, allocations: 96.66 kB / 414.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001227/0.2434, allocations: 35.92 kB / 414.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2434, allocations: 0 / 414.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.2434, allocations: 320 / 414.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.2441, allocations: 0.723 MB / 415.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002979/0.2444, allocations: 147.2 kB / 415.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2447, allocations: 0.6807 MB / 415.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.2447, allocations: 11.44 kB / 415.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2447, allocations: 0 / 415.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of Templates: time 0.002093/0.2468, allocations: 0.7761 MB / 416.7 MB, free: 10.36 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches