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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001961/0.00196, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002449/0.002449, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003093/0.003093, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3254, allocations: 50.53 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003856/0.3293, allocations: 1.995 MB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.3308, allocations: 0.7012 MB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.331, allocations: 0 / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.145e-05/0.3311, allocations: 23.73 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.3312, allocations: 23.73 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005588/0.3318, allocations: 119.8 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000314/0.3321, allocations: 208 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.3324, allocations: 100.3 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.3326, allocations: 87.67 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.3328, allocations: 95.59 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.3329, allocations: 20 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.3329, allocations: 24 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.364e-05/0.333, allocations: 43.84 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.3331, allocations: 91.52 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003862/0.3335, allocations: 218.1 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3335, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3335, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.3335, allocations: 0 / 412.5 MB, free: 13.79 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.001036/0.3346, allocations: 0.5336 MB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.3346, allocations: 8.031 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.059e-05/0.3347, allocations: 50.73 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.3349, allocations: 28.8 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.3353, allocations: 251.9 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-05/0.3354, allocations: 46.28 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.3355, allocations: 24 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007594/0.3363, allocations: 326 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3363, allocations: 0 / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.3363, allocations: 12 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.3363, allocations: 4 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.3368, allocations: 127.9 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008227/0.3376, allocations: 465.3 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.3382, allocations: 197.4 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3385, allocations: 109.6 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.3385, allocations: 0 / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003459/0.3389, allocations: 127.2 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.953e-06/0.3389, allocations: 0 / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008818/0.3398, allocations: 281.3 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/0.3399, allocations: 89.11 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.3401, allocations: 158.4 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.3401, allocations: 29.7 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3402, allocations: 112.6 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.3403, allocations: 43.78 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.3404, allocations: 41.7 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3406, allocations: 330.8 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.3408, allocations: 72.12 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.3411, allocations: 142.7 kB / 416 MB, free: 9.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.3415, allocations: 243 kB / 416.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3416, allocations: 0 / 416.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006658/0.3422, allocations: 278.9 kB / 416.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.786e-05/0.3423, allocations: 29.7 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.3423, allocations: 7.984 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.3424, allocations: 4 kB / 416.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.3426, allocations: 47.91 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3426, allocations: 8.344 kB / 416.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.3428, allocations: 31.81 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.3428, allocations: 8 kB / 416.7 MB, free: 9.223 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.0001808/0.343, allocations: 146 kB / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.3433, allocations: 101.6 kB / 416.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.994e-05/0.3434, allocations: 20.72 kB / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.3434, allocations: 7.938 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3434, allocations: 3.938 kB / 416.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.3434, allocations: 15.91 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008525/0.3443, allocations: 490.2 kB / 417.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3443, allocations: 0 / 417.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.3445, allocations: 47.89 kB / 417.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3445, allocations: 0 / 417.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.3445, allocations: 7.938 kB / 417.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3446, allocations: 4 kB / 417.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3446, allocations: 0 / 417.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006346/0.3452, allocations: 322.6 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.329e-05/0.3453, allocations: 96.95 kB / 417.9 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.3453, allocations: 7.938 kB / 417.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.3455, allocations: 27.91 kB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.3456, allocations: 15.98 kB / 417.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3456, allocations: 7.984 kB / 418 MB, free: 7.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.3458, allocations: 114.3 kB / 418.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3458, allocations: 3.938 kB / 418.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003412/0.3461, allocations: 32 kB / 418.1 MB, free: 7.668 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.001294/0.3474, allocations: 0.9629 MB / 419.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.3481, allocations: 247 kB / 419.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3481, allocations: 0 / 419.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.3483, allocations: 67.83 kB / 419.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.3488, allocations: 67.91 kB / 419.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.3521, allocations: 2.163 MB / 421.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.3526, allocations: 0.7283 MB / 422.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.3527, allocations: 17.55 kB / 422.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.3529, allocations: 55.41 kB / 422.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of SimCode: time 2.504e-06/0.3529, allocations: 0 / 422.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.3831, allocations: 3.785 MB / 426.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.608/8.991, allocations: 0 / 426.2 MB, free: 15.5 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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