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.001194/0.001194, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001283/0.001283, allocations: 161.5 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 0.9715/0.9715, allocations: 177 MB / 205.2 MB, free: 5.422 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.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.188e-05/1.35e-05, allocations: 2.312 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002538/0.002552, allocations: 2.052 MB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009337/0.003485, allocations: 0.7202 MB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.724e-05/0.003583, allocations: 4 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.246e-05/0.003625, allocations: 19.73 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.691e-05/0.003722, allocations: 19.75 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.004049, allocations: 127.6 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.004244, allocations: 216 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.004394, allocations: 70.12 kB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.004607, allocations: 131.7 kB / 276.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.466e-05/0.004702, allocations: 67.78 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.004731, allocations: 20 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.739e-05/0.004788, allocations: 27.98 kB / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.385e-05/0.004822, allocations: 39.89 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.724e-05/0.004869, allocations: 55.83 kB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.00505, allocations: 159.3 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.005052, allocations: 0 / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005052, allocations: 0 / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.337e-06/0.005056, allocations: 4 kB / 277.1 MB, free: 13.44 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.0004892/0.005545, allocations: 431.9 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.005577, allocations: 8.031 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.005696, allocations: 36.91 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.005885, allocations: 170 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/0.005936, allocations: 64.3 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.005953, allocations: 16.38 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.006289, allocations: 304.4 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.006297, allocations: 4 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.006311, allocations: 4 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.006321, allocations: 4 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.001e-05/0.006391, allocations: 43.91 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003329/0.006724, allocations: 264.8 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.00686, allocations: 109 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.995e-05/0.00691, allocations: 53.7 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.006928, allocations: 4.188 kB / 278.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.007038, allocations: 120.9 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.00704, allocations: 4.125 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002006/0.007241, allocations: 129.6 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.007293, allocations: 96.98 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.351e-05/0.007367, allocations: 150.6 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.007386, allocations: 33.7 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.007429, allocations: 108.5 kB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.00745, allocations: 39.67 kB / 279.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.007492, allocations: 33.69 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.222e-05/0.007564, allocations: 330.8 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.416e-05/0.007598, allocations: 41.69 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.061e-05/0.007639, allocations: 59.34 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.687e-05/0.007706, allocations: 83.3 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.007708, allocations: 0 / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001105/0.007818, allocations: 145 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.00784, allocations: 29.7 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.007845, allocations: 4 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.007856, allocations: 0 / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.25e-05/0.007949, allocations: 31.92 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-06/0.007951, allocations: 0 / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.45e-05/0.008006, allocations: 11.98 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.008016, allocations: 7.984 kB / 280 MB, free: 10.25 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 7.148e-05/0.008088, allocations: 125.8 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.301e-05/0.008161, allocations: 89.5 kB / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.008194, allocations: 20.78 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.008197, allocations: 0 / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.008199, allocations: 4 kB / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.008204, allocations: 3.984 kB / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.008425, allocations: 270.5 kB / 280.5 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.008426, allocations: 0 / 280.5 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.008511, allocations: 35.97 kB / 280.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.008513, allocations: 0 / 280.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.008524, allocations: 11.98 kB / 280.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.008525, allocations: 4 kB / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.008526, allocations: 0 / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.008659, allocations: 181.2 kB / 280.8 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.207e-05/0.008671, allocations: 15.91 kB / 280.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.008689, allocations: 4 kB / 280.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.852e-05/0.008758, allocations: 15.98 kB / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.008798, allocations: 19.97 kB / 280.8 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.008808, allocations: 4 kB / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.352e-05/0.008832, allocations: 31.06 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008832, allocations: 8 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001398/0.008972, allocations: 39.92 kB / 280.9 MB, free: 9.32 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 6.758e-05/0.009039, allocations: 88.34 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000154/0.009193, allocations: 169.3 kB / 281.2 MB, free: 9.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.009197, allocations: 4 kB / 281.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.828e-05/0.009235, allocations: 28.84 kB / 281.2 MB, free: 9.008 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.009435, allocations: 55.55 kB / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.0099, allocations: 303.5 kB / 281.5 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.421e-05/0.009944, allocations: 83.77 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.167e-05/0.009986, allocations: 13.14 kB / 281.6 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-05/0.01007, allocations: 75.36 kB / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01007, allocations: 0 / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of Templates: time 0.003465/0.01354, allocations: 1.963 MB / 283.7 MB, free: 6.516 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 -s gbode -gbm=radauIIA3 -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.5440086941234767]