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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 225.7 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 39.94 kB / 371.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2607, allocations: 52.18 MB / 423.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003376/0.2641, allocations: 2.025 MB / 425.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2653, allocations: 0.6466 MB / 426.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.2654, allocations: 4 kB / 426.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.694e-05/0.2654, allocations: 19.73 kB / 426.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.2655, allocations: 27.73 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.2659, allocations: 107.8 kB / 426.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.2662, allocations: 208 kB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.2663, allocations: 68.84 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.2665, allocations: 91.69 kB / 426.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.2666, allocations: 91.59 kB / 426.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.2667, allocations: 20 kB / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.012e-05/0.2667, allocations: 20 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.922e-05/0.2667, allocations: 39.86 kB / 426.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.295e-05/0.2668, allocations: 87.58 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.2671, allocations: 227.9 kB / 427.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2671, allocations: 3.938 kB / 427.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2671, allocations: 0 / 427.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2671, allocations: 0 / 427.1 MB, free: 10.97 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.0008685/0.268, allocations: 457.3 kB / 427.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.268, allocations: 8.031 kB / 427.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.917e-05/0.268, allocations: 4.516 kB / 427.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.713e-05/0.2681, allocations: 62.67 kB / 427.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.502e-05/0.2682, allocations: 20.83 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.2684, allocations: 176.6 kB / 427.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.331e-05/0.2685, allocations: 67.86 kB / 427.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/0.2686, allocations: 23.98 kB / 427.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007201/0.2693, allocations: 330.4 kB / 428.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2693, allocations: 0 / 428.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.2693, allocations: 8 kB / 428.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2693, allocations: 4 kB / 428.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.2698, allocations: 135.8 kB / 428.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006753/0.2704, allocations: 424.5 kB / 428.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.2709, allocations: 193.1 kB / 428.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.2712, allocations: 101.6 kB / 429 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2712, allocations: 4 kB / 429 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002929/0.2715, allocations: 119.5 kB / 429.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.522e-06/0.2715, allocations: 0 / 429.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000811/0.2723, allocations: 282 kB / 429.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.2724, allocations: 89.33 kB / 429.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.2726, allocations: 156 kB / 429.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.2726, allocations: 29.7 kB / 429.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.2727, allocations: 116.5 kB / 429.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.2727, allocations: 43.73 kB / 429.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.505e-05/0.2728, allocations: 53.69 kB / 429.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.273, allocations: 326.8 kB / 430.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.2732, allocations: 60.19 kB / 430.3 MB, free: 7.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.2734, allocations: 144.1 kB / 430.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004466/0.2739, allocations: 239 kB / 430.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2739, allocations: 0 / 430.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005873/0.2745, allocations: 275.3 kB / 430.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.2745, allocations: 33.7 kB / 431 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2745, allocations: 0 / 431 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.2745, allocations: 4 kB / 431 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.2747, allocations: 51.84 kB / 431 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2747, allocations: 4 kB / 431 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.2749, allocations: 35.81 kB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.2749, allocations: 12 kB / 431.1 MB, free: 6.629 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.000155/0.2751, allocations: 153.5 kB / 431.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.2753, allocations: 109.4 kB / 431.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6e-05/0.2754, allocations: 24.7 kB / 431.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.2754, allocations: 7.938 kB / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2754, allocations: 0 / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2754, allocations: 0 / 431.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007642/0.2761, allocations: 461.4 kB / 431.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2761, allocations: 0 / 431.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.2763, allocations: 43.89 kB / 431.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2763, allocations: 3.938 kB / 431.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.2764, allocations: 8 kB / 431.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2764, allocations: 0 / 431.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2764, allocations: 0 / 431.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.277, allocations: 331.5 kB / 432.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.277, allocations: 19.78 kB / 432.2 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.277, allocations: 8 kB / 432.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.2772, allocations: 19.97 kB / 432.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.162e-05/0.2773, allocations: 19.97 kB / 432.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.2773, allocations: 7.938 kB / 432.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.556e-05/0.2774, allocations: 122.4 kB / 432.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2774, allocations: 0 / 432.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.2777, allocations: 28 kB / 432.4 MB, free: 5.207 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.001223/0.2789, allocations: 0.9628 MB / 433.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.2795, allocations: 235.1 kB / 433.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2795, allocations: 4.688 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.2797, allocations: 63.95 kB / 433.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.2801, allocations: 63.92 kB / 433.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.2831, allocations: 2.144 MB / 435.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.2835, allocations: 0.7322 MB / 436.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.997e-05/0.2835, allocations: 13.42 kB / 436.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.2837, allocations: 51.42 kB / 436.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2837, allocations: 0 / 436.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.3085, allocations: 4.025 MB / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.97, allocations: 4 kB / 440.7 MB, free: 12.84 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.269974000984803] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 11.129224816977512 11.150072231 10.879969989 Calling exit ...