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.001291/0.001291, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.001328/0.001328, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.379/1.379, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001503/0.001503, allocations: 43.94 kB / 370.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2366, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003484/0.2401, allocations: 1.944 MB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.2413, allocations: 0.6 MB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.2414, allocations: 3.938 kB / 425.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.349e-05/0.2414, allocations: 15.8 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.2415, allocations: 27.72 kB / 425.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.2419, allocations: 115.4 kB / 425.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.2422, allocations: 207.9 kB / 425.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.2424, allocations: 62.53 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.2425, allocations: 99.62 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.2427, allocations: 79.59 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.2427, allocations: 20 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.508e-05/0.2427, allocations: 20 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.009e-05/0.2428, allocations: 43.84 kB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.744e-05/0.2429, allocations: 79.64 kB / 425.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002792/0.2432, allocations: 219 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2432, allocations: 0 / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2432, allocations: 0 / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.2432, allocations: 0 / 426.1 MB, free: 10.89 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.0009238/0.2441, allocations: 457.3 kB / 426.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.2441, allocations: 16.02 kB / 426.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.162e-05/0.2442, allocations: 50.73 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.2443, allocations: 20.84 kB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003336/0.2446, allocations: 185.8 kB / 426.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.804e-05/0.2447, allocations: 72.03 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.2447, allocations: 16 kB / 426.9 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007546/0.2455, allocations: 360.6 kB / 427.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2455, allocations: 4 kB / 427.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.2455, allocations: 7.938 kB / 427.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.2455, allocations: 4 kB / 427.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004229/0.2459, allocations: 131.8 kB / 427.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.2466, allocations: 392.6 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.2471, allocations: 189.2 kB / 427.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.2474, allocations: 97.66 kB / 428 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.2474, allocations: 0 / 428 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003202/0.2477, allocations: 141 kB / 428.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.2477, allocations: 0 / 428.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008272/0.2486, allocations: 290.2 kB / 428.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.692e-05/0.2487, allocations: 96.98 kB / 428.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.2488, allocations: 150.4 kB / 428.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.2488, allocations: 29.7 kB / 428.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.2489, allocations: 116.5 kB / 428.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.249, allocations: 39.8 kB / 428.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.668e-05/0.249, allocations: 45.66 kB / 428.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2492, allocations: 330.8 kB / 429.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.2494, allocations: 93.89 kB / 429.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.2497, allocations: 173.8 kB / 429.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.2501, allocations: 235.6 kB / 429.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2501, allocations: 0 / 429.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005941/0.2507, allocations: 304.8 kB / 430 MB, free: 6.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.2508, allocations: 40.34 kB / 430.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.2508, allocations: 0 / 430.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2508, allocations: 4 kB / 430.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.251, allocations: 47.84 kB / 430.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.251, allocations: 7.938 kB / 430.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.2512, allocations: 27.88 kB / 430.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.2512, allocations: 20.19 kB / 430.2 MB, free: 6.41 MB / 334.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.0001541/0.2514, allocations: 149.4 kB / 430.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.2516, allocations: 105.6 kB / 430.4 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.644e-05/0.2516, allocations: 20.72 kB / 430.4 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.2516, allocations: 4 kB / 430.5 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.2516, allocations: 3.938 kB / 430.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2516, allocations: 0 / 430.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007391/0.2524, allocations: 449.4 kB / 430.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2524, allocations: 0 / 430.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.2526, allocations: 39.91 kB / 430.9 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.176e-06/0.2526, allocations: 7.938 kB / 430.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.2526, allocations: 8 kB / 431 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2526, allocations: 0 / 431 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.2526, allocations: 7.984 kB / 431 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005743/0.2532, allocations: 319.5 kB / 431.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.2532, allocations: 23.78 kB / 431.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.2533, allocations: 15.92 kB / 431.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2534, allocations: 15.98 kB / 431.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2535, allocations: 19.97 kB / 431.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.2535, allocations: 4 kB / 431.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.044e-05/0.2536, allocations: 109.3 kB / 431.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2536, allocations: 0 / 431.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.2539, allocations: 39.94 kB / 431.5 MB, free: 5.012 MB / 334.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.00121/0.2551, allocations: 0.9628 MB / 432.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.2557, allocations: 261.5 kB / 432.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2557, allocations: 0 / 432.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.2559, allocations: 63.97 kB / 432.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.2563, allocations: 67.86 kB / 432.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.2593, allocations: 2.256 MB / 435.1 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.2594, allocations: 124.2 kB / 435.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.117e-05/0.2595, allocations: 17.42 kB / 435.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2596, allocations: 47.42 kB / 435.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2596, allocations: 7.938 kB / 435.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.2908, allocations: 4.374 MB / 439.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.8, allocations: 7.5 kB / 439.7 MB, free: 12.74 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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: 13.137121607083827]