Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001728/0.001728, allocations: 84.47 kB / 20.68 MB, free: 1.023 MB / 14.72 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.00216/0.00216, allocations: 168 kB / 23.96 MB, free: 4.141 MB / 14.72 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.409/1.409, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.846e-05, allocations: 5.656 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003624/0.003652, allocations: 1.964 MB / 327 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.00524, allocations: 0.6755 MB / 327.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.005398, allocations: 7.625 kB / 327.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.447e-05/0.005473, allocations: 16.08 kB / 327.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.00563, allocations: 28.31 kB / 327.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006499/0.00628, allocations: 121.1 kB / 327.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.006693, allocations: 212.7 kB / 328.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.006992, allocations: 65.55 kB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.007404, allocations: 139.6 kB / 328.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.007592, allocations: 66.94 kB / 328.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.992e-05/0.007642, allocations: 19.66 kB / 328.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.265e-05/0.007724, allocations: 23.91 kB / 328.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.523e-05/0.0078, allocations: 47.44 kB / 328.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.007913, allocations: 57.75 kB / 328.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004552/0.008368, allocations: 234.5 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.008375, allocations: 4 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.008377, allocations: 0.7031 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.008388, allocations: 1.188 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001048/0.009436, allocations: 469.8 kB / 329.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.009483, allocations: 10.75 kB / 329.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.009685, allocations: 30.47 kB / 329.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.01004, allocations: 175.1 kB / 329.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.01015, allocations: 72.75 kB / 329.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.01019, allocations: 16.09 kB / 329.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009171/0.01111, allocations: 362.1 kB / 329.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.01112, allocations: 0 / 329.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.01115, allocations: 5.938 kB / 329.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.01116, allocations: 4.344 kB / 329.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004818/0.01164, allocations: 130.8 kB / 330 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007863/0.01243, allocations: 357.4 kB / 330.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000607/0.01304, allocations: 196.5 kB / 330.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.01334, allocations: 102.2 kB / 330.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.01338, allocations: 3.25 kB / 330.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/0.01373, allocations: 145.7 kB / 330.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.01374, allocations: 1.219 kB / 330.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009133/0.01465, allocations: 285 kB / 331 MB, free: 12.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.01475, allocations: 88.3 kB / 331.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.01492, allocations: 155 kB / 331.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.01496, allocations: 31.89 kB / 331.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.01506, allocations: 119 kB / 331.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.01511, allocations: 40.11 kB / 331.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.579e-05/0.01518, allocations: 38.08 kB / 331.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.01536, allocations: 325.5 kB / 331.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.01559, allocations: 86.84 kB / 331.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.01581, allocations: 101.1 kB / 332 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.01618, allocations: 140.4 kB / 332.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.01619, allocations: 5.156 kB / 332.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005292/0.01672, allocations: 232.1 kB / 332.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.01676, allocations: 32.45 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.01676, allocations: 0 / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.01678, allocations: 1.375 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.01694, allocations: 33.47 kB / 332.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.01695, allocations: 2.125 kB / 332.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.01709, allocations: 17.8 kB / 332.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.01712, allocations: 12.45 kB / 332.5 MB, free: 11.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.0001603/0.01728, allocations: 132.3 kB / 332.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.0175, allocations: 108 kB / 332.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.447e-05/0.01757, allocations: 23.05 kB / 332.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.01758, allocations: 2.562 kB / 332.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.01759, allocations: 5.234 kB / 332.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.01759, allocations: 5.312 kB / 332.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008393/0.01843, allocations: 411 kB / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01844, allocations: 0 / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.01864, allocations: 44.14 kB / 333.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.01865, allocations: 1.094 kB / 333.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.01867, allocations: 6.125 kB / 333.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01867, allocations: 4.969 kB / 333.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.01867, allocations: 9.188 kB / 333.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.01936, allocations: 325.3 kB / 333.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.01938, allocations: 12.5 kB / 333.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.01942, allocations: 6.625 kB / 333.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.0196, allocations: 21.94 kB / 333.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/0.01969, allocations: 12.88 kB / 333.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.01971, allocations: 10.25 kB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000112/0.01983, allocations: 121 kB / 333.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01983, allocations: 3.938 kB / 333.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.0201, allocations: 32.44 kB / 333.7 MB, free: 10.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001717/0.02027, allocations: 106.7 kB / 333.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006134/0.02089, allocations: 232.2 kB / 334.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.02089, allocations: 0 / 334.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.02111, allocations: 67.39 kB / 334.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.02157, allocations: 63.97 kB / 334.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007585/0.02233, allocations: 324.1 kB / 334.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.02247, allocations: 117.6 kB / 334.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.615e-05/0.02253, allocations: 11.86 kB / 334.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.02262, allocations: 20.5 kB / 334.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.02262, allocations: 0 / 334.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Templates: time 0.00619/0.02881, allocations: 1.909 MB / 336.6 MB, free: 8.773 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.465580977499485]