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.0008913/0.0008913, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004168/0.004168, allocations: 160.9 kB / 24.7 MB, free: 9.426 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.8857/0.8857, allocations: 177.2 MB / 205 MB, free: 5.719 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.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.693e-06/1.693e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.86e-05, allocations: 3.266 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002074/0.002093, allocations: 1.972 MB / 327.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007835/0.002876, allocations: 0.6659 MB / 328.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.002965, allocations: 4 kB / 328.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.048e-05/0.003005, allocations: 19.73 kB / 328.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.222e-05/0.003097, allocations: 31.72 kB / 328.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.003441, allocations: 131.5 kB / 328.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.003624, allocations: 204 kB / 328.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.003776, allocations: 68.88 kB / 328.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.003969, allocations: 135.6 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.023e-05/0.004059, allocations: 63.8 kB / 329.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.004087, allocations: 20 kB / 329.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.004128, allocations: 24 kB / 329.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.929e-05/0.004167, allocations: 47.83 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/0.004222, allocations: 63.81 kB / 329.3 MB, free: 12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.004451, allocations: 231.2 kB / 329.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.004453, allocations: 0 / 329.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.004454, allocations: 0 / 329.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.004458, allocations: 0 / 329.5 MB, free: 11.77 MB / 298.7 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.000592/0.00505, allocations: 469 kB / 329.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.005084, allocations: 12.03 kB / 329.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.005211, allocations: 36.78 kB / 330 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.005422, allocations: 178 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/0.00549, allocations: 64.3 kB / 330.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.005511, allocations: 16.38 kB / 330.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.005988, allocations: 357 kB / 330.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.005998, allocations: 3.938 kB / 330.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.006014, allocations: 8 kB / 330.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.00602, allocations: 4 kB / 330.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.00626, allocations: 135.8 kB / 330.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004285/0.006689, allocations: 357 kB / 331.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.006975, allocations: 193.3 kB / 331.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.007113, allocations: 97.59 kB / 331.4 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.007135, allocations: 4 kB / 331.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.007324, allocations: 145.2 kB / 331.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.007325, allocations: 0 / 331.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004599/0.007785, allocations: 281.3 kB / 331.8 MB, free: 9.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.007844, allocations: 93.97 kB / 331.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.385e-05/0.007938, allocations: 154.4 kB / 332 MB, free: 9.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.007957, allocations: 29.7 kB / 332.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.92e-05/0.008016, allocations: 116.5 kB / 332.2 MB, free: 8.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.008038, allocations: 35.81 kB / 332.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.00809, allocations: 37.69 kB / 332.2 MB, free: 8.773 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.008177, allocations: 330.8 kB / 332.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.008284, allocations: 85.61 kB / 332.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.00839, allocations: 99.36 kB / 332.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.008563, allocations: 139.3 kB / 332.9 MB, free: 8.094 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.008567, allocations: 3.938 kB / 332.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002536/0.00882, allocations: 240.9 kB / 333.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.008847, allocations: 29.7 kB / 333.2 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.008854, allocations: 7.984 kB / 333.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.008865, allocations: 0 / 333.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.19e-05/0.008947, allocations: 23.97 kB / 333.2 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.008953, allocations: 4 kB / 333.2 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.009024, allocations: 27.95 kB / 333.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.009039, allocations: 4 kB / 333.2 MB, free: 7.734 MB / 298.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: 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 9.431e-05/0.009133, allocations: 145.7 kB / 333.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.009242, allocations: 105.5 kB / 333.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.009278, allocations: 20.78 kB / 333.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.009281, allocations: 4 kB / 333.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.009285, allocations: 0 / 333.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.009289, allocations: 0 / 333.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003821/0.009671, allocations: 421.9 kB / 333.9 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.009672, allocations: 0 / 333.9 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.889e-05/0.009761, allocations: 39.97 kB / 333.9 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.009763, allocations: 3.938 kB / 333.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.009776, allocations: 11.98 kB / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.009777, allocations: 0 / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.009778, allocations: 0 / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.01009, allocations: 331.9 kB / 334.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.0101, allocations: 15.91 kB / 334.3 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.01012, allocations: 4 kB / 334.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.06e-05/0.0102, allocations: 23.97 kB / 334.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.01025, allocations: 11.98 kB / 334.3 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.01026, allocations: 7.984 kB / 334.3 MB, free: 6.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.959e-05/0.01031, allocations: 117.8 kB / 334.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01031, allocations: 0 / 334.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001619/0.01048, allocations: 31.94 kB / 334.5 MB, free: 6.395 MB / 298.7 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 7.986e-05/0.01056, allocations: 115.7 kB / 334.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.01086, allocations: 232.9 kB / 334.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01086, allocations: 0 / 334.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.939e-05/0.01095, allocations: 55.95 kB / 334.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.01122, allocations: 66.89 kB / 334.9 MB, free: 5.906 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.01164, allocations: 356.1 kB / 335.3 MB, free: 5.527 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.365e-05/0.01171, allocations: 116.3 kB / 335.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.165e-05/0.01176, allocations: 24.5 kB / 335.4 MB, free: 5.367 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.01176, allocations: 0 / 335.4 MB, free: 5.367 MB / 298.7 MB Notification: Performance of Templates: time 0.002496/0.01426, allocations: 2.144 MB / 337.6 MB, free: 3.234 MB / 298.7 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] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 4.265721234492958]