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.001677/0.001677, allocations: 99.97 kB / 21.18 MB, free: 0.6562 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.001907/0.001907, allocations: 191.4 kB / 24.46 MB, free: 3.973 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.478/1.478, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001742/0.001742, allocations: 43.92 kB / 371.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2377, allocations: 52.18 MB / 423.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002746/0.2405, allocations: 1.448 MB / 425.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001929/0.2406, allocations: 43.84 kB / 425.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.435e-05/0.2407, allocations: 7.938 kB / 425.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.2407, allocations: 3.938 kB / 425.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.89e-05/0.2408, allocations: 3.938 kB / 425.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.241, allocations: 23.97 kB / 425.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.257e-05/0.2411, allocations: 39.91 kB / 425.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.497e-05/0.2412, allocations: 11.98 kB / 425.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.581e-05/0.2413, allocations: 19.92 kB / 425.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.908e-05/0.2413, allocations: 15.92 kB / 425.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.2413, allocations: 7.938 kB / 425.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.2413, allocations: 4 kB / 425.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.2413, allocations: 8 kB / 425.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.481e-05/0.2414, allocations: 23.91 kB / 425.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.895e-05/0.2415, allocations: 39.62 kB / 425.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2415, allocations: 3.938 kB / 425.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2415, allocations: 0 / 425.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.2415, allocations: 4 kB / 425.5 MB, free: 12.82 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.0004651/0.242, allocations: 272.1 kB / 425.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.242, allocations: 8.031 kB / 425.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.242, allocations: 4.938 kB / 425.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.2423, allocations: 126.5 kB / 425.9 MB, free: 12.36 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.911e-05/0.2424, allocations: 34.25 kB / 426 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.2424, allocations: 8.375 kB / 426 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.2427, allocations: 127.7 kB / 426.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2427, allocations: 3.938 kB / 426.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2427, allocations: 4 kB / 426.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.2427, allocations: 4 kB / 426.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.697e-05/0.2428, allocations: 15.98 kB / 426.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.2429, allocations: 105.3 kB / 426.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.2431, allocations: 62.62 kB / 426.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.501e-05/0.2431, allocations: 20.84 kB / 426.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-06/0.2431, allocations: 4 kB / 426.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.2432, allocations: 30.56 kB / 426.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.2432, allocations: 0 / 426.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002194/0.2434, allocations: 81.77 kB / 426.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.2435, allocations: 71.33 kB / 426.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/0.2435, allocations: 97.86 kB / 426.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.2436, allocations: 29.7 kB / 426.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.2436, allocations: 84.12 kB / 426.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.505e-05/0.2436, allocations: 7.953 kB / 426.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.2437, allocations: 25.72 kB / 426.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2438, allocations: 314.8 kB / 427 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.061e-05/0.2438, allocations: 8 kB / 427 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.189e-05/0.2439, allocations: 36.3 kB / 427.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.908e-05/0.244, allocations: 52.22 kB / 427.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.244, allocations: 0 / 427.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001174/0.2441, allocations: 77.56 kB / 427.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2441, allocations: 6.5 kB / 427.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.2441, allocations: 0 / 427.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.2441, allocations: 11.88 kB / 427.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.2442, allocations: 4 kB / 427.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.2442, allocations: 0 / 427.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.2442, allocations: 4 kB / 427.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.2442, allocations: 3.938 kB / 427.2 MB, free: 10.9 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.827e-05/0.2443, allocations: 129.9 kB / 427.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.2444, allocations: 61.69 kB / 427.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.915e-05/0.2444, allocations: 15.98 kB / 427.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.2444, allocations: 0 / 427.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2444, allocations: 0 / 427.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.2444, allocations: 0 / 427.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.306e-05/0.2445, allocations: 105.3 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2445, allocations: 0 / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-06/0.2445, allocations: 0 / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2445, allocations: 4 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.2445, allocations: 0 / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.2445, allocations: 8.188 kB / 427.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2445, allocations: 0 / 427.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.2447, allocations: 97.06 kB / 427.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.264e-05/0.2447, allocations: 7.938 kB / 427.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.2447, allocations: 4 kB / 427.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-05/0.2448, allocations: 3.938 kB / 427.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-06/0.2448, allocations: 0 / 427.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2448, allocations: 8 kB / 427.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.918e-05/0.2448, allocations: 83.27 kB / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2448, allocations: 0 / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001991/0.245, allocations: 12 kB / 427.8 MB, free: 10.3 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.0001075/0.2451, allocations: 99.25 kB / 427.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001183/0.2453, allocations: 35.92 kB / 427.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2453, allocations: 0 / 427.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.2453, allocations: 0 / 427.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007489/0.246, allocations: 0.718 MB / 428.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.2463, allocations: 155.3 kB / 428.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.943e-05/0.2464, allocations: 75.52 kB / 428.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.659e-05/0.2464, allocations: 15.38 kB / 428.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2464, allocations: 0 / 428.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of Templates: time 0.002305/0.2487, allocations: 0.7683 MB / 429.6 MB, free: 8.355 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.744050370063633]