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.001368/0.001368, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001238/0.001238, allocations: 160.2 kB / 24.91 MB, free: 8.77 MB / 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.001/1.001, allocations: 177 MB / 205.2 MB, free: 5.461 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.964e-06/1.964e-06, allocations: 0 / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.609e-05/2.805e-05, allocations: 2.312 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003913/0.003941, allocations: 2.016 MB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.005206, allocations: 0.7047 MB / 276.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.005328, allocations: 7.938 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.387e-05/0.005372, allocations: 15.8 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.005498, allocations: 39.66 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.005968, allocations: 119.6 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000235/0.006203, allocations: 208 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.006358, allocations: 78.12 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/0.006689, allocations: 127.7 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.006834, allocations: 67.78 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.00688, allocations: 20 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.888e-05/0.006948, allocations: 24 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.577e-05/0.007004, allocations: 51.81 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.433e-05/0.007078, allocations: 51.91 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.007381, allocations: 151.4 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.007385, allocations: 0 / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.007387, allocations: 0 / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.007396, allocations: 4 kB / 277 MB, free: 13.56 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.0008095/0.008205, allocations: 431.9 kB / 277.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.008259, allocations: 8.031 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.008504, allocations: 48.84 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.008803, allocations: 162 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.008889, allocations: 68.3 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.008925, allocations: 20.31 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.009517, allocations: 301 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.009533, allocations: 3.938 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.009556, allocations: 4 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.009566, allocations: 4 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.009687, allocations: 39.97 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006126/0.0103, allocations: 252.8 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.01055, allocations: 128.9 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.967e-05/0.01063, allocations: 49.64 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.01066, allocations: 4.188 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.01082, allocations: 125 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.01082, allocations: 0 / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002938/0.01111, allocations: 133.5 kB / 278.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.0112, allocations: 93.11 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.01132, allocations: 142.6 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.01135, allocations: 33.7 kB / 279 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.01142, allocations: 112.5 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.01146, allocations: 39.67 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.01152, allocations: 33.69 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.01163, allocations: 322.8 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.101e-05/0.0117, allocations: 37.69 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/0.01177, allocations: 67.39 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.01187, allocations: 83.34 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.01188, allocations: 0 / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001982/0.01207, allocations: 148.9 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.01212, allocations: 33.69 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.01213, allocations: 4 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.01214, allocations: 0 / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.01228, allocations: 19.98 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.01229, allocations: 4 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.205e-05/0.01238, allocations: 19.92 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.01239, allocations: 8.031 kB / 280 MB, free: 10.36 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 0.000114/0.0125, allocations: 129.8 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.01264, allocations: 77.55 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.267e-05/0.01269, allocations: 20.77 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.01269, allocations: 4 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.0127, allocations: 0 / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.0127, allocations: 0 / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003899/0.01309, allocations: 275.5 kB / 280.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.0131, allocations: 4 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.01324, allocations: 43.91 kB / 280.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.01325, allocations: 0 / 280.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.01326, allocations: 4 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.01327, allocations: 0 / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.01327, allocations: 0 / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.01346, allocations: 188.2 kB / 280.7 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.389e-05/0.01348, allocations: 11.91 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.01351, allocations: 8 kB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.01364, allocations: 15.98 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.01369, allocations: 15.97 kB / 280.7 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.01371, allocations: 8 kB / 280.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.393e-05/0.01375, allocations: 35.05 kB / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01375, allocations: 0 / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002734/0.01403, allocations: 31.94 kB / 280.8 MB, free: 9.449 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.0001452/0.01417, allocations: 88.36 kB / 280.9 MB, free: 9.355 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002432/0.01442, allocations: 165.7 kB / 281.1 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.01442, allocations: 0 / 281.1 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.07e-05/0.01449, allocations: 40.84 kB / 281.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.01483, allocations: 55.59 kB / 281.2 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/0.01562, allocations: 299.5 kB / 281.4 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.769e-05/0.01569, allocations: 83.77 kB / 281.5 MB, free: 8.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.426e-05/0.01575, allocations: 13.14 kB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.01587, allocations: 75.36 kB / 281.6 MB, free: 8.566 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01588, allocations: 4 kB / 281.6 MB, free: 8.562 MB / 266.7 MB Notification: Performance of Templates: time 0.005304/0.02118, allocations: 1.967 MB / 283.6 MB, free: 6.637 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.9422748810611665]