Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 113.5 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 200 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009636/0.0009636, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3718, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003754/0.3756, allocations: 1.981 MB / 402.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.3768, allocations: 0.6427 MB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3769, allocations: 0 / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.616e-05/0.377, allocations: 23.73 kB / 402.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.3771, allocations: 15.8 kB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.3776, allocations: 111.7 kB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000272/0.3778, allocations: 204 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.3781, allocations: 104.3 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.3782, allocations: 87.69 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.3784, allocations: 87.61 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.3784, allocations: 20 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.951e-05/0.3785, allocations: 20 kB / 403.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.237e-05/0.3785, allocations: 47.83 kB / 403.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3786, allocations: 79.59 kB / 403.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.379, allocations: 226 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.379, allocations: 4 kB / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.379, allocations: 0 / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3791, allocations: 4 kB / 403.9 MB, free: 5.18 MB / 318.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.0009558/0.38, allocations: 0.5257 MB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3801, allocations: 8.031 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.517e-05/0.3801, allocations: 50.73 kB / 404.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.695e-05/0.3802, allocations: 16.84 kB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.3805, allocations: 234.3 kB / 404.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.348e-05/0.3806, allocations: 58.27 kB / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.3807, allocations: 16 kB / 404.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006916/0.3814, allocations: 327 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3814, allocations: 0 / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3814, allocations: 8 kB / 405.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.3814, allocations: 0 / 405.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.3818, allocations: 135.8 kB / 405.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000758/0.3826, allocations: 453.4 kB / 405.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005054/0.3831, allocations: 205.1 kB / 405.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.3834, allocations: 105.6 kB / 406 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.3835, allocations: 12.06 kB / 406 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003239/0.3838, allocations: 119.4 kB / 406.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.3838, allocations: 0 / 406.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008647/0.3847, allocations: 281.4 kB / 406.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3848, allocations: 93.05 kB / 406.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.385, allocations: 156.4 kB / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.385, allocations: 29.7 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.383e-05/0.3851, allocations: 116.5 kB / 406.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.3851, allocations: 39.67 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-05/0.3852, allocations: 49.69 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3854, allocations: 330.8 kB / 407.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.3856, allocations: 60.19 kB / 407.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.3858, allocations: 147.4 kB / 407.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.3863, allocations: 227.8 kB / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.3863, allocations: 0 / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005628/0.3869, allocations: 282.2 kB / 407.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.3869, allocations: 33.7 kB / 407.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3869, allocations: 0 / 407.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.387, allocations: 4 kB / 407.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.3872, allocations: 48.25 kB / 408 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.3872, allocations: 7.938 kB / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.3874, allocations: 31.83 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.3874, allocations: 23.98 kB / 408 MB, free: 0.6484 MB / 318.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.0001712/0.3876, allocations: 141.7 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.3878, allocations: 109.5 kB / 408.3 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.009e-05/0.3879, allocations: 20.72 kB / 408.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3879, allocations: 4 kB / 408.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3879, allocations: 7.938 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3879, allocations: 3.984 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007957/0.3887, allocations: 483.3 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3887, allocations: 0 / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.3889, allocations: 51.83 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3889, allocations: 3.938 kB / 408.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.389, allocations: 8 kB / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.389, allocations: 0 / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.389, allocations: 0 / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005871/0.3896, allocations: 324.1 kB / 409.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.867e-05/0.3897, allocations: 100.9 kB / 409.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.3897, allocations: 8 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.3899, allocations: 19.97 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.081e-05/0.39, allocations: 15.98 kB / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.39, allocations: 7.984 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.375e-05/0.3901, allocations: 114.3 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3901, allocations: 3.938 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002894/0.3904, allocations: 32 kB / 409.4 MB, free: 15.11 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.001222/0.3916, allocations: 0.9766 MB / 410.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005602/0.3922, allocations: 243.2 kB / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3922, allocations: 0 / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.3924, allocations: 63.89 kB / 410.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.3929, allocations: 67.72 kB / 410.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.3959, allocations: 2.148 MB / 412.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.3962, allocations: 0.7243 MB / 413.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.621e-05/0.3963, allocations: 17.42 kB / 413.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.3964, allocations: 55.41 kB / 413.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.294e-06/0.3964, allocations: 0 / 413.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.4192, allocations: 3.732 MB / 417.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.523, allocations: 16.36 kB / 417.5 MB, free: 7 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches