Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009945/0.0009949, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007778/0.0007778, allocations: 98.42 kB / 299.9 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002092, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2191, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.001659/0.2208, allocations: 1.65 MB / 413.7 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008912/0.2217, allocations: 1.01 MB / 414.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.286e-05/0.2218, allocations: 4 kB / 414.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.04e-05/0.2219, allocations: 12.61 kB / 414.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.222, allocations: 17.05 kB / 414.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.2223, allocations: 105 kB / 414.8 MB, free: 23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.2224, allocations: 188 kB / 415 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.2226, allocations: 96.95 kB / 415.1 MB, free: 22.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2228, allocations: 63.75 kB / 415.2 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.611e-05/0.2229, allocations: 75.38 kB / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.2229, allocations: 4 kB / 415.3 MB, free: 22.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.012e-05/0.223, allocations: 8 kB / 415.3 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.223, allocations: 27.84 kB / 415.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.182e-05/0.2231, allocations: 93.23 kB / 415.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.2232, allocations: 196.8 kB / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2233, allocations: 0 / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2233, allocations: 0 / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2233, allocations: 0 / 415.6 MB, free: 22.26 MB / 298.7 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.000627/0.2239, allocations: 0.5003 MB / 416.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.224, allocations: 8.031 kB / 416.1 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.2241, allocations: 36.64 kB / 416.1 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.2243, allocations: 232.5 kB / 416.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.972e-05/0.2244, allocations: 42.59 kB / 416.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.2244, allocations: 19.94 kB / 416.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005868/0.225, allocations: 327.9 kB / 416.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.225, allocations: 3.984 kB / 416.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.225, allocations: 8 kB / 416.7 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.2251, allocations: 8 kB / 416.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000412/0.2255, allocations: 142.5 kB / 416.9 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.226, allocations: 469.3 kB / 417.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.2265, allocations: 213.2 kB / 417.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.2267, allocations: 117.7 kB / 417.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.2267, allocations: 4.125 kB / 417.7 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002787/0.227, allocations: 123.2 kB / 417.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.227, allocations: 4 kB / 417.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007239/0.2277, allocations: 305.3 kB / 418.1 MB, free: 19.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.2278, allocations: 89.11 kB / 418.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.885e-05/0.2279, allocations: 154.2 kB / 418.3 MB, free: 19.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.2279, allocations: 33.7 kB / 418.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.67e-05/0.228, allocations: 116.4 kB / 418.5 MB, free: 19.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.228, allocations: 39.61 kB / 418.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-06/0.228, allocations: 0 / 418.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/0.2281, allocations: 334.8 kB / 418.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.2283, allocations: 68.19 kB / 418.9 MB, free: 18.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.2285, allocations: 155.4 kB / 419.1 MB, free: 18.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.2288, allocations: 239.9 kB / 419.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2288, allocations: 0 / 419.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004458/0.2293, allocations: 295.1 kB / 419.6 MB, free: 17.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.2293, allocations: 41.69 kB / 419.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2293, allocations: 0 / 419.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2293, allocations: 4 kB / 419.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.2295, allocations: 47.91 kB / 419.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.2295, allocations: 11.88 kB / 419.7 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.2297, allocations: 31.83 kB / 419.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.2297, allocations: 19.98 kB / 419.7 MB, free: 17.73 MB / 298.7 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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.0001061/0.2298, allocations: 148.1 kB / 419.9 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.23, allocations: 98.45 kB / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.408e-05/0.23, allocations: 20.72 kB / 420 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.23, allocations: 4 kB / 420 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2301, allocations: 3.938 kB / 420 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.2301, allocations: 3.984 kB / 420 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.2306, allocations: 0.4982 MB / 420.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2306, allocations: 4 kB / 420.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2308, allocations: 51.94 kB / 420.6 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2308, allocations: 7.938 kB / 420.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2309, allocations: 0 / 420.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2309, allocations: 7.938 kB / 420.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2309, allocations: 0 / 420.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.2313, allocations: 336 kB / 420.9 MB, free: 16.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/0.2314, allocations: 88.92 kB / 421 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.2314, allocations: 7.938 kB / 421 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.2316, allocations: 31.97 kB / 421 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.214e-05/0.2316, allocations: 15.98 kB / 421.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2317, allocations: 7.984 kB / 421.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.586e-05/0.2317, allocations: 109.7 kB / 421.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2317, allocations: 0 / 421.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002465/0.232, allocations: 39.84 kB / 421.2 MB, free: 16.16 MB / 298.7 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 8.919e-05/0.2321, allocations: 115.2 kB / 421.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.2326, allocations: 261.8 kB / 421.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2326, allocations: 8.625 kB / 421.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.2327, allocations: 67.91 kB / 421.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.2331, allocations: 71.88 kB / 421.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000544/0.2337, allocations: 383.3 kB / 422.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.2338, allocations: 0.7286 MB / 422.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.111e-05/0.2339, allocations: 13.42 kB / 422.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.234, allocations: 23.44 kB / 422.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.234, allocations: 4 kB / 422.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of Templates: time 0.003913/0.2379, allocations: 1.714 MB / 424.6 MB, free: 12.71 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches