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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.0009079, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001269/0.002177, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009226/0.0009226, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001189/0.002112, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.009/1.009, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08298/1.092, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.023e-06/2.023e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.488e-05/2.69e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00191/0.001937, allocations: 1.54 MB / 246.5 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000108/0.002045, allocations: 39.84 kB / 246.6 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.865e-05/0.002113, allocations: 3.938 kB / 246.6 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.258e-05/0.002136, allocations: 0 / 246.6 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.36e-05/0.00218, allocations: 15.86 kB / 246.6 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.002343, allocations: 27.91 kB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.002446, allocations: 35.92 kB / 246.7 MB, free: 11.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.002546, allocations: 7.984 kB / 246.7 MB, free: 11.98 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.406e-05/0.00264, allocations: 31.91 kB / 246.7 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.58e-05/0.002676, allocations: 11.98 kB / 246.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.002704, allocations: 4 kB / 246.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.002715, allocations: 8 kB / 246.7 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.002735, allocations: 7.938 kB / 246.7 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.002762, allocations: 12 kB / 246.8 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.481e-05/0.002857, allocations: 31.84 kB / 246.8 MB, free: 11.87 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.67e-05/0.002873, allocations: 0 / 246.8 MB, free: 11.87 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.002874, allocations: 0 / 246.8 MB, free: 11.87 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.002892, allocations: 0 / 246.8 MB, free: 11.87 MB / 250.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.0003656/0.003257, allocations: 260.5 kB / 247 MB, free: 11.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.713e-05/0.003284, allocations: 8.031 kB / 247 MB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.794e-05/0.003312, allocations: 12.94 kB / 247.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.00344, allocations: 121.7 kB / 247.2 MB, free: 11.43 MB / 250.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 7.725e-05/0.003518, allocations: 30.27 kB / 247.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.003529, allocations: 8.375 kB / 247.2 MB, free: 11.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.003683, allocations: 124.5 kB / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.00369, allocations: 192 / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.003697, allocations: 4.359 kB / 247.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.003704, allocations: 8.125 kB / 247.3 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.563e-05/0.003729, allocations: 11.98 kB / 247.4 MB, free: 11.22 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.618e-05/0.003785, allocations: 61.05 kB / 247.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.921e-05/0.003885, allocations: 50.48 kB / 247.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.863e-05/0.003903, allocations: 16.86 kB / 247.5 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-06/0.003909, allocations: 3.984 kB / 247.5 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.003927, allocations: 30.56 kB / 247.5 MB, free: 11.03 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 7.01e-07/0.003927, allocations: 4 kB / 247.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001028/0.00403, allocations: 49.88 kB / 247.6 MB, free: 10.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.004073, allocations: 67.34 kB / 247.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.873e-05/0.004121, allocations: 110.7 kB / 247.7 MB, free: 10.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.869e-06/0.004131, allocations: 33.7 kB / 247.8 MB, free: 10.73 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.918e-05/0.00415, allocations: 84.12 kB / 247.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.058e-05/0.004161, allocations: 11.94 kB / 247.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/0.004185, allocations: 17.72 kB / 247.9 MB, free: 10.61 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003178/0.004503, allocations: 318.8 kB / 248.2 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.222e-06/0.004509, allocations: 7.938 kB / 248.2 MB, free: 10.28 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.441e-05/0.004524, allocations: 17.7 kB / 248.2 MB, free: 10.26 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.232e-05/0.004546, allocations: 13.72 kB / 248.2 MB, free: 10.24 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.004548, allocations: 0 / 248.2 MB, free: 10.24 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.405e-05/0.004592, allocations: 53.62 kB / 248.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.004604, allocations: 8 kB / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.004608, allocations: 0 / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.004615, allocations: 0 / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.169e-05/0.004647, allocations: 4 kB / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.00465, allocations: 0 / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.061e-05/0.00466, allocations: 0 / 248.3 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.004665, allocations: 11.88 kB / 248.3 MB, free: 10.16 MB / 250.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 5.487e-05/0.00472, allocations: 109.8 kB / 248.4 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.312e-05/0.004763, allocations: 53.69 kB / 248.5 MB, free: 9.98 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.00478, allocations: 8.188 kB / 248.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.004781, allocations: 0 / 248.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.004782, allocations: 0 / 248.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.004785, allocations: 0 / 248.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.416e-05/0.004839, allocations: 77.81 kB / 248.6 MB, free: 9.883 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.004841, allocations: 0 / 248.6 MB, free: 9.883 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-06/0.004846, allocations: 4 kB / 248.6 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.172e-05/0.004858, allocations: 7.891 kB / 248.6 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.00486, allocations: 0 / 248.6 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-06/0.004866, allocations: 3.984 kB / 248.6 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.004867, allocations: 4.25 kB / 248.6 MB, free: 9.863 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.004868, allocations: 4 kB / 248.6 MB, free: 9.859 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.56e-05/0.004914, allocations: 61.8 kB / 248.6 MB, free: 9.781 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.00493, allocations: 4 kB / 248.6 MB, free: 9.777 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.198e-05/0.004962, allocations: 4 kB / 248.6 MB, free: 9.773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-06/0.004965, allocations: 192 / 248.6 MB, free: 9.773 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.00497, allocations: 3.984 kB / 248.7 MB, free: 9.77 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.343e-05/0.004983, allocations: 8.859 kB / 248.7 MB, free: 9.758 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004983, allocations: 3.938 kB / 248.7 MB, free: 9.754 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.508e-05/0.005078, allocations: 12 kB / 248.7 MB, free: 9.742 MB / 250.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 7.064e-05/0.005149, allocations: 84.41 kB / 248.8 MB, free: 9.648 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.021e-05/0.005219, allocations: 24.78 kB / 248.8 MB, free: 9.621 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.005222, allocations: 0 / 248.8 MB, free: 9.621 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.005223, allocations: 4 kB / 248.8 MB, free: 9.617 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.005604, allocations: 0.719 MB / 249.5 MB, free: 8.875 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003179/0.005922, allocations: 122.4 kB / 249.6 MB, free: 8.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.481e-05/0.005957, allocations: 59.34 kB / 249.7 MB, free: 8.652 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.746e-05/0.005974, allocations: 0 / 249.7 MB, free: 8.652 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.006018, allocations: 67.55 kB / 249.8 MB, free: 8.586 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.006019, allocations: 0 / 249.8 MB, free: 8.586 MB / 250.7 MB Notification: Performance of Templates: time 0.002149/0.008167, allocations: 0.817 MB / 250.6 MB, free: 7.781 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.452293736860156]