Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008054/0.0008054, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008671/0.0008671, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8995/0.8995, allocations: 173.3 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.887e-05/3.16e-05, allocations: 2.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002293/0.002325, allocations: 1.934 MB / 320.4 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007901/0.003115, allocations: 0.6076 MB / 321 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.003219, allocations: 7.938 kB / 321 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.577e-05/0.003264, allocations: 19.73 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.831e-05/0.003363, allocations: 27.78 kB / 321 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.003693, allocations: 111.6 kB / 321.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.003907, allocations: 204.1 kB / 321.3 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.004075, allocations: 72.86 kB / 321.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.004256, allocations: 127.7 kB / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.861e-05/0.004354, allocations: 63.78 kB / 321.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.004389, allocations: 20 kB / 321.6 MB, free: 3.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.076e-05/0.00441, allocations: 20 kB / 321.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.507e-05/0.004455, allocations: 47.83 kB / 321.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.08e-05/0.004525, allocations: 59.83 kB / 321.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.00476, allocations: 231.2 kB / 322 MB, free: 2.828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.004764, allocations: 0 / 322 MB, free: 2.828 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.004765, allocations: 3.938 kB / 322 MB, free: 2.824 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.00477, allocations: 0 / 322 MB, free: 2.824 MB / 282.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.0009507/0.005721, allocations: 461.3 kB / 322.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.005765, allocations: 8.922 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.005805, allocations: 54.73 kB / 322.5 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.756e-05/0.005853, allocations: 24.8 kB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.006095, allocations: 177 kB / 322.7 MB, free: 2.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.006163, allocations: 64.3 kB / 322.7 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.006183, allocations: 16.38 kB / 322.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.006669, allocations: 367.5 kB / 323.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.006679, allocations: 0 / 323.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.006697, allocations: 12 kB / 323.1 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.006703, allocations: 0 / 323.1 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.006943, allocations: 135.9 kB / 323.2 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.007439, allocations: 380.6 kB / 323.6 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/0.007749, allocations: 193.1 kB / 323.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.007893, allocations: 105.7 kB / 323.9 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.007918, allocations: 4 kB / 323.9 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.008144, allocations: 145.1 kB / 324.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.008145, allocations: 0 / 324.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005017/0.008647, allocations: 281.3 kB / 324.3 MB, free: 252 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.00871, allocations: 97.03 kB / 324.4 MB, free: 136 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.008817, allocations: 146.4 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.008837, allocations: 29.7 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.008898, allocations: 120.5 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.008925, allocations: 35.69 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-05/0.008976, allocations: 37.64 kB / 324.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.821e-05/0.009055, allocations: 326.8 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.009171, allocations: 81.66 kB / 325.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.00928, allocations: 103.3 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.009466, allocations: 139.4 kB / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.009469, allocations: 0 / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002717/0.00974, allocations: 232.9 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.009771, allocations: 29.7 kB / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.009777, allocations: 0 / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.009792, allocations: 4 kB / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.646e-05/0.009888, allocations: 23.97 kB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.009894, allocations: 4.031 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.077e-05/0.009975, allocations: 31.86 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.009989, allocations: 7.938 kB / 325.7 MB, free: 14.71 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 9.814e-05/0.01009, allocations: 137.8 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.01021, allocations: 106.4 kB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.01025, allocations: 20.78 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.01026, allocations: 4 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.01026, allocations: 4 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.01027, allocations: 3.984 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.01071, allocations: 445.4 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01071, allocations: 0 / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.786e-05/0.01081, allocations: 43.91 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.01081, allocations: 0 / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.01083, allocations: 11.98 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.01083, allocations: 3.938 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.01083, allocations: 0 / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.01115, allocations: 328.1 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.687e-05/0.01117, allocations: 15.89 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.01119, allocations: 4 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.01128, allocations: 23.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.01133, allocations: 15.97 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.01135, allocations: 8 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.077e-05/0.0114, allocations: 114.4 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0114, allocations: 0 / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001765/0.01157, allocations: 43.83 kB / 327.1 MB, free: 13.32 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.0006897/0.01226, allocations: 0.9648 MB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.01258, allocations: 231.7 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01258, allocations: 8.062 kB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.01268, allocations: 55.89 kB / 328.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.01301, allocations: 71.78 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.01489, allocations: 2.012 MB / 330.4 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.122e-05/0.01498, allocations: 120.2 kB / 330.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.01502, allocations: 13.14 kB / 330.5 MB, free: 9.668 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.469e-05/0.01511, allocations: 52.48 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01511, allocations: 0 / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.03464, allocations: 4.38 MB / 334.9 MB, free: 5.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.711/6.746, allocations: 4.062 kB / 335 MB, free: 5.375 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.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.460858651436865]