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.00145/0.00145, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001476/0.001476, allocations: 156.9 kB / 24.27 MB, free: 172 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 1.567/1.567, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 4.709e-06/4.709e-06, allocations: 3.984 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.717e-05/4.188e-05, allocations: 2.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004073/0.004115, allocations: 1.963 MB / 274.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.00566, allocations: 0.666 MB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.005783, allocations: 7.938 kB / 274.8 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.728e-05/0.00584, allocations: 15.8 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.005982, allocations: 35.66 kB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.006498, allocations: 123.6 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000306/0.006804, allocations: 212 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.007006, allocations: 68.88 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/0.007328, allocations: 127.6 kB / 275.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.007467, allocations: 71.77 kB / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.00751, allocations: 20 kB / 275.5 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.145e-05/0.007582, allocations: 24 kB / 275.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.007642, allocations: 39.84 kB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.694e-05/0.007739, allocations: 59.83 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.008104, allocations: 231.3 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.00811, allocations: 3.938 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.008112, allocations: 4 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.008119, allocations: 0 / 275.8 MB, free: 14.14 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.0009945/0.009113, allocations: 469.2 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.009154, allocations: 8.031 kB / 276.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002188/0.009373, allocations: 48.78 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.009742, allocations: 186 kB / 276.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.009856, allocations: 64.3 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.009892, allocations: 16.38 kB / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008114/0.0107, allocations: 357 kB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01072, allocations: 3.938 kB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.01075, allocations: 12 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.01075, allocations: 4 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.0112, allocations: 127.9 kB / 277.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.01189, allocations: 353 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.01242, allocations: 193.3 kB / 277.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.01269, allocations: 105.6 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.01272, allocations: 4 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000349/0.01307, allocations: 149.1 kB / 277.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.01307, allocations: 0 / 277.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008894/0.01396, allocations: 293.3 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/0.01406, allocations: 89.11 kB / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.01423, allocations: 160.7 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.01426, allocations: 25.7 kB / 278.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.01437, allocations: 120.5 kB / 278.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.01442, allocations: 39.67 kB / 278.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.01452, allocations: 33.7 kB / 278.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.01471, allocations: 322.8 kB / 279 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.01494, allocations: 81.66 kB / 279 MB, free: 10.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.01516, allocations: 102 kB / 279.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.01551, allocations: 143 kB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.01552, allocations: 3.938 kB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006168/0.01614, allocations: 240.9 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/0.01618, allocations: 37.77 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01619, allocations: 0 / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.0162, allocations: 0 / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.01638, allocations: 27.97 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.01638, allocations: 4 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.01652, allocations: 15.92 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.01655, allocations: 11.97 kB / 279.6 MB, free: 10.08 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.0001615/0.01671, allocations: 137.7 kB / 279.7 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.01695, allocations: 117.5 kB / 279.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.01701, allocations: 24.78 kB / 279.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.01701, allocations: 0 / 279.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.01702, allocations: 3.984 kB / 279.9 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.01703, allocations: 4 kB / 279.9 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007417/0.01777, allocations: 409.9 kB / 280.3 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01777, allocations: 0 / 280.3 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.01797, allocations: 39.95 kB / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.01798, allocations: 4 kB / 280.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.01799, allocations: 11.94 kB / 280.3 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.018, allocations: 0 / 280.3 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.393e-06/0.018, allocations: 4 kB / 280.3 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006397/0.01864, allocations: 333.8 kB / 280.7 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.634e-05/0.01867, allocations: 15.84 kB / 280.7 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.0187, allocations: 8 kB / 280.7 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.01889, allocations: 19.97 kB / 280.7 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.01897, allocations: 23.97 kB / 280.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.01899, allocations: 8 kB / 280.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.994e-05/0.01909, allocations: 120.1 kB / 280.9 MB, free: 8.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01909, allocations: 0 / 280.9 MB, free: 8.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002648/0.01935, allocations: 31.94 kB / 280.9 MB, free: 8.719 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.0001577/0.01951, allocations: 107.2 kB / 281 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005798/0.02009, allocations: 240.7 kB / 281.2 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.02009, allocations: 0 / 281.2 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.02034, allocations: 59.89 kB / 281.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.02083, allocations: 72.14 kB / 281.4 MB, free: 8.223 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007188/0.02155, allocations: 318 kB / 281.7 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001497/0.0217, allocations: 120.1 kB / 281.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.234e-05/0.02176, allocations: 13.14 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.328e-05/0.02183, allocations: 24.48 kB / 281.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02184, allocations: 0 / 281.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of Templates: time 0.005537/0.02737, allocations: 1.932 MB / 283.8 MB, free: 5.801 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.526748272008263]