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.001322/0.001322, allocations: 110.3 kB / 20.22 MB, free: 1.812 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.001512/0.001512, allocations: 216.9 kB / 23.48 MB, free: 5.254 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.44/1.44, allocations: 230.4 MB / 257 MB, free: 8.254 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.001848/0.001848, allocations: 63.89 kB / 377.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2522, allocations: 53.31 MB / 430.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003495/0.2557, allocations: 2.03 MB / 432.4 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.257, allocations: 0.7012 MB / 433.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2572, allocations: 11.94 kB / 433.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.645e-05/0.2572, allocations: 15.8 kB / 433.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.2573, allocations: 27.73 kB / 433.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.2578, allocations: 131 kB / 433.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.258, allocations: 196 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.2582, allocations: 80.25 kB / 433.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.2584, allocations: 83.7 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.2586, allocations: 99.59 kB / 433.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.2586, allocations: 19.94 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.2587, allocations: 24 kB / 433.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.729e-05/0.2587, allocations: 43.89 kB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.572e-05/0.2588, allocations: 83.53 kB / 433.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003129/0.2591, allocations: 227.5 kB / 434.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2591, allocations: 3.938 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2591, allocations: 0 / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.2591, allocations: 0 / 434.1 MB, free: 3.488 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.0008959/0.26, allocations: 0.5336 MB / 434.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2601, allocations: 8.031 kB / 434.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.373e-05/0.2601, allocations: 54.73 kB / 434.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.2603, allocations: 36.72 kB / 434.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.2606, allocations: 232.6 kB / 435 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.482e-05/0.2607, allocations: 46.33 kB / 435 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.2607, allocations: 20 kB / 435 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007073/0.2615, allocations: 333.7 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2615, allocations: 0 / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.2615, allocations: 8 kB / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.2615, allocations: 4 kB / 435.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.2619, allocations: 127.9 kB / 435.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007028/0.2626, allocations: 465.3 kB / 436 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/0.2631, allocations: 189.2 kB / 436.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.2634, allocations: 93.84 kB / 436.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.2634, allocations: 12 kB / 436.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003057/0.2637, allocations: 123.3 kB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.2637, allocations: 0 / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008145/0.2645, allocations: 282 kB / 436.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/0.2646, allocations: 89.33 kB / 436.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2647, allocations: 154.4 kB / 436.9 MB, free: 480 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.2648, allocations: 29.7 kB / 436.9 MB, free: 444 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.2649, allocations: 116.5 kB / 437 MB, free: 324 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/0.2649, allocations: 35.73 kB / 437.1 MB, free: 288 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.751e-05/0.265, allocations: 49.7 kB / 437.1 MB, free: 232 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2651, allocations: 334.8 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.2653, allocations: 64.19 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.2656, allocations: 147.4 kB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.266, allocations: 234.8 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.266, allocations: 0 / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005772/0.2666, allocations: 278.9 kB / 438.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/0.2666, allocations: 33.7 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2667, allocations: 0 / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.2667, allocations: 11.88 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2669, allocations: 43.97 kB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.2669, allocations: 8.281 kB / 438.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.2671, allocations: 35.81 kB / 438.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.2671, allocations: 15.98 kB / 438.3 MB, free: 14.94 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.0001449/0.2672, allocations: 137.8 kB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.2674, allocations: 101.5 kB / 438.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.2675, allocations: 28.64 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2675, allocations: 4 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2675, allocations: 0 / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.2675, allocations: 7.938 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007681/0.2683, allocations: 0.4904 MB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2683, allocations: 0 / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.2684, allocations: 35.97 kB / 439.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2685, allocations: 0 / 439.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.2685, allocations: 15.88 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2685, allocations: 7.984 kB / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2685, allocations: 0 / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005771/0.2691, allocations: 319.5 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.2691, allocations: 96.94 kB / 439.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.2692, allocations: 11.94 kB / 439.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.2693, allocations: 19.98 kB / 439.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.2694, allocations: 19.97 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.2694, allocations: 4 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.606e-05/0.2695, allocations: 115.2 kB / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2695, allocations: 0 / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.2698, allocations: 35.94 kB / 439.7 MB, free: 13.4 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.001185/0.271, allocations: 0.9695 MB / 440.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.2715, allocations: 247 kB / 440.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2715, allocations: 0 / 440.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.2717, allocations: 51.97 kB / 441 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.2721, allocations: 63.88 kB / 441 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.275, allocations: 2.16 MB / 443.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.2754, allocations: 0.7283 MB / 443.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.314e-05/0.2755, allocations: 17.55 kB / 444 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2756, allocations: 55.36 kB / 444 MB, free: 8.895 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2756, allocations: 0 / 444 MB, free: 8.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.3026, allocations: 3.808 MB / 447.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.111/8.414, allocations: 15.97 kB / 447.8 MB, free: 5.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 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.658152919029817] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 8.485146284801885 8.512175246 8.247732495 Calling exit ...