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.002279/0.002279, allocations: 106.7 kB / 16.92 MB, free: 5.781 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.002177/0.002178, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.712/1.712, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 46.86 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1653, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005537/0.1709, allocations: 1.968 MB / 352.1 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.1727, allocations: 0.6349 MB / 352.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.173, allocations: 4 kB / 352.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.1732, allocations: 19.73 kB / 352.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.1734, allocations: 31.73 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006468/0.1741, allocations: 103.8 kB / 352.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.1745, allocations: 208 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.1748, allocations: 92.31 kB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.1751, allocations: 83.7 kB / 353.3 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.1753, allocations: 87.59 kB / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.616e-05/0.1753, allocations: 20 kB / 353.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.293e-05/0.1754, allocations: 24 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.833e-05/0.1754, allocations: 39.84 kB / 353.5 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.1756, allocations: 95.52 kB / 353.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.1759, allocations: 211.6 kB / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1759, allocations: 0 / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.176, allocations: 0 / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.176, allocations: 0 / 353.8 MB, free: 0.7109 MB / 286.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.001062/0.177, allocations: 0.5181 MB / 354.3 MB, free: 136 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.1771, allocations: 16.03 kB / 354.3 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.647e-05/0.1772, allocations: 50.73 kB / 354.4 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.1773, allocations: 24.66 kB / 354.4 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.1777, allocations: 235.4 kB / 354.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.1778, allocations: 46.34 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.1778, allocations: 16 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008621/0.1787, allocations: 329.8 kB / 355 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1787, allocations: 7.922 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.1787, allocations: 4 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1788, allocations: 4 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004656/0.1792, allocations: 131.9 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009113/0.1802, allocations: 461.3 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.1807, allocations: 201.1 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.1811, allocations: 105.7 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.1811, allocations: 0 / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000401/0.1815, allocations: 123.4 kB / 356 MB, free: 14.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/0.1815, allocations: 0 / 356 MB, free: 14.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009032/0.1824, allocations: 285.9 kB / 356.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1826, allocations: 89.09 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1828, allocations: 158.2 kB / 356.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.1828, allocations: 33.7 kB / 356.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.1829, allocations: 112.4 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.183, allocations: 47.59 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1831, allocations: 45.7 kB / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1833, allocations: 322.8 kB / 357.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.1835, allocations: 64.19 kB / 357.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.1838, allocations: 151.8 kB / 357.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.1844, allocations: 227.8 kB / 357.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1844, allocations: 0 / 357.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007672/0.1851, allocations: 282.9 kB / 357.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/0.1852, allocations: 33.7 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1852, allocations: 4 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.1853, allocations: 4 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.1855, allocations: 39.91 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.1855, allocations: 11.92 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.1857, allocations: 40.05 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.1858, allocations: 12 kB / 357.9 MB, free: 12.18 MB / 302.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.0002255/0.186, allocations: 129.8 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.1862, allocations: 113.4 kB / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.585e-05/0.1863, allocations: 28.62 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1863, allocations: 4 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.1863, allocations: 3.938 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1863, allocations: 0 / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009754/0.1873, allocations: 498.1 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.1873, allocations: 0 / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.1876, allocations: 39.97 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.1876, allocations: 3.938 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.1876, allocations: 11.98 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1876, allocations: 0 / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1876, allocations: 4 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.1883, allocations: 316 kB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.1884, allocations: 100.8 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.1885, allocations: 4 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.1887, allocations: 15.98 kB / 359.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.1888, allocations: 19.98 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.1888, allocations: 11.98 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.189, allocations: 112.9 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.189, allocations: 0 / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003431/0.1894, allocations: 39.91 kB / 359.4 MB, free: 10.64 MB / 302.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.001533/0.1909, allocations: 0.961 MB / 360.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.1916, allocations: 251.1 kB / 360.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1916, allocations: 4 kB / 360.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.1919, allocations: 67.89 kB / 360.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/0.1924, allocations: 66.61 kB / 360.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/0.1963, allocations: 2.146 MB / 362.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00063/0.197, allocations: 0.7283 MB / 363.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.406e-05/0.1971, allocations: 13.42 kB / 363.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1972, allocations: 55.41 kB / 363.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of SimCode: time 3.056e-06/0.1972, allocations: 4 kB / 363.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.2313, allocations: 3.65 MB / 367.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.38, allocations: 11.3 kB / 367.3 MB, free: 2.605 MB / 302.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