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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 105.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 195 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.97/1.97, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4429/0.4448, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003068/0.4479, allocations: 1.984 MB / 402.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.449, allocations: 0.6349 MB / 402.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.4491, allocations: 4 kB / 402.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.176e-05/0.4492, allocations: 19.73 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.282e-05/0.4493, allocations: 15.75 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.4497, allocations: 111.7 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.4499, allocations: 212 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.4501, allocations: 100.3 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.4502, allocations: 83.69 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.4503, allocations: 91.59 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.4504, allocations: 20 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.705e-05/0.4504, allocations: 20 kB / 403.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.326e-05/0.4505, allocations: 47.78 kB / 403.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.895e-05/0.4505, allocations: 87.52 kB / 403.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.4508, allocations: 217 kB / 403.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4508, allocations: 3.938 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4508, allocations: 0 / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.4508, allocations: 4 kB / 403.9 MB, free: 5.148 MB / 318.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.000797/0.4516, allocations: 0.5181 MB / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.4516, allocations: 12.02 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.4517, allocations: 50.73 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.4517, allocations: 16.75 kB / 404.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.452, allocations: 237.8 kB / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.222e-05/0.4521, allocations: 50.34 kB / 404.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.4521, allocations: 16 kB / 404.7 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006441/0.4528, allocations: 330.9 kB / 405.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4528, allocations: 0 / 405.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.4528, allocations: 8 kB / 405.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.4528, allocations: 4 kB / 405.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.4532, allocations: 127.9 kB / 405.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005812/0.4538, allocations: 457.2 kB / 405.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004731/0.4543, allocations: 201.1 kB / 405.8 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.4546, allocations: 97.67 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.4546, allocations: 19.98 kB / 406 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.4549, allocations: 111.5 kB / 406.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.4549, allocations: 0 / 406.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007647/0.4557, allocations: 293.2 kB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.4557, allocations: 89.11 kB / 406.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.4559, allocations: 148.6 kB / 406.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.4559, allocations: 37.69 kB / 406.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.456, allocations: 112.4 kB / 406.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.456, allocations: 35.55 kB / 406.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.4561, allocations: 45.7 kB / 406.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.4562, allocations: 330.8 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.4564, allocations: 60.19 kB / 407.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.4566, allocations: 147.4 kB / 407.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.457, allocations: 231.8 kB / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.457, allocations: 0 / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005241/0.4575, allocations: 280.9 kB / 407.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.4576, allocations: 40.05 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4576, allocations: 3.984 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4576, allocations: 8 kB / 407.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.4578, allocations: 44.25 kB / 407.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.4578, allocations: 11.88 kB / 407.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.458, allocations: 27.89 kB / 408 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.458, allocations: 12 kB / 408 MB, free: 0.6367 MB / 318.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.0001133/0.4581, allocations: 149.7 kB / 408.1 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.4583, allocations: 106.3 kB / 408.2 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.375e-05/0.4584, allocations: 20.72 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4584, allocations: 4 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.4584, allocations: 7.938 kB / 408.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4584, allocations: 0 / 408.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006857/0.4591, allocations: 498.2 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4591, allocations: 0 / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.4593, allocations: 35.97 kB / 408.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4593, allocations: 3.938 kB / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.4593, allocations: 15.98 kB / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4593, allocations: 0 / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4594, allocations: 0 / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.4599, allocations: 327.9 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.4599, allocations: 96.8 kB / 409.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.46, allocations: 12 kB / 409.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.4602, allocations: 15.98 kB / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/0.4602, allocations: 19.97 kB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.4603, allocations: 4 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.593e-05/0.4603, allocations: 122.4 kB / 409.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4603, allocations: 0 / 409.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.4606, allocations: 35.94 kB / 409.4 MB, free: 15.08 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.001021/0.4617, allocations: 0.9641 MB / 410.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.4622, allocations: 247.1 kB / 410.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4622, allocations: 0 / 410.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.4624, allocations: 63.95 kB / 410.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.4628, allocations: 68.62 kB / 410.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.4652, allocations: 2.144 MB / 412.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.4654, allocations: 0.7282 MB / 413.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.726e-05/0.4655, allocations: 17.42 kB / 413.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.4656, allocations: 47.42 kB / 413.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.4656, allocations: 0 / 413.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.884/8.35, allocations: 3.806 MB / 417.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/23.65, allocations: 11.08 kB / 417.5 MB, free: 6.918 MB / 334.1 MB (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 --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) 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) "" 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