Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 191.6 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008484/0.0008484, allocations: 103.6 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004063, allocations: 7.938 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3337, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003346/0.3371, allocations: 1.641 MB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.3388, allocations: 0.6257 MB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.3391, allocations: 4 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.375e-05/0.3392, allocations: 11.86 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.3395, allocations: 20.64 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006199/0.3401, allocations: 88.67 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.3404, allocations: 174.4 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.3407, allocations: 92.06 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.341, allocations: 63.7 kB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.3412, allocations: 63.67 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.3412, allocations: 4.625 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.059e-05/0.3413, allocations: 12 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.13e-05/0.3414, allocations: 24.94 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.3415, allocations: 89.3 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.3417, allocations: 152.5 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.3418, allocations: 0 / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3418, allocations: 0 / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.3418, allocations: 1.25 kB / 411.1 MB, free: 24.65 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.001056/0.3429, allocations: 0.5022 MB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3429, allocations: 8.031 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002537/0.3432, allocations: 38.83 kB / 411.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.3435, allocations: 235.3 kB / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.3436, allocations: 46.53 kB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.3437, allocations: 15.94 kB / 411.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.3448, allocations: 336.8 kB / 412.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3448, allocations: 0 / 412.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.3448, allocations: 4 kB / 412.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3449, allocations: 4 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006927/0.3456, allocations: 147.8 kB / 412.4 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008406/0.3464, allocations: 469.3 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.3471, allocations: 217.1 kB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.3475, allocations: 105.7 kB / 413.2 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.3476, allocations: 7.984 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003963/0.348, allocations: 131.4 kB / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.348, allocations: 0 / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001274/0.3493, allocations: 309.9 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.3493, allocations: 89.05 kB / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.3495, allocations: 154.3 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.3496, allocations: 29.7 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.3496, allocations: 120.4 kB / 414 MB, free: 21.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.3497, allocations: 39.48 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.818e-05/0.3497, allocations: 4 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.3498, allocations: 326.8 kB / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.3501, allocations: 68.19 kB / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.3505, allocations: 150.7 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.3512, allocations: 249.7 kB / 414.8 MB, free: 20.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3512, allocations: 0 / 414.8 MB, free: 20.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008556/0.3521, allocations: 296.1 kB / 415.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.3521, allocations: 33.7 kB / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3521, allocations: 0 / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.3522, allocations: 4 kB / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.3525, allocations: 47.91 kB / 415.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.3525, allocations: 7.938 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.3528, allocations: 35.88 kB / 415.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.3529, allocations: 16 kB / 415.3 MB, free: 20.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.353, allocations: 145.5 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.3533, allocations: 105.5 kB / 415.5 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.3534, allocations: 20.72 kB / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3534, allocations: 7.984 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3534, allocations: 7.938 kB / 415.5 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3534, allocations: 0 / 415.5 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009919/0.3544, allocations: 0.4905 MB / 416 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3545, allocations: 11.92 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.3548, allocations: 43.91 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.3548, allocations: 7.938 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.3549, allocations: 0 / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3549, allocations: 4 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3549, allocations: 0 / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008853/0.3558, allocations: 341.5 kB / 416.4 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.3559, allocations: 92.91 kB / 416.5 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.3559, allocations: 11.94 kB / 416.5 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/0.3562, allocations: 27.97 kB / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3564, allocations: 19.97 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.3564, allocations: 4 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.546e-05/0.3565, allocations: 113.5 kB / 416.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3565, allocations: 0 / 416.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004997/0.357, allocations: 39.84 kB / 416.7 MB, free: 18.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.3572, allocations: 111.2 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008421/0.3581, allocations: 263 kB / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3581, allocations: 0 / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003124/0.3584, allocations: 63.95 kB / 417.2 MB, free: 18.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006868/0.3591, allocations: 74.2 kB / 417.2 MB, free: 18.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009144/0.36, allocations: 397.2 kB / 417.6 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.3603, allocations: 0.7247 MB / 418.3 MB, free: 16.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3604, allocations: 27.42 kB / 418.4 MB, free: 16.82 MB / 298.7 MB Notification: Performance of SimCode: time 4.8e-07/0.3604, allocations: 0 / 418.4 MB, free: 16.82 MB / 298.7 MB Notification: Performance of Templates: time 0.005123/0.3655, allocations: 2.111 MB / 420.5 MB, free: 14.72 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches