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: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002148/0.002149, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002736/0.002736, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.451/2.451, allocations: 222.9 MB / 241.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 47.81 kB / 300.6 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1803, allocations: 49.45 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005419/0.1857, allocations: 2.023 MB / 352.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1875, allocations: 0.631 MB / 352.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.1877, allocations: 4 kB / 352.7 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.339e-05/0.1879, allocations: 11.86 kB / 352.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.188, allocations: 11.88 kB / 352.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.1886, allocations: 105.8 kB / 352.8 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.189, allocations: 188 kB / 353 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.1893, allocations: 84.33 kB / 353.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.1895, allocations: 75.69 kB / 353.2 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.1897, allocations: 83.59 kB / 353.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.247e-05/0.1898, allocations: 12 kB / 353.3 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.686e-05/0.1898, allocations: 8 kB / 353.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.067e-05/0.1899, allocations: 39.78 kB / 353.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.19, allocations: 79.58 kB / 353.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.1903, allocations: 159.9 kB / 353.6 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.1903, allocations: 4 kB / 353.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1903, allocations: 0 / 353.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1904, allocations: 0 / 353.6 MB, free: 1.082 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.001234/0.1916, allocations: 0.5221 MB / 354.1 MB, free: 0.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1917, allocations: 8.031 kB / 354.1 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.984e-05/0.1918, allocations: 24.66 kB / 354.1 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.1922, allocations: 232.5 kB / 354.3 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.613e-05/0.1923, allocations: 38.59 kB / 354.4 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.1924, allocations: 23.92 kB / 354.4 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.1937, allocations: 337.9 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1937, allocations: 0 / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.809e-05/0.1937, allocations: 4 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1938, allocations: 4 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007259/0.1945, allocations: 131.9 kB / 354.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.1957, allocations: 461.3 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009009/0.1966, allocations: 205.1 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.1971, allocations: 105.6 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.1971, allocations: 8.062 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004908/0.1976, allocations: 119.4 kB / 355.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.875e-06/0.1977, allocations: 4 kB / 355.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001392/0.1991, allocations: 285.3 kB / 356 MB, free: 14.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1992, allocations: 89.09 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1995, allocations: 151.6 kB / 356.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.1995, allocations: 29.7 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1997, allocations: 116.4 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.1998, allocations: 47.47 kB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1999, allocations: 45.7 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.2001, allocations: 326.8 kB / 356.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.2006, allocations: 60.19 kB / 356.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/0.2011, allocations: 146.7 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008404/0.202, allocations: 239.8 kB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.202, allocations: 0 / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001149/0.2032, allocations: 275.1 kB / 357.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.906e-05/0.2033, allocations: 33.7 kB / 357.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.2033, allocations: 4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.2033, allocations: 4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.2037, allocations: 43.91 kB / 357.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-05/0.2038, allocations: 11.88 kB / 357.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.2041, allocations: 35.81 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.2042, allocations: 8 kB / 357.7 MB, free: 12.61 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.000288/0.2045, allocations: 145.8 kB / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.2049, allocations: 109.4 kB / 357.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2051, allocations: 20.7 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.2051, allocations: 4 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.2051, allocations: 3.938 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2051, allocations: 0 / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.2065, allocations: 0.4904 MB / 358.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.2065, allocations: 0 / 358.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.2069, allocations: 35.97 kB / 358.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/0.207, allocations: 11.88 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.207, allocations: 4 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.924e-06/0.207, allocations: 3.984 kB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/0.207, allocations: 7.938 kB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.2082, allocations: 312.1 kB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.2083, allocations: 92.92 kB / 358.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.2084, allocations: 15.86 kB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.2089, allocations: 15.98 kB / 358.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.2091, allocations: 15.97 kB / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.2092, allocations: 8 kB / 358.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.2094, allocations: 117.1 kB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2094, allocations: 0 / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006632/0.2101, allocations: 43.84 kB / 359.1 MB, free: 11.06 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.0002149/0.2103, allocations: 107.2 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.2114, allocations: 240.7 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2115, allocations: 3.938 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.2119, allocations: 63.89 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008516/0.2127, allocations: 60.48 kB / 359.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.2141, allocations: 405.1 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.2145, allocations: 0.7325 MB / 360.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2147, allocations: 19.42 kB / 360.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2147, allocations: 3.938 kB / 360.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of Templates: time 0.008064/0.2227, allocations: 2.159 MB / 362.9 MB, free: 7.215 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches