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.001431/0.001431, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001367, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2877, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004069/0.2918, allocations: 1.999 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2933, allocations: 0.7012 MB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.2935, allocations: 0 / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.474e-05/0.2937, allocations: 19.73 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.2938, allocations: 27.73 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.2943, allocations: 119.8 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.2946, allocations: 208 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.2949, allocations: 107.8 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.2952, allocations: 95.67 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.2953, allocations: 91.59 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.2954, allocations: 23.94 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.515e-05/0.2955, allocations: 20 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.2955, allocations: 39.91 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2956, allocations: 87.52 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.296, allocations: 222.1 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.296, allocations: 0 / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.296, allocations: 0 / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.296, allocations: 0 / 412.5 MB, free: 13.8 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.0009695/0.297, allocations: 0.5336 MB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2971, allocations: 8.031 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.463e-05/0.2971, allocations: 54.73 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.2973, allocations: 32.73 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.2977, allocations: 244.6 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.972e-05/0.2978, allocations: 42.34 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.2978, allocations: 16 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007124/0.2985, allocations: 331 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2985, allocations: 0 / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.2986, allocations: 4 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2986, allocations: 4 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.299, allocations: 139.8 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006837/0.2997, allocations: 465.3 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.3002, allocations: 197.1 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002542/0.3005, allocations: 109.7 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.3005, allocations: 7.984 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.3008, allocations: 119.3 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.863e-06/0.3009, allocations: 0 / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008496/0.3017, allocations: 285.5 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.3018, allocations: 89.11 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.302, allocations: 165.4 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.302, allocations: 25.7 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.3021, allocations: 116.6 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.3021, allocations: 43.8 kB / 415.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.3022, allocations: 45.7 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3024, allocations: 334.8 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.3026, allocations: 60.19 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.3028, allocations: 146.7 kB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000445/0.3033, allocations: 235.7 kB / 416.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3033, allocations: 0 / 416.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005891/0.3039, allocations: 274.9 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.3039, allocations: 33.7 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-06/0.304, allocations: 3.984 kB / 416.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.304, allocations: 4.344 kB / 416.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.3042, allocations: 51.91 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3042, allocations: 4 kB / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.3044, allocations: 35.81 kB / 416.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.3045, allocations: 8 kB / 416.7 MB, free: 9.234 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.0001558/0.3046, allocations: 142 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.3048, allocations: 97.58 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.477e-05/0.3049, allocations: 28.66 kB / 416.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3049, allocations: 8 kB / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3049, allocations: 0 / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.3049, allocations: 7.922 kB / 416.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.3057, allocations: 490.2 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3057, allocations: 0 / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001936/0.3059, allocations: 43.89 kB / 417.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.3059, allocations: 7.938 kB / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.3059, allocations: 11.94 kB / 417.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.3059, allocations: 0 / 417.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3059, allocations: 0 / 417.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005658/0.3065, allocations: 320.1 kB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.093e-05/0.3066, allocations: 100.9 kB / 417.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.3066, allocations: 11.94 kB / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.3068, allocations: 23.91 kB / 417.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.3069, allocations: 15.98 kB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.3069, allocations: 11.98 kB / 418 MB, free: 7.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.3071, allocations: 114.3 kB / 418.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3071, allocations: 0 / 418.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.3074, allocations: 32 kB / 418.1 MB, free: 7.684 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.001158/0.3086, allocations: 0.9601 MB / 419.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005766/0.3092, allocations: 247 kB / 419.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3092, allocations: 0 / 419.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.3094, allocations: 67.89 kB / 419.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.3098, allocations: 76.72 kB / 419.4 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.3127, allocations: 2.166 MB / 421.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.3131, allocations: 0.7244 MB / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.534e-05/0.3132, allocations: 21.53 kB / 422.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3133, allocations: 55.41 kB / 422.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3133, allocations: 3.938 kB / 422.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.3367, allocations: 3.78 MB / 426.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.711, allocations: 2.812 kB / 426.2 MB, free: 15.51 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.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