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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001461/0.001461, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 8.07 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001888/0.001888, allocations: 64.77 kB / 378.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2881, allocations: 53.37 MB / 431.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004718/0.2928, allocations: 2.022 MB / 433.9 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.2947, allocations: 0.7167 MB / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.2949, allocations: 7.938 kB / 434.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.725e-05/0.2949, allocations: 19.73 kB / 434.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.2951, allocations: 23.73 kB / 434.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006301/0.2957, allocations: 135.7 kB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.2961, allocations: 200 kB / 435 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.2964, allocations: 72.81 kB / 435.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.2967, allocations: 99.69 kB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.2968, allocations: 79.62 kB / 435.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.116e-05/0.2969, allocations: 23.94 kB / 435.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.946e-05/0.297, allocations: 24 kB / 435.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.574e-05/0.297, allocations: 43.89 kB / 435.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.2972, allocations: 87.53 kB / 435.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004197/0.2976, allocations: 223.9 kB / 435.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2976, allocations: 4 kB / 435.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.2976, allocations: 4 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.2976, allocations: 0 / 435.7 MB, free: 3.156 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.001178/0.2988, allocations: 469.3 kB / 436.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.294e-05/0.2988, allocations: 12.03 kB / 436.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.144e-05/0.2989, allocations: 46.73 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002269/0.2991, allocations: 32.73 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.2996, allocations: 182.8 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.2997, allocations: 76.03 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.2997, allocations: 16 kB / 436.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3008, allocations: 327 kB / 436.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3008, allocations: 0 / 436.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.3008, allocations: 11.98 kB / 436.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3008, allocations: 0 / 436.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006438/0.3015, allocations: 131.8 kB / 436.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009897/0.3025, allocations: 440.4 kB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007612/0.3032, allocations: 185.2 kB / 437.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/0.3036, allocations: 97.66 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.822e-05/0.3037, allocations: 7.984 kB / 437.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.3041, allocations: 120.6 kB / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.284e-06/0.3041, allocations: 0 / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001229/0.3053, allocations: 289.6 kB / 438.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3054, allocations: 96.98 kB / 438.2 MB, free: 468 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.3056, allocations: 151.2 kB / 438.3 MB, free: 304 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.3057, allocations: 29.7 kB / 438.3 MB, free: 268 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3058, allocations: 112.5 kB / 438.4 MB, free: 152 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.389e-05/0.3058, allocations: 47.8 kB / 438.5 MB, free: 104 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.306, allocations: 49.69 kB / 438.5 MB, free: 48 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.3062, allocations: 326.8 kB / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.3065, allocations: 60.19 kB / 438.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.3068, allocations: 146.7 kB / 439.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006544/0.3075, allocations: 238.5 kB / 439.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3075, allocations: 0 / 439.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008811/0.3084, allocations: 278.9 kB / 439.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.3084, allocations: 34.05 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3084, allocations: 4 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.3085, allocations: 4 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.3087, allocations: 43.91 kB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.3088, allocations: 4 kB / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.309, allocations: 39.8 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.309, allocations: 12 kB / 439.7 MB, free: 14.78 MB / 350.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.0001892/0.3092, allocations: 137.5 kB / 439.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3095, allocations: 113.6 kB / 439.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.458e-05/0.3096, allocations: 24.64 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.3096, allocations: 7.938 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3096, allocations: 0 / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3096, allocations: 3.938 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009596/0.3106, allocations: 465.3 kB / 440.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3106, allocations: 4 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.3108, allocations: 39.91 kB / 440.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.3108, allocations: 4 kB / 440.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.3108, allocations: 7.938 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.3109, allocations: 3.984 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3109, allocations: 4 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.3117, allocations: 323.7 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.3117, allocations: 27.77 kB / 440.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.461e-05/0.3117, allocations: 7.938 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.312, allocations: 19.98 kB / 440.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/0.3121, allocations: 11.97 kB / 440.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.3121, allocations: 8 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.3122, allocations: 111.2 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3122, allocations: 4 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004792/0.3127, allocations: 36 kB / 441 MB, free: 13.35 MB / 350.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.001713/0.3144, allocations: 0.9617 MB / 442 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000853/0.3153, allocations: 239 kB / 442.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3153, allocations: 0 / 442.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/0.3156, allocations: 65.41 kB / 442.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.3163, allocations: 66.3 kB / 442.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004252/0.3205, allocations: 2.163 MB / 444.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.321, allocations: 0.7283 MB / 445.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.3211, allocations: 17.48 kB / 445.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.3213, allocations: 51.41 kB / 445.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3213, allocations: 0 / 445.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03406/0.3553, allocations: 3.931 MB / 449.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/8.089, allocations: 0 / 449.3 MB, free: 5.023 MB / 350.1 MB " [Timeout remaining time 652] (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.000392542 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.480414212215692] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 8.157064710278064 8.172522463 7.871768338 Calling exit ...