Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001034/0.001034, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001118/0.001118, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9373/0.9373, allocations: 177 MB / 204.8 MB, free: 5.59 MB / 186.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.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.28e-05/3.431e-05, allocations: 5.266 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002785/0.002819, allocations: 2.033 MB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.003826, allocations: 0.6893 MB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.00393, allocations: 3.938 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.378e-05/0.003973, allocations: 19.73 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.004082, allocations: 31.73 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.00447, allocations: 123.6 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.004678, allocations: 212 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.004849, allocations: 64.88 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.005095, allocations: 131.7 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.766e-05/0.005192, allocations: 67.78 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.005223, allocations: 23.98 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.531e-05/0.005279, allocations: 28 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.644e-05/0.005315, allocations: 39.84 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.005374, allocations: 59.83 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.005592, allocations: 159.3 kB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005595, allocations: 0 / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.005596, allocations: 0 / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.005602, allocations: 0 / 276.6 MB, free: 13.79 MB / 266.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.0006606/0.006263, allocations: 0.5387 MB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.006308, allocations: 12.03 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.00647, allocations: 44.78 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.006706, allocations: 188.8 kB / 277.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.833e-05/0.006784, allocations: 68.3 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.006808, allocations: 16.38 kB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.007284, allocations: 327.8 kB / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.007293, allocations: 0 / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.007312, allocations: 11.98 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.007321, allocations: 4 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.007432, allocations: 51.95 kB / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.007914, allocations: 407 kB / 278.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.008127, allocations: 158.2 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.285e-05/0.00822, allocations: 67.34 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.008248, allocations: 4 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001367/0.008385, allocations: 114.7 kB / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.008386, allocations: 0 / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003246/0.008711, allocations: 189.6 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.00877, allocations: 97.05 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.008882, allocations: 213.8 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.0089, allocations: 29.64 kB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.008975, allocations: 163.2 kB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.008999, allocations: 35.73 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.009051, allocations: 39.36 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.009174, allocations: 0.4923 MB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.931e-05/0.009233, allocations: 45.69 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.137e-05/0.009294, allocations: 77.05 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.283e-05/0.009387, allocations: 88.73 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.009391, allocations: 3.938 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001731/0.009564, allocations: 176.9 kB / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.447e-05/0.009598, allocations: 33.7 kB / 280.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.009603, allocations: 0 / 280.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.00962, allocations: 0 / 280.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.009726, allocations: 27.92 kB / 280.2 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.00974, allocations: 3.984 kB / 280.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.009806, allocations: 23.89 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.00982, allocations: 12.02 kB / 280.3 MB, free: 9.742 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: 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.641e-05/0.009917, allocations: 176.5 kB / 280.4 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.01003, allocations: 105.5 kB / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.546e-05/0.01008, allocations: 16.78 kB / 280.6 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01008, allocations: 4 kB / 280.6 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.01009, allocations: 3.984 kB / 280.6 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01009, allocations: 7.984 kB / 280.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.01043, allocations: 397.3 kB / 281 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.01044, allocations: 3.984 kB / 281 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.516e-05/0.01053, allocations: 39.92 kB / 281 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.01054, allocations: 7.938 kB / 281 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.01055, allocations: 3.984 kB / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.01056, allocations: 4 kB / 281 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.01056, allocations: 0 / 281 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.0108, allocations: 325.7 kB / 281.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.746e-05/0.01082, allocations: 11.91 kB / 281.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.01085, allocations: 11.98 kB / 281.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.758e-05/0.01093, allocations: 15.98 kB / 281.4 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.01098, allocations: 11.98 kB / 281.4 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.011, allocations: 11.98 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.716e-05/0.01107, allocations: 145 kB / 281.5 MB, free: 8.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01107, allocations: 0 / 281.5 MB, free: 8.387 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001768/0.01124, allocations: 43.92 kB / 281.6 MB, free: 8.344 MB / 266.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 0.0001022/0.01134, allocations: 103.2 kB / 281.7 MB, free: 8.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.01157, allocations: 173.2 kB / 281.9 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.01157, allocations: 4 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.477e-05/0.01163, allocations: 43.67 kB / 281.9 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.01192, allocations: 67.89 kB / 282 MB, free: 7.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006826/0.0126, allocations: 306.6 kB / 282.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.253e-05/0.01266, allocations: 91.7 kB / 282.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.982e-05/0.0127, allocations: 9.156 kB / 282.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.347e-05/0.01275, allocations: 20.48 kB / 282.4 MB, free: 7.457 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01275, allocations: 4 kB / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of Templates: time 0.003921/0.01667, allocations: 1.924 MB / 284.3 MB, free: 5.551 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.8632155512459576]