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.001325/0.001325, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001367/0.001367, allocations: 207.3 kB / 23.72 MB, free: 4.391 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.549/1.549, allocations: 230.5 MB / 257.4 MB, free: 7.723 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 67.88 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3322, allocations: 53.4 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003623/0.3358, allocations: 1.955 MB / 433.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.3371, allocations: 0.6739 MB / 433.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.3373, allocations: 4 kB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.113e-05/0.3373, allocations: 19.73 kB / 433.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.3374, allocations: 23.73 kB / 433.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.3378, allocations: 130.8 kB / 433.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003069/0.3381, allocations: 208 kB / 434.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3383, allocations: 70.52 kB / 434.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.3385, allocations: 91.69 kB / 434.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.3386, allocations: 79.59 kB / 434.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.3387, allocations: 20 kB / 434.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.008e-05/0.3387, allocations: 20 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.3388, allocations: 51.83 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3389, allocations: 63.67 kB / 434.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.3392, allocations: 235 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3392, allocations: 0 / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3392, allocations: 0 / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3392, allocations: 3.938 kB / 434.8 MB, free: 2.801 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.0008484/0.3401, allocations: 469.3 kB / 435.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.3401, allocations: 11.98 kB / 435.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.871e-05/0.3402, allocations: 54.67 kB / 435.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.3404, allocations: 40.78 kB / 435.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.3407, allocations: 182.1 kB / 435.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.032e-05/0.3408, allocations: 68.05 kB / 435.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.3408, allocations: 19.94 kB / 435.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007119/0.3415, allocations: 352.7 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3415, allocations: 0 / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.3416, allocations: 8 kB / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3416, allocations: 0 / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00043/0.342, allocations: 139.8 kB / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007167/0.3427, allocations: 396.5 kB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.3432, allocations: 193.1 kB / 436.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.3435, allocations: 97.66 kB / 436.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.3435, allocations: 4 kB / 436.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.3438, allocations: 141.2 kB / 436.9 MB, free: 484 kB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.3438, allocations: 3.938 kB / 436.9 MB, free: 480 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007967/0.3446, allocations: 281.4 kB / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.148e-05/0.3447, allocations: 93.92 kB / 437.3 MB, free: 80 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.3449, allocations: 153.5 kB / 437.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.3449, allocations: 33.7 kB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.345, allocations: 108.6 kB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.345, allocations: 47.7 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.746e-05/0.3451, allocations: 41.7 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3453, allocations: 330.8 kB / 437.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.3455, allocations: 93.89 kB / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.3458, allocations: 177.7 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/0.3462, allocations: 235.8 kB / 438.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3462, allocations: 0 / 438.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005978/0.3468, allocations: 308.6 kB / 438.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.3469, allocations: 33.7 kB / 438.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3469, allocations: 4 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3469, allocations: 4 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.3471, allocations: 43.91 kB / 438.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3471, allocations: 7.938 kB / 438.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.3473, allocations: 40.08 kB / 438.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.3473, allocations: 15.98 kB / 438.9 MB, free: 14.29 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.0002267/0.3475, allocations: 141.8 kB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.3477, allocations: 105.5 kB / 439.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.037e-05/0.3478, allocations: 24.66 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3478, allocations: 7.984 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3478, allocations: 0 / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3478, allocations: 3.938 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.3486, allocations: 445.5 kB / 439.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3486, allocations: 0 / 439.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.3488, allocations: 43.89 kB / 439.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3488, allocations: 0 / 439.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3488, allocations: 11.94 kB / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3488, allocations: 0 / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3488, allocations: 0 / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006047/0.3494, allocations: 332 kB / 440 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.841e-05/0.3494, allocations: 19.78 kB / 440 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.3495, allocations: 15.94 kB / 440 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3496, allocations: 19.97 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.3497, allocations: 11.98 kB / 440 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.3497, allocations: 11.98 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.939e-05/0.3498, allocations: 112.1 kB / 440.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3498, allocations: 0 / 440.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.3501, allocations: 36 kB / 440.2 MB, free: 12.88 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.001375/0.3515, allocations: 0.9551 MB / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000628/0.3521, allocations: 269.3 kB / 441.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3521, allocations: 4.062 kB / 441.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.3523, allocations: 55.91 kB / 441.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.3528, allocations: 67.88 kB / 441.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.3562, allocations: 2.27 MB / 443.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.3564, allocations: 120.4 kB / 443.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.345e-05/0.3564, allocations: 9.484 kB / 443.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3566, allocations: 55.41 kB / 444 MB, free: 8.836 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3566, allocations: 0 / 444 MB, free: 8.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.3909, allocations: 4.42 MB / 448.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.26, allocations: 3.938 kB / 448.4 MB, free: 4.539 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] 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: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.830744272097945]