Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0-beta_om_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.001479/0.001479, 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.001592/0.001592, 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 4.1.0-beta.om/package.mo): time 1.501/1.501, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 67.88 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3229, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003334/0.3263, allocations: 1.987 MB / 411 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.3276, allocations: 0.7051 MB / 411.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.3277, allocations: 3.938 kB / 411.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.614e-05/0.3278, allocations: 15.8 kB / 411.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.3279, allocations: 23.73 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.3283, allocations: 127.7 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.3286, allocations: 204 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.3288, allocations: 104.3 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.329, allocations: 87.67 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.3292, allocations: 91.59 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.3292, allocations: 20 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.3293, allocations: 27.94 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.3294, allocations: 39.84 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.813e-05/0.3295, allocations: 95.52 kB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.3298, allocations: 218.1 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3298, allocations: 3.938 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3298, allocations: 0 / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.3298, allocations: 0 / 412.8 MB, free: 13.62 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.000896/0.3307, allocations: 0.5297 MB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3308, allocations: 8.031 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.016e-05/0.3308, allocations: 54.73 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.331, allocations: 28.8 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3313, allocations: 250 kB / 413.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/0.3314, allocations: 46.28 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.3315, allocations: 16 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007636/0.3322, allocations: 327 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3323, allocations: 0 / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.3323, allocations: 4 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.3323, allocations: 4 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004421/0.3328, allocations: 135.9 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006997/0.3335, allocations: 465.3 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.334, allocations: 201.1 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.3343, allocations: 101.7 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.3343, allocations: 4 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.3347, allocations: 127.4 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.863e-06/0.3347, allocations: 0 / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008362/0.3355, allocations: 281.3 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.98e-05/0.3356, allocations: 85.11 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.3358, allocations: 162.4 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.3358, allocations: 25.7 kB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.129e-05/0.3359, allocations: 116.6 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.3359, allocations: 43.78 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.139e-05/0.336, allocations: 45.7 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3362, allocations: 330.8 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.3364, allocations: 64.19 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.3367, allocations: 150.6 kB / 416.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004545/0.3371, allocations: 238.9 kB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3371, allocations: 0 / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006325/0.3378, allocations: 275.2 kB / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.3378, allocations: 29.7 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3378, allocations: 4 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3379, allocations: 7.984 kB / 416.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.3381, allocations: 47.91 kB / 416.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3381, allocations: 7.938 kB / 416.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.3383, allocations: 31.81 kB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.3383, allocations: 15.98 kB / 417 MB, free: 9.062 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.0001388/0.3385, allocations: 149.8 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.3387, allocations: 97.58 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.801e-05/0.3387, allocations: 24.72 kB / 417.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3387, allocations: 11.88 kB / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3388, allocations: 0 / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.3388, allocations: 3.938 kB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00076/0.3395, allocations: 498.2 kB / 417.7 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3395, allocations: 0 / 417.7 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.3397, allocations: 35.97 kB / 417.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.3398, allocations: 3.984 kB / 417.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.3398, allocations: 11.94 kB / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3398, allocations: 0 / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3398, allocations: 0 / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.3404, allocations: 331.2 kB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.01e-05/0.3405, allocations: 92.95 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.3405, allocations: 15.88 kB / 418.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.3407, allocations: 19.97 kB / 418.2 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.3408, allocations: 15.98 kB / 418.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.3408, allocations: 7.984 kB / 418.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.3409, allocations: 115.3 kB / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3409, allocations: 0 / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.3412, allocations: 32 kB / 418.4 MB, free: 7.512 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.001184/0.3424, allocations: 0.9668 MB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000567/0.343, allocations: 247.5 kB / 419.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.343, allocations: 0 / 419.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.3432, allocations: 72.06 kB / 419.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.3436, allocations: 76.34 kB / 419.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.3466, allocations: 2.147 MB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.3469, allocations: 0.7283 MB / 422.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.694e-05/0.347, allocations: 13.55 kB / 422.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.3471, allocations: 55.41 kB / 422.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3471, allocations: 0 / 422.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3724, allocations: 3.791 MB / 426.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.572/8.944, allocations: 7.938 kB / 426.5 MB, free: 15.35 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)