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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 111.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 213.9 kB / 19.4 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 60.09 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3212, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003365/0.3246, allocations: 1.991 MB / 411.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.3258, allocations: 0.705 MB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.326, allocations: 4 kB / 412.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.663e-05/0.3261, allocations: 19.73 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.3262, allocations: 19.73 kB / 412.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.3266, allocations: 123.8 kB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.3269, allocations: 211.9 kB / 413 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.3271, allocations: 96.3 kB / 413.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.3273, allocations: 95.67 kB / 413.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.3275, allocations: 91.59 kB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.3275, allocations: 20 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.002e-05/0.3276, allocations: 20 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.3276, allocations: 43.84 kB / 413.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.2e-05/0.3277, allocations: 87.52 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.328, allocations: 227 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.328, allocations: 0 / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.328, allocations: 0 / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.328, allocations: 4 kB / 413.6 MB, free: 13.86 MB / 334.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.0008647/0.3289, allocations: 0.5233 MB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.329, allocations: 8.031 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.3291, allocations: 24.75 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.3295, allocations: 255.8 kB / 414.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/0.3296, allocations: 42.53 kB / 414.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.3296, allocations: 27.88 kB / 414.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.3303, allocations: 322.9 kB / 414.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3303, allocations: 4 kB / 414.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.3303, allocations: 4 kB / 414.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3303, allocations: 4 kB / 414.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.3308, allocations: 131.8 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.3314, allocations: 461.3 kB / 415.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.3319, allocations: 197.1 kB / 415.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.3322, allocations: 109.7 kB / 415.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3322, allocations: 0 / 415.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.3325, allocations: 123.4 kB / 415.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.3325, allocations: 0 / 415.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008064/0.3334, allocations: 285.9 kB / 416.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.3334, allocations: 89.05 kB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.3336, allocations: 157.4 kB / 416.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.3336, allocations: 29.7 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.762e-05/0.3337, allocations: 120.5 kB / 416.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.3337, allocations: 43.53 kB / 416.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.822e-05/0.3338, allocations: 41.7 kB / 416.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.334, allocations: 330.8 kB / 416.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.3342, allocations: 64.19 kB / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.3344, allocations: 150.7 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.3348, allocations: 231.7 kB / 417.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3349, allocations: 4 kB / 417.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005553/0.3354, allocations: 278.8 kB / 417.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.3355, allocations: 33.17 kB / 417.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3355, allocations: 11.98 kB / 417.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3355, allocations: 4 kB / 417.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.3357, allocations: 43.91 kB / 417.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.3358, allocations: 4 kB / 417.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.3359, allocations: 23.89 kB / 417.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.336, allocations: 19.94 kB / 417.8 MB, free: 9.375 MB / 334.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.0001404/0.3361, allocations: 149.9 kB / 417.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.3363, allocations: 109.4 kB / 418 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.359e-05/0.3364, allocations: 24.66 kB / 418 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.3364, allocations: 4 kB / 418.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3364, allocations: 0 / 418.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3364, allocations: 3.984 kB / 418.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007092/0.3371, allocations: 494.1 kB / 418.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3371, allocations: 4 kB / 418.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.3373, allocations: 47.89 kB / 418.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3373, allocations: 0 / 418.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3374, allocations: 8 kB / 418.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3374, allocations: 3.938 kB / 418.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3374, allocations: 0 / 418.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005723/0.338, allocations: 324 kB / 418.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.957e-05/0.338, allocations: 88.92 kB / 419 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.3381, allocations: 8 kB / 419 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3383, allocations: 19.91 kB / 419 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.3383, allocations: 19.92 kB / 419 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.3384, allocations: 7.984 kB / 419.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.575e-05/0.3384, allocations: 114.3 kB / 419.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3384, allocations: 4 kB / 419.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.3387, allocations: 43.84 kB / 419.2 MB, free: 7.812 MB / 334.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.000136/0.3389, allocations: 115.2 kB / 419.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005456/0.3394, allocations: 231.6 kB / 419.6 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3395, allocations: 8.25 kB / 419.6 MB, free: 7.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.3397, allocations: 55.95 kB / 419.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.3401, allocations: 64.94 kB / 419.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006484/0.3408, allocations: 347.1 kB / 420 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.341, allocations: 0.7283 MB / 420.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.338e-05/0.3411, allocations: 27.42 kB / 420.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3411, allocations: 0 / 420.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of Templates: time 0.004069/0.3452, allocations: 2.206 MB / 423 MB, free: 3.98 MB / 334.1 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/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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches