Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00167/0.001669, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 111.6 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 52.16 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3179, allocations: 50.46 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003048/0.321, allocations: 2.032 MB / 409.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3222, allocations: 0.6613 MB / 409.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.3223, allocations: 7.938 kB / 409.8 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.5e-05/0.3224, allocations: 11.86 kB / 409.8 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.3225, allocations: 19.86 kB / 409.8 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003995/0.3229, allocations: 94.3 kB / 409.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.3231, allocations: 192 kB / 410.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.3233, allocations: 96.84 kB / 410.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.3235, allocations: 86.09 kB / 410.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3236, allocations: 83.59 kB / 410.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.3237, allocations: 8 kB / 410.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.853e-05/0.3237, allocations: 16 kB / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.3238, allocations: 35.84 kB / 410.4 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.111e-05/0.3238, allocations: 83.45 kB / 410.5 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.324, allocations: 204.9 kB / 410.7 MB, free: 24.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3241, allocations: 0 / 410.7 MB, free: 24.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3241, allocations: 0 / 410.7 MB, free: 24.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3241, allocations: 0 / 410.7 MB, free: 24.19 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.0008204/0.3249, allocations: 0.5181 MB / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3249, allocations: 11.97 kB / 411.2 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.3251, allocations: 36.64 kB / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.3254, allocations: 235.6 kB / 411.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.916e-05/0.3255, allocations: 42.59 kB / 411.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.3255, allocations: 19.94 kB / 411.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/0.3261, allocations: 333.6 kB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3261, allocations: 0 / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.3261, allocations: 4 kB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3261, allocations: 4 kB / 411.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/0.3265, allocations: 131.8 kB / 412 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005818/0.3271, allocations: 473.3 kB / 412.4 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.3276, allocations: 197.2 kB / 412.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.3278, allocations: 101.7 kB / 412.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.3278, allocations: 4 kB / 412.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003314/0.3282, allocations: 117.8 kB / 412.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.3282, allocations: 4 kB / 412.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007271/0.3289, allocations: 293.4 kB / 413.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.329, allocations: 89.09 kB / 413.2 MB, free: 21.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.3291, allocations: 150.3 kB / 413.4 MB, free: 21.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.3291, allocations: 33.7 kB / 413.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.711e-05/0.3292, allocations: 120.4 kB / 413.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3293, allocations: 43.61 kB / 413.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.3293, allocations: 45.7 kB / 413.6 MB, free: 20.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.3294, allocations: 322.8 kB / 413.9 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3296, allocations: 60.19 kB / 414 MB, free: 20.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.3298, allocations: 152.2 kB / 414.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.3301, allocations: 231.8 kB / 414.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3302, allocations: 0 / 414.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004773/0.3306, allocations: 275.1 kB / 414.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.3307, allocations: 37.7 kB / 414.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3307, allocations: 3.938 kB / 414.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3307, allocations: 4 kB / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.3309, allocations: 43.91 kB / 414.7 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.3309, allocations: 15.91 kB / 414.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.3311, allocations: 23.89 kB / 414.8 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.3311, allocations: 19.94 kB / 414.8 MB, free: 19.7 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,$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.000101/0.3312, allocations: 141.7 kB / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3314, allocations: 101.5 kB / 415 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.374e-05/0.3314, allocations: 24.7 kB / 415 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3315, allocations: 4 kB / 415.1 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3315, allocations: 3.938 kB / 415.1 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3315, allocations: 0 / 415.1 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005821/0.3321, allocations: 494.2 kB / 415.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3321, allocations: 3.938 kB / 415.5 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.3323, allocations: 39.97 kB / 415.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3323, allocations: 3.938 kB / 415.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.3323, allocations: 11.98 kB / 415.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3323, allocations: 0 / 415.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3323, allocations: 0 / 415.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008278/0.3331, allocations: 0.9725 MB / 416.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.455e-05/0.3332, allocations: 88.92 kB / 416.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.3333, allocations: 8 kB / 416.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3334, allocations: 15.97 kB / 416.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/0.3335, allocations: 19.98 kB / 416.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3335, allocations: 11.92 kB / 416.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.825e-05/0.3336, allocations: 113.9 kB / 416.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3336, allocations: 0 / 416.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003819/0.334, allocations: 39.88 kB / 416.9 MB, free: 17.48 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 9.524e-05/0.3341, allocations: 107.2 kB / 417 MB, free: 17.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004906/0.3346, allocations: 251 kB / 417.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3346, allocations: 7.938 kB / 417.2 MB, free: 17.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3348, allocations: 59.95 kB / 417.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.3352, allocations: 64.92 kB / 417.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006599/0.3359, allocations: 0.5527 MB / 417.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.3361, allocations: 0.7286 MB / 418.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.556e-05/0.3362, allocations: 17.42 kB / 418.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.661e-05/0.3362, allocations: 23.44 kB / 418.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3362, allocations: 0 / 418.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.004219/0.3404, allocations: 1.835 MB / 420.5 MB, free: 13.76 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@2/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