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.0009633/0.0009633, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.00113/0.00113, allocations: 164.4 kB / 24.82 MB, free: 9.266 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 1.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.533e-06/1.533e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.498e-05/1.651e-05, allocations: 2.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001845/0.001861, allocations: 1.478 MB / 274.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002062/0.002068, allocations: 39.84 kB / 274.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.714e-05/0.002135, allocations: 0 / 274.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.935e-05/0.002164, allocations: 7.938 kB / 274.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.002301, allocations: 7.875 kB / 274.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.002592, allocations: 27.95 kB / 275 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.869e-05/0.002691, allocations: 39.86 kB / 275 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.002804, allocations: 15.97 kB / 275 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.361e-05/0.002888, allocations: 15.98 kB / 275 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.326e-05/0.002921, allocations: 15.98 kB / 275 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.002944, allocations: 7.938 kB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.01e-05/0.002954, allocations: 4 kB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.002977, allocations: 7.984 kB / 275.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.59e-05/0.003003, allocations: 15.98 kB / 275.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.003121, allocations: 35.83 kB / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.003125, allocations: 0 / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.003127, allocations: 0 / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.003132, allocations: 0 / 275.1 MB, free: 15.55 MB / 266.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.0004798/0.003611, allocations: 368.6 kB / 275.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.003665, allocations: 12.02 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.003719, allocations: 12.89 kB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.003913, allocations: 136.4 kB / 275.6 MB, free: 14.96 MB / 266.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.000123/0.004036, allocations: 34.27 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.004049, allocations: 4.375 kB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.004305, allocations: 138.1 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.004315, allocations: 192 / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.004323, allocations: 384 / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.004331, allocations: 4.125 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.63e-05/0.004367, allocations: 11.98 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.004495, allocations: 105.2 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.004648, allocations: 51.17 kB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.843e-05/0.004686, allocations: 23.62 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.004696, allocations: 7.984 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.00472, allocations: 33.39 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.523e-06/0.004721, allocations: 0 / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001686/0.00489, allocations: 61.69 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.004939, allocations: 55.41 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.73e-05/0.005037, allocations: 165.9 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.00505, allocations: 29.7 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.005097, allocations: 130.9 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.00511, allocations: 7.891 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.005144, allocations: 31.36 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.005282, allocations: 0.4922 MB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-06/0.005291, allocations: 0 / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.292e-05/0.005314, allocations: 23.36 kB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.635e-05/0.00535, allocations: 27.38 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005353, allocations: 0 / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.491e-05/0.005427, allocations: 45.64 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.005444, allocations: 10.34 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.005449, allocations: 8 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.005461, allocations: 0 / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.876e-05/0.0055, allocations: 7.984 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.005503, allocations: 0 / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.829e-05/0.005521, allocations: 3.938 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.005526, allocations: 4.438 kB / 277.1 MB, free: 13.3 MB / 266.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 8.877e-05/0.005615, allocations: 160.5 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.908e-05/0.005704, allocations: 61.64 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.00573, allocations: 8.125 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.005732, allocations: 0 / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.005733, allocations: 4 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.005737, allocations: 4 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.781e-05/0.005814, allocations: 105.2 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.005816, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.124e-05/0.005827, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.00583, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.005837, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.005838, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.005842, allocations: 4 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.013e-05/0.005902, allocations: 72.5 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.602e-05/0.005918, allocations: 11.94 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.005937, allocations: 4 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.494e-05/0.005982, allocations: 4 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-06/0.005985, allocations: 0 / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.005993, allocations: 4 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.804e-05/0.006041, allocations: 131.2 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006041, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001846/0.006225, allocations: 4 kB / 277.7 MB, free: 12.67 MB / 266.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 9.968e-05/0.006325, allocations: 97.5 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.764e-05/0.006423, allocations: 35.61 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.006425, allocations: 128 / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.006426, allocations: 4 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007024/0.007128, allocations: 1.061 MB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002392/0.007367, allocations: 136.1 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.806e-05/0.007395, allocations: 58.62 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.53e-05/0.007411, allocations: 7.984 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.007458, allocations: 70.2 kB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.007459, allocations: 0 / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Templates: time 0.001956/0.009416, allocations: 0.8063 MB / 280 MB, free: 10.34 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7009987994097173]