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.001378/0.001378, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001526/0.001526, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.537/1.537, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001517/0.001517, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1311, allocations: 53.33 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003442/0.1346, allocations: 2.002 MB / 428.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1358, allocations: 0.7089 MB / 429 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.1359, allocations: 7.938 kB / 429 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.892e-05/0.1359, allocations: 15.8 kB / 429 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.136, allocations: 31.72 kB / 429.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.1364, allocations: 123.7 kB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.1367, allocations: 204 kB / 429.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.1369, allocations: 68.33 kB / 429.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.1371, allocations: 95.69 kB / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1372, allocations: 95.59 kB / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.1372, allocations: 19.98 kB / 429.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.278e-05/0.1373, allocations: 27.94 kB / 429.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.343e-05/0.1373, allocations: 39.84 kB / 429.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.644e-05/0.1374, allocations: 91.47 kB / 429.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.1378, allocations: 223.1 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1378, allocations: 0 / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1378, allocations: 0 / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1378, allocations: 0 / 430 MB, free: 1.055 MB / 350.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.000917/0.1387, allocations: 0.5374 MB / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1387, allocations: 8.031 kB / 430.6 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.137e-05/0.1388, allocations: 50.73 kB / 430.6 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.139, allocations: 32.78 kB / 430.7 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.1393, allocations: 240.6 kB / 430.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.1394, allocations: 46.34 kB / 430.9 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.1394, allocations: 16 kB / 431 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2166/0.3559, allocations: 315.3 kB / 431.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.356, allocations: 3.562 kB / 431.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.356, allocations: 8.234 kB / 431.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.356, allocations: 8.219 kB / 431.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000438/0.3564, allocations: 131.8 kB / 431.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.357, allocations: 460.3 kB / 431.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.3575, allocations: 191.1 kB / 432 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.3578, allocations: 100.3 kB / 432.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.3578, allocations: 6.688 kB / 432.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.3581, allocations: 115.6 kB / 432.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.455e-06/0.3581, allocations: 1.297 kB / 432.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008169/0.3589, allocations: 288.3 kB / 432.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/0.359, allocations: 86.77 kB / 432.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.3591, allocations: 158.8 kB / 432.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3591, allocations: 32.84 kB / 432.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.3591, allocations: 118.1 kB / 432.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/0.3592, allocations: 34.61 kB / 433 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.3592, allocations: 47.08 kB / 433 MB, free: 10.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.245e-05/0.3593, allocations: 325 kB / 433.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.3595, allocations: 70.72 kB / 433.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.3597, allocations: 139.2 kB / 433.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.3601, allocations: 243 kB / 433.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3601, allocations: 4.844 kB / 433.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005128/0.3606, allocations: 271.4 kB / 434 MB, free: 9.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.3606, allocations: 36.23 kB / 434.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3606, allocations: 3.531 kB / 434.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.3607, allocations: 4.797 kB / 434.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.3608, allocations: 47.19 kB / 434.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3609, allocations: 8.328 kB / 434.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.361, allocations: 31.59 kB / 434.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.361, allocations: 14.39 kB / 434.2 MB, free: 9.684 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 9.763e-05/0.3611, allocations: 140.6 kB / 434.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.3613, allocations: 103.9 kB / 434.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.523e-05/0.3614, allocations: 30.47 kB / 434.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3614, allocations: 3.438 kB / 434.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3614, allocations: 1.5 kB / 434.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3614, allocations: 4.875 kB / 434.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006343/0.362, allocations: 492 kB / 434.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.362, allocations: 0 / 434.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.3622, allocations: 46.38 kB / 435 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3622, allocations: 1.969 kB / 435 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3622, allocations: 12.88 kB / 435 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3622, allocations: 1.031 kB / 435 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3622, allocations: 1.125 kB / 435 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005231/0.3627, allocations: 329.4 kB / 435.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.85e-05/0.3628, allocations: 95.39 kB / 435.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.3628, allocations: 12.56 kB / 435.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.363, allocations: 14.95 kB / 435.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.573e-05/0.363, allocations: 15.05 kB / 435.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.363, allocations: 11.39 kB / 435.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.456e-05/0.3631, allocations: 114.1 kB / 435.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3631, allocations: 0 / 435.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.3634, allocations: 37.33 kB / 435.6 MB, free: 8.879 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.0009275/0.3643, allocations: 0.973 MB / 436.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.3648, allocations: 235.2 kB / 436.8 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3649, allocations: 1.031 kB / 436.8 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.365, allocations: 69.72 kB / 436.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.3654, allocations: 62.61 kB / 437 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.3678, allocations: 2.151 MB / 439.1 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.368, allocations: 0.7313 MB / 439.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.691e-05/0.368, allocations: 14.8 kB / 439.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.523e-05/0.3681, allocations: 55.45 kB / 439.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3681, allocations: 1.094 kB / 439.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.3942, allocations: 3.813 MB / 443.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.987/8.381, allocations: 4.312 kB / 443.7 MB, free: 4.996 MB / 350.1 MB " [Timeout remaining time 652] (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: 11.010544343851507]