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.002005/0.002005, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002401/0.002401, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.485/1.485, allocations: 177 MB / 204.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 178] 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 1.623e-06/1.623e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.768e-05/2.931e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002841/0.00287, allocations: 1.458 MB / 273.6 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001993/0.003069, allocations: 43.83 kB / 273.7 MB, free: 332 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.792e-05/0.003117, allocations: 4 kB / 273.7 MB, free: 328 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.876e-05/0.003146, allocations: 3.938 kB / 273.7 MB, free: 324 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.338e-05/0.003189, allocations: 0 / 273.7 MB, free: 324 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.003376, allocations: 31.84 kB / 273.7 MB, free: 292 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.578e-05/0.003462, allocations: 39.91 kB / 273.8 MB, free: 252 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.024e-05/0.003522, allocations: 15.98 kB / 273.8 MB, free: 236 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.003581, allocations: 23.92 kB / 273.8 MB, free: 212 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.769e-05/0.003608, allocations: 15.92 kB / 273.8 MB, free: 196 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.003623, allocations: 4 kB / 273.8 MB, free: 192 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-06/0.003632, allocations: 4 kB / 273.8 MB, free: 188 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.003654, allocations: 19.91 kB / 273.9 MB, free: 168 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.308e-05/0.003678, allocations: 8 kB / 273.9 MB, free: 160 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.168e-05/0.003769, allocations: 47.86 kB / 273.9 MB, free: 112 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.293e-06/0.00377, allocations: 0 / 273.9 MB, free: 112 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.003771, allocations: 0 / 273.9 MB, free: 112 kB / 250.7 MB Notification: Performance of Transformations before backend: time 2.655e-06/0.003774, allocations: 0 / 273.9 MB, free: 112 kB / 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.0004035/0.004177, allocations: 270.3 kB / 274.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.808e-05/0.004205, allocations: 15.98 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.004242, allocations: 8.891 kB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.004439, allocations: 121.7 kB / 274.3 MB, free: 15.64 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.0001024/0.004541, allocations: 42.19 kB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.004555, allocations: 8.375 kB / 274.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.004847, allocations: 115.9 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.004854, allocations: 192 / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.004868, allocations: 8.359 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.004875, allocations: 4.125 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.17e-05/0.004947, allocations: 15.94 kB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000145/0.005092, allocations: 109.3 kB / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.005289, allocations: 58.69 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.279e-05/0.005351, allocations: 28.78 kB / 274.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.005361, allocations: 0 / 274.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.005395, allocations: 34.56 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.005396, allocations: 0 / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002441/0.005641, allocations: 77.62 kB / 274.8 MB, free: 15.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.005711, allocations: 59.41 kB / 274.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.005832, allocations: 109.8 kB / 275 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.005859, allocations: 25.7 kB / 275 MB, free: 14.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.005928, allocations: 92.12 kB / 275.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.005944, allocations: 11.94 kB / 275.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/0.005982, allocations: 17.72 kB / 275.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005018/0.006484, allocations: 310.8 kB / 275.4 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.886e-05/0.006502, allocations: 8 kB / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.702e-05/0.00653, allocations: 17.7 kB / 275.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.09e-05/0.00658, allocations: 25.66 kB / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.006582, allocations: 0 / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.148e-05/0.006674, allocations: 57.62 kB / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.00669, allocations: 8.062 kB / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.006694, allocations: 0 / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.006708, allocations: 4 kB / 275.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.183e-05/0.00675, allocations: 4 kB / 275.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.006757, allocations: 3.938 kB / 275.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.006775, allocations: 0 / 275.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.006779, allocations: 0 / 275.5 MB, free: 14.27 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 0.000111/0.00689, allocations: 117.9 kB / 275.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.007018, allocations: 73.56 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2e-05/0.007038, allocations: 8.125 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.00704, allocations: 0 / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.007045, allocations: 4 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.007055, allocations: 7.922 kB / 275.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.007176, allocations: 105.3 kB / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.007177, allocations: 0 / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-06/0.007183, allocations: 0 / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.007185, allocations: 4.438 kB / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.007197, allocations: 3.984 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.007198, allocations: 0 / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.007202, allocations: 4 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.007367, allocations: 89.06 kB / 276 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.499e-05/0.007382, allocations: 7.953 kB / 276 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.007403, allocations: 8 kB / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.966e-05/0.007452, allocations: 7.984 kB / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-06/0.007455, allocations: 0 / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.007461, allocations: 3.938 kB / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.867e-05/0.00753, allocations: 87.28 kB / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.00753, allocations: 0 / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001962/0.007726, allocations: 7.938 kB / 276.1 MB, free: 13.68 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 0.0001408/0.007867, allocations: 103.2 kB / 276.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001148/0.007981, allocations: 24 kB / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.007983, allocations: 0 / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.007984, allocations: 0 / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.00885, allocations: 0.7161 MB / 276.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.009213, allocations: 138.3 kB / 277 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.645e-05/0.00929, allocations: 67.34 kB / 277.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.488e-05/0.009315, allocations: 7.891 kB / 277.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.00935, allocations: 12.5 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.009351, allocations: 4.188 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Templates: time 0.003351/0.0127, allocations: 0.7528 MB / 277.9 MB, free: 11.8 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.2939171299804]