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.001301/0.001301, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001425/0.001425, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 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.484/1.484, allocations: 230.5 MB / 258.1 MB, free: 7.789 MB / 206.1 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 0.001984/0.001984, allocations: 68.08 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2435, allocations: 53.41 MB / 432.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003913/0.2474, allocations: 1.95 MB / 434.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2488, allocations: 0.6661 MB / 435 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.2489, allocations: 7.938 kB / 435 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.852e-05/0.249, allocations: 23.67 kB / 435 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.2491, allocations: 27.72 kB / 435.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004545/0.2495, allocations: 123.8 kB / 435.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002751/0.2498, allocations: 204 kB / 435.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.25, allocations: 68.48 kB / 435.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.2502, allocations: 99.62 kB / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2503, allocations: 75.61 kB / 435.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.963e-05/0.2504, allocations: 20 kB / 435.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.422e-05/0.2505, allocations: 31.98 kB / 435.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.811e-05/0.2505, allocations: 39.84 kB / 435.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.2506, allocations: 67.66 kB / 435.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2509, allocations: 230 kB / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2509, allocations: 0 / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2509, allocations: 0 / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2509, allocations: 0 / 436 MB, free: 2.906 MB / 334.1 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.0008789/0.2518, allocations: 473.2 kB / 436.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2518, allocations: 12.03 kB / 436.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.252, allocations: 32.78 kB / 436.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.2524, allocations: 182.1 kB / 436.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.51e-05/0.2525, allocations: 68.3 kB / 436.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.396e-05/0.2525, allocations: 19.94 kB / 436.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007224/0.2532, allocations: 356.7 kB / 437.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2532, allocations: 0 / 437.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.2533, allocations: 7.938 kB / 437.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.2533, allocations: 4 kB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.2537, allocations: 131.9 kB / 437.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006873/0.2544, allocations: 369 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.2549, allocations: 189.1 kB / 437.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.2551, allocations: 93.66 kB / 437.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.2551, allocations: 4 kB / 437.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003121/0.2555, allocations: 149 kB / 438 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.2555, allocations: 0 / 438 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008267/0.2563, allocations: 289.5 kB / 438.3 MB, free: 404 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.2564, allocations: 89.09 kB / 438.4 MB, free: 296 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.2565, allocations: 153.5 kB / 438.6 MB, free: 132 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.2565, allocations: 37.69 kB / 438.6 MB, free: 88 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2566, allocations: 116.5 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.2567, allocations: 35.73 kB / 438.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-05/0.2568, allocations: 49.64 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2569, allocations: 334.8 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.2571, allocations: 89.89 kB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.2574, allocations: 173.1 kB / 439.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004669/0.2579, allocations: 234.9 kB / 439.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2579, allocations: 4 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000617/0.2585, allocations: 308.6 kB / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.2585, allocations: 34.05 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2585, allocations: 4 kB / 440 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.2586, allocations: 4 kB / 440 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.2588, allocations: 51.84 kB / 440 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2588, allocations: 4 kB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.2589, allocations: 35.81 kB / 440 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.259, allocations: 15.94 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$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 (26): * Single equations (assignments): 25 * 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.0001639/0.2591, allocations: 145.5 kB / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.2593, allocations: 97.58 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.064e-05/0.2594, allocations: 32.7 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2594, allocations: 4 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.2594, allocations: 0 / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2594, allocations: 0 / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007576/0.2602, allocations: 417.9 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2602, allocations: 0 / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.2604, allocations: 43.91 kB / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2604, allocations: 0 / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.2604, allocations: 8 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2604, allocations: 0 / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2604, allocations: 0 / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005965/0.261, allocations: 325.1 kB / 441.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.261, allocations: 19.91 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.2611, allocations: 3.984 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.2612, allocations: 23.98 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.2613, allocations: 23.91 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.2613, allocations: 4 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.12e-05/0.2614, allocations: 124.1 kB / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2614, allocations: 0 / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.2617, allocations: 35.94 kB / 441.3 MB, free: 13.13 MB / 350.1 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.0001377/0.2618, allocations: 103.2 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005871/0.2624, allocations: 272.8 kB / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2624, allocations: 0 / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.2626, allocations: 55.95 kB / 441.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.263, allocations: 64.44 kB / 441.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007051/0.2637, allocations: 347.2 kB / 442.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.2639, allocations: 125 kB / 442.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.279e-05/0.264, allocations: 23.42 kB / 442.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.264, allocations: 3.938 kB / 442.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Templates: time 0.004262/0.2682, allocations: 2.242 MB / 444.6 MB, free: 9.84 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 6.818194915074855]