Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 43.94 kB / 371.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2536, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002692/0.2563, allocations: 1.456 MB / 425.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000188/0.2565, allocations: 35.91 kB / 425.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.166e-05/0.2566, allocations: 3.938 kB / 425.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.2566, allocations: 0 / 425.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.609e-05/0.2566, allocations: 7.938 kB / 425.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.2569, allocations: 27.95 kB / 425.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.257, allocations: 43.84 kB / 425.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.608e-05/0.2571, allocations: 8 kB / 425.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.983e-05/0.2571, allocations: 23.92 kB / 425.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.203e-05/0.2572, allocations: 15.92 kB / 425.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.963e-05/0.2572, allocations: 4 kB / 425.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.125e-05/0.2572, allocations: 4 kB / 425.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.2572, allocations: 15.92 kB / 425.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.392e-05/0.2573, allocations: 19.92 kB / 425.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.2574, allocations: 35.69 kB / 425.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2574, allocations: 0 / 425.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2574, allocations: 0 / 425.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2574, allocations: 0 / 425.6 MB, free: 12.99 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.0004784/0.2579, allocations: 287.6 kB / 425.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2579, allocations: 8.031 kB / 425.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.2579, allocations: 4.938 kB / 425.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.2582, allocations: 118.4 kB / 426 MB, free: 12.53 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 0.000126/0.2583, allocations: 42.25 kB / 426 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.2583, allocations: 384 / 426 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.2586, allocations: 131.9 kB / 426.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.2586, allocations: 3.938 kB / 426.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2586, allocations: 4 kB / 426.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.2586, allocations: 3.938 kB / 426.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.383e-05/0.2587, allocations: 19.92 kB / 426.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.2589, allocations: 136.7 kB / 426.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.259, allocations: 58.69 kB / 426.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.482e-05/0.2591, allocations: 24.84 kB / 426.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.2591, allocations: 0 / 426.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.2591, allocations: 34.55 kB / 426.4 MB, free: 12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.2591, allocations: 3.938 kB / 426.4 MB, free: 12 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002043/0.2593, allocations: 77.58 kB / 426.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.2594, allocations: 59.41 kB / 426.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.394e-05/0.2595, allocations: 109.8 kB / 426.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.2595, allocations: 29.64 kB / 426.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.145e-05/0.2596, allocations: 84.14 kB / 426.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.2596, allocations: 7.953 kB / 426.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.2596, allocations: 21.7 kB / 426.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2598, allocations: 314.8 kB / 427.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.608e-05/0.2598, allocations: 4 kB / 427.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.867e-05/0.2598, allocations: 48.22 kB / 427.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.929e-05/0.2599, allocations: 48.23 kB / 427.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2599, allocations: 0 / 427.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001028/0.26, allocations: 69.62 kB / 427.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.26, allocations: 15.22 kB / 427.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.26, allocations: 0 / 427.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.26, allocations: 0 / 427.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.614e-05/0.2601, allocations: 11.92 kB / 427.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2601, allocations: 4 kB / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.226e-05/0.2601, allocations: 0 / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2601, allocations: 8 kB / 427.3 MB, free: 11.02 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 9.794e-05/0.2602, allocations: 121.2 kB / 427.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.2603, allocations: 69.95 kB / 427.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.329e-05/0.2603, allocations: 8.062 kB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.2603, allocations: 0 / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.2604, allocations: 8 kB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2604, allocations: 0 / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.2605, allocations: 128.7 kB / 427.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2605, allocations: 0 / 427.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.352e-06/0.2605, allocations: 0 / 427.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.2605, allocations: 7.922 kB / 427.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.2605, allocations: 8 kB / 427.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2605, allocations: 0 / 427.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2605, allocations: 0 / 427.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.2606, allocations: 81.12 kB / 427.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.2606, allocations: 19.83 kB / 427.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.2607, allocations: 7.875 kB / 427.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.702e-05/0.2607, allocations: 7.984 kB / 427.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-06/0.2607, allocations: 0 / 427.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.2607, allocations: 4 kB / 427.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.797e-05/0.2608, allocations: 87.28 kB / 427.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2608, allocations: 0 / 427.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001936/0.261, allocations: 8 kB / 427.9 MB, free: 10.38 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.0001057/0.2611, allocations: 99.23 kB / 428 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.2612, allocations: 31.94 kB / 428 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2612, allocations: 0 / 428 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.91e-07/0.2612, allocations: 4.312 kB / 428 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007173/0.2619, allocations: 0.722 MB / 428.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003048/0.2622, allocations: 151.4 kB / 428.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.2625, allocations: 0.6883 MB / 429.6 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.2626, allocations: 7.438 kB / 429.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2626, allocations: 8.062 kB / 429.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of Templates: time 0.002231/0.2648, allocations: 0.7687 MB / 430.4 MB, free: 7.816 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.6574468079488724]