Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008057/0.0008057, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003207/0.003207, allocations: 159.3 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.834/0.834, allocations: 177.1 MB / 205 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.291e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002351/0.002374, allocations: 1.464 MB / 327.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002287/0.002603, allocations: 43.88 kB / 327.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/0.002669, allocations: 3.938 kB / 327.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.002702, allocations: 0 / 327.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.483e-05/0.002757, allocations: 3.938 kB / 327.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.003002, allocations: 23.97 kB / 327.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.003106, allocations: 39.86 kB / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.003209, allocations: 11.98 kB / 327.4 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.998e-05/0.003279, allocations: 27.91 kB / 327.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.435e-05/0.003314, allocations: 11.98 kB / 327.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.003343, allocations: 8 kB / 327.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.017e-05/0.003353, allocations: 4 kB / 327.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.382e-05/0.003377, allocations: 7.984 kB / 327.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.003409, allocations: 19.92 kB / 327.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.003523, allocations: 55.73 kB / 327.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.003525, allocations: 0 / 327.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.003526, allocations: 0 / 327.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.00353, allocations: 0 / 327.5 MB, free: 13.72 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.0004345/0.003965, allocations: 269.3 kB / 327.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.004005, allocations: 12.03 kB / 327.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.004047, allocations: 4.891 kB / 327.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.004234, allocations: 125.7 kB / 327.9 MB, free: 13.26 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.0001031/0.004337, allocations: 38.25 kB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.004348, allocations: 384 / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.004643, allocations: 127.8 kB / 328.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.004654, allocations: 192 / 328.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.004666, allocations: 4.375 kB / 328.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.004672, allocations: 8.062 kB / 328.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.953e-05/0.004731, allocations: 19.98 kB / 328.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001122/0.004844, allocations: 109.3 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.005011, allocations: 58.62 kB / 328.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.602e-05/0.005057, allocations: 24.84 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.005067, allocations: 0 / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.005089, allocations: 34.5 kB / 328.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.00509, allocations: 0 / 328.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002025/0.005293, allocations: 73.88 kB / 328.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.005352, allocations: 63.34 kB / 328.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.929e-05/0.005431, allocations: 113.8 kB / 328.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.005443, allocations: 29.7 kB / 328.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.005491, allocations: 80.14 kB / 328.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.005509, allocations: 15.94 kB / 328.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.005537, allocations: 13.72 kB / 328.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.288e-05/0.00563, allocations: 314.8 kB / 329 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.303e-05/0.005643, allocations: 4 kB / 329 MB, free: 12.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.322e-05/0.005666, allocations: 21.7 kB / 329.1 MB, free: 12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.29e-05/0.005699, allocations: 25.72 kB / 329.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.005701, allocations: 0 / 329.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.793e-05/0.005769, allocations: 49.64 kB / 329.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.005784, allocations: 11.98 kB / 329.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.005788, allocations: 0 / 329.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.005802, allocations: 0 / 329.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.932e-05/0.005841, allocations: 4 kB / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.005847, allocations: 3.938 kB / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.005862, allocations: 3.938 kB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.005866, allocations: 4 kB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.779e-05/0.005934, allocations: 113.8 kB / 329.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.839e-05/0.006022, allocations: 69.83 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.1e-05/0.006043, allocations: 8.125 kB / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.006045, allocations: 0 / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.006049, allocations: 0 / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.006054, allocations: 3.938 kB / 329.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.539e-05/0.00612, allocations: 105.3 kB / 329.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.006121, allocations: 0 / 329.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.563e-06/0.006128, allocations: 7.938 kB / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.006129, allocations: 0 / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.006138, allocations: 3.984 kB / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.006139, allocations: 0 / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.00614, allocations: 256 / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.006251, allocations: 104.9 kB / 329.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.137e-06/0.00626, allocations: 3.953 kB / 329.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.006279, allocations: 8 kB / 329.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.601e-05/0.006315, allocations: 3.984 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-06/0.006318, allocations: 4 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.006324, allocations: 0 / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.495e-05/0.006359, allocations: 83.28 kB / 329.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006359, allocations: 0 / 329.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002111/0.00657, allocations: 11.94 kB / 329.7 MB, free: 11.3 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 8.68e-05/0.006657, allocations: 107.2 kB / 329.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.762e-05/0.006754, allocations: 23.94 kB / 329.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.006756, allocations: 0 / 329.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.006757, allocations: 0 / 329.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.007366, allocations: 0.7142 MB / 330.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.00764, allocations: 155 kB / 330.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.007691, allocations: 67.34 kB / 330.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.007715, allocations: 8.688 kB / 330.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.007716, allocations: 4 kB / 330.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of Templates: time 0.001908/0.009623, allocations: 0.7501 MB / 331.5 MB, free: 9.398 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 3.916427564807236]