Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 203.7 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2453, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003396/0.2487, allocations: 1.96 MB / 433 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.25, allocations: 0.67 MB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.2501, allocations: 3.938 kB / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.53e-05/0.2501, allocations: 15.8 kB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.2503, allocations: 23.75 kB / 433.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.2507, allocations: 127.7 kB / 433.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.251, allocations: 208 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2511, allocations: 70.52 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.2513, allocations: 95.69 kB / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.2515, allocations: 91.61 kB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.2515, allocations: 16 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.29e-05/0.2516, allocations: 24 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.555e-05/0.2516, allocations: 51.78 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.206e-05/0.2517, allocations: 71.64 kB / 434.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.252, allocations: 219.1 kB / 434.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.252, allocations: 3.938 kB / 434.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.252, allocations: 0 / 434.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2521, allocations: 0 / 434.7 MB, free: 3.02 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.0009241/0.253, allocations: 485.2 kB / 435.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.253, allocations: 8.031 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.408e-05/0.2531, allocations: 50.73 kB / 435.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.2533, allocations: 28.8 kB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.2536, allocations: 174.8 kB / 435.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.335e-05/0.2537, allocations: 80.03 kB / 435.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.2537, allocations: 16 kB / 435.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000749/0.2545, allocations: 356.7 kB / 435.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2545, allocations: 0 / 435.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2545, allocations: 4 kB / 435.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.2545, allocations: 4 kB / 435.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.2549, allocations: 127.9 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006674/0.2556, allocations: 400.5 kB / 436.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005118/0.2561, allocations: 189.1 kB / 436.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.2563, allocations: 97.66 kB / 436.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2564, allocations: 11.94 kB / 436.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.2567, allocations: 153.1 kB / 436.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.2567, allocations: 0 / 436.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008348/0.2575, allocations: 281.3 kB / 437.1 MB, free: 408 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.2576, allocations: 85.11 kB / 437.2 MB, free: 304 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.2578, allocations: 160.1 kB / 437.4 MB, free: 132 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.2578, allocations: 29.7 kB / 437.4 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.2579, allocations: 112.5 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.2579, allocations: 35.8 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.529e-05/0.258, allocations: 53.69 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2582, allocations: 330.8 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.2584, allocations: 85.89 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.2587, allocations: 184.3 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.2591, allocations: 235.4 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2591, allocations: 4 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005862/0.2597, allocations: 300.9 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.2597, allocations: 41.7 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2597, allocations: 0 / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2598, allocations: 7.984 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.26, allocations: 43.91 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.26, allocations: 7.938 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.2601, allocations: 39.77 kB / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.2602, allocations: 8 kB / 438.8 MB, free: 14.5 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.0001412/0.2603, allocations: 149.5 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.2605, allocations: 113.5 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.793e-05/0.2606, allocations: 16.72 kB / 439.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.2606, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.2606, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2606, allocations: 7.938 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007317/0.2613, allocations: 437.4 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2613, allocations: 4 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.2615, allocations: 35.97 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.2615, allocations: 4 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.2615, allocations: 11.92 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2615, allocations: 7.938 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2615, allocations: 0 / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005918/0.2621, allocations: 332.7 kB / 439.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.2622, allocations: 19.84 kB / 440 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.2622, allocations: 7.938 kB / 440 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.2624, allocations: 23.98 kB / 440 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.2624, allocations: 11.97 kB / 440 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.2625, allocations: 11.98 kB / 440 MB, free: 13.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.169e-05/0.2625, allocations: 107.3 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2625, allocations: 0 / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000298/0.2628, allocations: 36 kB / 440.2 MB, free: 13.1 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.001175/0.264, allocations: 0.9579 MB / 441.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005627/0.2646, allocations: 268.6 kB / 441.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2646, allocations: 4 kB / 441.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.2648, allocations: 68.56 kB / 441.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.2652, allocations: 63.94 kB / 441.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002964/0.2682, allocations: 2.266 MB / 443.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.2683, allocations: 112.4 kB / 443.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.025e-05/0.2684, allocations: 17.48 kB / 443.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2685, allocations: 55.41 kB / 444 MB, free: 9.047 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2685, allocations: 0 / 444 MB, free: 9.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/0.3005, allocations: 4.473 MB / 448.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.88, allocations: 11.08 kB / 448.4 MB, free: 4.727 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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:angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,previous(rotationalClock.changed.u),rotationalClock.abs1.generateEvent,rotationalClock.abs1.u,rotationalClock.abs1.y,rotationalClock.abs2.generateEvent,rotationalClock.abs2.u,rotationalClock.abs2.y,rotationalClock.angle,rotationalClock.angular_offset.u,rotationalClock.angular_offset.y,rotationalClock.angular_offset.y_start,rotationalClock.cast.u,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.direction_sign.u,rotationalClock.direction_sign.y,rotationalClock.less.u1,rotationalClock.less.u2,rotationalClock.less.y,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.sub.u1,rotationalClock.sub.u2,rotationalClock.sub.y,rotationalClock.trigger_interval,rotationalClock.update_direction.u,rotationalClock.update_direction.y,rotationalClock.update_offset.u,rotationalClock.update_offset.y,rotationalClock.useSolver,rotationalClock.y_clock.u,rotationalClock.y_clock.useSolver,sample_angle.u,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y [Calling sys.exit(0), Time elapsed: 13.239434335002443]