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.0007836/0.0007836, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008462/0.0008462, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8553/0.8553, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.202e-06/1.202e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.928e-06/1.113e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002064/0.002075, allocations: 1.968 MB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000792/0.002867, allocations: 0.6698 MB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.648e-05/0.002953, allocations: 8 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.02e-05/0.002994, allocations: 19.73 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.514e-05/0.003079, allocations: 23.72 kB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.003432, allocations: 135.5 kB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.003607, allocations: 208 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.003741, allocations: 64.88 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.003931, allocations: 127.7 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.446e-05/0.004015, allocations: 75.78 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.00404, allocations: 16 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.113e-05/0.004081, allocations: 27.98 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.004117, allocations: 43.84 kB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.00417, allocations: 55.83 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.004376, allocations: 239.2 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.004378, allocations: 0 / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004379, allocations: 0 / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.004383, allocations: 0 / 328.2 MB, free: 12.27 MB / 298.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.0005606/0.004943, allocations: 475.9 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.004975, allocations: 12.03 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.398e-05/0.005009, allocations: 46.73 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.005123, allocations: 36.78 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.005321, allocations: 178 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.00538, allocations: 68.3 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.005399, allocations: 12.38 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004429/0.005842, allocations: 364.7 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.00585, allocations: 0 / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.005866, allocations: 4 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.005871, allocations: 4 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.00611, allocations: 135.9 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004347/0.006545, allocations: 392.5 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.006826, allocations: 197 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.006967, allocations: 93.66 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.006984, allocations: 8 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001932/0.007177, allocations: 149.2 kB / 330.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.007179, allocations: 0 / 330.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004607/0.00764, allocations: 281.3 kB / 330.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.007692, allocations: 89.09 kB / 330.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.498e-05/0.007777, allocations: 153 kB / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.007797, allocations: 29.7 kB / 330.9 MB, free: 9.363 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/0.00785, allocations: 128.4 kB / 331 MB, free: 9.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.007871, allocations: 27.75 kB / 331 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/0.007915, allocations: 41.69 kB / 331.1 MB, free: 9.156 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.432e-05/0.00799, allocations: 330.8 kB / 331.4 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.008099, allocations: 73.67 kB / 331.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.008205, allocations: 103.4 kB / 331.6 MB, free: 8.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.008382, allocations: 139.3 kB / 331.7 MB, free: 8.484 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.008383, allocations: 0 / 331.7 MB, free: 8.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002462/0.008629, allocations: 236.9 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.008655, allocations: 36.67 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.008659, allocations: 0 / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.427e-06/0.008669, allocations: 0 / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.209e-05/0.008751, allocations: 32 kB / 332 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.008756, allocations: 0 / 332 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.008822, allocations: 23.94 kB / 332 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.008833, allocations: 4 kB / 332 MB, free: 8.137 MB / 298.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 8.509e-05/0.008918, allocations: 141.7 kB / 332.2 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.009034, allocations: 110.4 kB / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.675e-05/0.009071, allocations: 20.78 kB / 332.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.009073, allocations: 0 / 332.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.009076, allocations: 4 kB / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.00908, allocations: 4 kB / 332.3 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/0.009481, allocations: 453.4 kB / 332.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.009482, allocations: 0 / 332.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.868e-05/0.009571, allocations: 35.97 kB / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.009573, allocations: 0 / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.009587, allocations: 15.92 kB / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.009589, allocations: 0 / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.009591, allocations: 3.938 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.009891, allocations: 329 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.42e-05/0.009906, allocations: 23.78 kB / 333.1 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.009925, allocations: 4 kB / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.316e-05/0.01002, allocations: 15.98 kB / 333.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.01007, allocations: 19.91 kB / 333.2 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.01008, allocations: 11.98 kB / 333.2 MB, free: 6.887 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.961e-05/0.01013, allocations: 114.2 kB / 333.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01013, allocations: 4 kB / 333.3 MB, free: 6.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001672/0.01029, allocations: 32 kB / 333.3 MB, free: 6.742 MB / 298.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.0006307/0.01092, allocations: 0.9556 MB / 334.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.01122, allocations: 243.2 kB / 334.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01123, allocations: 0 / 334.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.089e-05/0.01132, allocations: 55.91 kB / 334.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.0116, allocations: 75.34 kB / 334.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.01311, allocations: 2.029 MB / 336.7 MB, free: 3.227 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.11e-05/0.01318, allocations: 120.4 kB / 336.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.249e-05/0.01322, allocations: 13.14 kB / 336.8 MB, free: 3.066 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.01329, allocations: 48.48 kB / 336.9 MB, free: 3.02 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.01329, allocations: 0 / 336.9 MB, free: 3.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.02951, allocations: 4.428 MB / 341.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.782/6.812, allocations: 10 kB / 341.3 MB, free: 14.71 MB / 314.7 MB " [Timeout remaining time 653] (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/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_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: 8.423713539727032]