Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.001033/0.001033, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009746/0.0009746, allocations: 164.8 kB / 25.61 MB, free: 8.902 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.9221/0.9221, allocations: 177.1 MB / 206 MB, free: 4.5 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.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0 / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.135e-05/3.373e-05, allocations: 5.406 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.00589/0.005924, allocations: 1.473 MB / 275.7 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001927/0.006116, allocations: 28.41 kB / 275.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.006183, allocations: 8.562 kB / 275.7 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.006213, allocations: 4.875 kB / 275.7 MB, free: 2.922 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.21e-05/0.006255, allocations: 3.938 kB / 275.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.006511, allocations: 27.91 kB / 275.7 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.008628, allocations: 25.86 kB / 275.8 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.316e-05/0.008722, allocations: 11.98 kB / 275.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.619e-05/0.008778, allocations: 15.94 kB / 275.8 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.936e-05/0.008817, allocations: 15.97 kB / 275.8 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.008834, allocations: 0 / 275.8 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.008844, allocations: 4.531 kB / 275.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.722e-05/0.008861, allocations: 0.6562 kB / 275.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.008883, allocations: 15.92 kB / 275.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.542e-05/0.008969, allocations: 21.78 kB / 275.8 MB, free: 2.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.008974, allocations: 4 kB / 275.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.008975, allocations: 0 / 275.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.008978, allocations: 0 / 275.8 MB, free: 2.781 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000322/0.0093, allocations: 364.6 kB / 276.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.009335, allocations: 19.97 kB / 276.2 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.009364, allocations: 8.891 kB / 276.2 MB, free: 2.359 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.009508, allocations: 120.5 kB / 276.3 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.00953, allocations: 8.375 kB / 276.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.009536, allocations: 384 / 276.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.009716, allocations: 102.2 kB / 276.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-06/0.009723, allocations: 192 / 276.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.301e-06/0.009729, allocations: 384 / 276.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.009735, allocations: 4.375 kB / 276.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.009755, allocations: 7.938 kB / 276.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.236e-05/0.009847, allocations: 109.1 kB / 276.6 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.143e-05/0.009909, allocations: 39.09 kB / 276.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.839e-05/0.009937, allocations: 15.72 kB / 276.6 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.009943, allocations: 0 / 276.6 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.009965, allocations: 37.39 kB / 276.7 MB, free: 1.828 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.009966, allocations: 0 / 276.7 MB, free: 1.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001193/0.01009, allocations: 53.58 kB / 276.7 MB, free: 1.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.01013, allocations: 55.59 kB / 276.8 MB, free: 1.703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.394e-05/0.0102, allocations: 169.9 kB / 276.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.01021, allocations: 29.7 kB / 277 MB, free: 1.484 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.882e-05/0.01025, allocations: 126.9 kB / 277.1 MB, free: 1.355 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.976e-06/0.01026, allocations: 0 / 277.1 MB, free: 1.355 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.01029, allocations: 23.36 kB / 277.1 MB, free: 1.324 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.01043, allocations: 0.4883 MB / 277.6 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-06/0.01044, allocations: 4 kB / 277.6 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-06/0.01044, allocations: 0 / 277.6 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.763e-05/0.01047, allocations: 15.69 kB / 277.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01047, allocations: 0 / 277.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.784e-05/0.01053, allocations: 45.66 kB / 277.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.01054, allocations: 7.984 kB / 277.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.01055, allocations: 7.922 kB / 277.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.01056, allocations: 0 / 277.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.837e-05/0.0106, allocations: 4 kB / 277.7 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.0106, allocations: 3.984 kB / 277.7 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.171e-05/0.01061, allocations: 0 / 277.7 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-06/0.01062, allocations: 3.938 kB / 277.7 MB, free: 0.7227 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.101e-05/0.01069, allocations: 156.8 kB / 277.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.153e-05/0.01074, allocations: 53.66 kB / 277.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.01076, allocations: 8 kB / 277.9 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.01077, allocations: 0 / 277.9 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.01077, allocations: 4 kB / 277.9 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.01077, allocations: 0 / 277.9 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.718e-05/0.01084, allocations: 105.2 kB / 278 MB, free: 364 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.01084, allocations: 0 / 278 MB, free: 364 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.051e-05/0.01088, allocations: 8 kB / 278 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.01088, allocations: 0 / 278 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-06/0.01089, allocations: 0 / 278 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01089, allocations: 4 kB / 278 MB, free: 352 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.01089, allocations: 4 kB / 278 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.866e-05/0.01094, allocations: 76.33 kB / 278.1 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.01095, allocations: 0 / 278.1 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.01096, allocations: 8 kB / 278.1 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.449e-05/0.01098, allocations: 0 / 278.1 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-06/0.01098, allocations: 0 / 278.1 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.01098, allocations: 0 / 278.1 MB, free: 240 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.944e-05/0.01102, allocations: 131.1 kB / 278.2 MB, free: 108 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01102, allocations: 0 / 278.2 MB, free: 108 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001673/0.01119, allocations: 4 kB / 278.2 MB, free: 104 kB / 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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001163/0.0113, allocations: 99.25 kB / 278.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.359e-05/0.01138, allocations: 23.67 kB / 278.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01138, allocations: 0 / 278.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.01138, allocations: 0 / 278.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.01158, allocations: 21.31 kB / 278.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002109/0.01179, allocations: 120.9 kB / 278.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.021e-05/0.01182, allocations: 59.22 kB / 278.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.616e-05/0.01184, allocations: 4 kB / 278.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.517e-05/0.01188, allocations: 74.19 kB / 278.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01189, allocations: 4.062 kB / 278.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of Templates: time 0.002085/0.01397, allocations: 474.9 kB / 279.1 MB, free: 15.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.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.656026529148221]