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.001094/0.001094, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001194/0.001194, allocations: 159.4 kB / 25.61 MB, free: 8.582 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.9604/0.9604, allocations: 177 MB / 205.9 MB, free: 4.457 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.593e-06/1.593e-06, allocations: 0 / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.63e-05, allocations: 2.312 kB / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.006023/0.006049, allocations: 2.005 MB / 276.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.007094, allocations: 0.691 MB / 276.8 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004162/0.01126, allocations: 3.938 kB / 276.8 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.735e-05/0.01131, allocations: 20.64 kB / 276.8 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.01146, allocations: 24.42 kB / 276.8 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.01197, allocations: 134 kB / 277 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.01222, allocations: 196.1 kB / 277.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.01238, allocations: 72.86 kB / 277.2 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.01262, allocations: 131.6 kB / 277.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.01273, allocations: 63.84 kB / 277.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.01276, allocations: 25.59 kB / 277.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.243e-05/0.01281, allocations: 24 kB / 277.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.01285, allocations: 39.89 kB / 277.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.994e-05/0.01291, allocations: 63.83 kB / 277.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.01312, allocations: 156 kB / 277.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.01312, allocations: 0 / 277.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01313, allocations: 0.5312 kB / 277.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.01313, allocations: 0 / 277.7 MB, free: 0.6602 MB / 250.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.0005967/0.01373, allocations: 0.5471 MB / 278.3 MB, free: 64 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.01376, allocations: 12.03 kB / 278.3 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.0139, allocations: 40.78 kB / 278.3 MB, free: 12 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.01714, allocations: 188.8 kB / 278.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.278e-05/0.0172, allocations: 68.3 kB / 278.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.01723, allocations: 16.38 kB / 278.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.01765, allocations: 312.8 kB / 278.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.01766, allocations: 0 / 278.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.01768, allocations: 4 kB / 278.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.01769, allocations: 4 kB / 278.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.761e-05/0.01778, allocations: 46.89 kB / 279 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004587/0.01824, allocations: 395.6 kB / 279.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.01843, allocations: 134.4 kB / 279.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.467e-05/0.01851, allocations: 59.47 kB / 279.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.01852, allocations: 7.938 kB / 279.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001212/0.01864, allocations: 114.7 kB / 279.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.273e-06/0.01865, allocations: 0 / 279.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003104/0.01896, allocations: 185.4 kB / 279.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.01902, allocations: 93.03 kB / 279.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.01913, allocations: 203 kB / 280.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.01915, allocations: 33.7 kB / 280.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.01923, allocations: 159.2 kB / 280.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.01926, allocations: 39.72 kB / 280.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.11e-05/0.01932, allocations: 43.34 kB / 280.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.01944, allocations: 0.4884 MB / 280.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.326e-05/0.0195, allocations: 41.69 kB / 280.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.964e-05/0.01956, allocations: 69.05 kB / 281 MB, free: 13.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.544e-05/0.01964, allocations: 81.05 kB / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01964, allocations: 4 kB / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.003748/0.02339, allocations: 176 kB / 281.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.02342, allocations: 33.7 kB / 281.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.02343, allocations: 0 / 281.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.02344, allocations: 0 / 281.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.02355, allocations: 31.92 kB / 281.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.02355, allocations: 0 / 281.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.618e-05/0.02363, allocations: 19.98 kB / 281.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.02364, allocations: 4 kB / 281.3 MB, free: 12.73 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.0001001/0.02374, allocations: 176.5 kB / 281.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.02389, allocations: 101.4 kB / 281.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.02393, allocations: 16.78 kB / 281.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.02394, allocations: 4 kB / 281.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.02394, allocations: 0 / 281.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.02394, allocations: 4 kB / 281.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003447/0.02429, allocations: 381.7 kB / 282 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.02429, allocations: 0 / 282 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.0244, allocations: 43.91 kB / 282 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.0244, allocations: 0 / 282 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.02442, allocations: 11.98 kB / 282.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.02442, allocations: 0 / 282.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.02442, allocations: 0 / 282.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001666/0.02459, allocations: 249.7 kB / 282.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.02461, allocations: 15.84 kB / 282.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.02463, allocations: 8 kB / 282.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.02473, allocations: 19.98 kB / 282.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.02478, allocations: 15.97 kB / 282.4 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.0248, allocations: 11.98 kB / 282.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001145/0.02491, allocations: 144.8 kB / 282.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02491, allocations: 0 / 282.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.02515, allocations: 35.89 kB / 282.5 MB, free: 11.45 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.0001008/0.02525, allocations: 111.2 kB / 282.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002083/0.02546, allocations: 153.4 kB / 282.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.02546, allocations: 4.062 kB / 282.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.226e-05/0.02552, allocations: 47.58 kB / 282.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.02587, allocations: 59.53 kB / 282.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005837/0.02646, allocations: 308 kB / 283.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.818e-05/0.02651, allocations: 87.61 kB / 283.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.11e-05/0.02656, allocations: 17.14 kB / 283.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.02667, allocations: 94.19 kB / 283.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02667, allocations: 0 / 283.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of Templates: time 0.006952/0.03362, allocations: 2.123 MB / 285.5 MB, free: 8.414 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.8735301857814193]