Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001483/0.001483, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.00163/0.00163, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.675/1.675, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 55.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.142, allocations: 53.38 MB / 427 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004734/0.1468, allocations: 2 MB / 429 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.1486, allocations: 0.7128 MB / 429.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.1489, allocations: 7.938 kB / 429.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.192e-05/0.1489, allocations: 15.8 kB / 429.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.1491, allocations: 27.72 kB / 429.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006494/0.1498, allocations: 126.6 kB / 429.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.1502, allocations: 204 kB / 430.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.1504, allocations: 76.31 kB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.1508, allocations: 87.7 kB / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.151, allocations: 91.59 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.445e-05/0.1511, allocations: 20 kB / 430.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.725e-05/0.1511, allocations: 20 kB / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.795e-05/0.1512, allocations: 47.83 kB / 430.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.1514, allocations: 91.47 kB / 430.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.1518, allocations: 223 kB / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1518, allocations: 0 / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1518, allocations: 4 kB / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.1518, allocations: 7.938 kB / 430.8 MB, free: 0.8398 MB / 350.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.00128/0.1531, allocations: 0.5296 MB / 431.3 MB, free: 252 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.1532, allocations: 8.031 kB / 431.3 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.38e-05/0.1532, allocations: 4.516 kB / 431.3 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.331e-05/0.1533, allocations: 54.73 kB / 431.4 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.1535, allocations: 36.78 kB / 431.4 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.154, allocations: 231.5 kB / 431.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.885e-05/0.1541, allocations: 42.16 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.1541, allocations: 16 kB / 431.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008465/0.155, allocations: 336.7 kB / 432 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.155, allocations: 3.938 kB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.155, allocations: 8 kB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.155, allocations: 8 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.1555, allocations: 131.9 kB / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.1566, allocations: 465.3 kB / 432.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.1572, allocations: 193.1 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004017/0.1576, allocations: 93.66 kB / 432.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.665e-05/0.1577, allocations: 12.06 kB / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.158, allocations: 115.5 kB / 433 MB, free: 14.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.304e-06/0.158, allocations: 4 kB / 433 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009385/0.159, allocations: 290 kB / 433.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.1591, allocations: 93.09 kB / 433.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.1593, allocations: 150.4 kB / 433.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.431e-05/0.1593, allocations: 33.7 kB / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1594, allocations: 116.6 kB / 433.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.1595, allocations: 35.73 kB / 433.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1596, allocations: 45.7 kB / 433.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.1598, allocations: 326.8 kB / 434.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/0.16, allocations: 64.17 kB / 434.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.1603, allocations: 146.7 kB / 434.3 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.1609, allocations: 231.8 kB / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1609, allocations: 0 / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006475/0.1615, allocations: 273.3 kB / 434.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/0.1616, allocations: 49.62 kB / 434.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.1616, allocations: 4 kB / 434.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.1616, allocations: 7.938 kB / 434.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.1619, allocations: 39.91 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.1619, allocations: 7.938 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1621, allocations: 35.81 kB / 434.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.1621, allocations: 11.98 kB / 435 MB, free: 12.29 MB / 366.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.0001707/0.1623, allocations: 141.8 kB / 435.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.1625, allocations: 105.6 kB / 435.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.1626, allocations: 16.72 kB / 435.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1626, allocations: 4 kB / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1626, allocations: 0 / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.1626, allocations: 11.92 kB / 435.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009131/0.1635, allocations: 498.1 kB / 435.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1636, allocations: 0 / 435.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.1638, allocations: 43.95 kB / 435.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.1638, allocations: 4 kB / 435.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.1638, allocations: 3.938 kB / 435.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1638, allocations: 4 kB / 435.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.1638, allocations: 4 kB / 435.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007102/0.1645, allocations: 324.8 kB / 436.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.1646, allocations: 96.95 kB / 436.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.1646, allocations: 11.92 kB / 436.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.1648, allocations: 19.98 kB / 436.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.1649, allocations: 15.97 kB / 436.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.1649, allocations: 11.98 kB / 436.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.165, allocations: 115.3 kB / 436.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.165, allocations: 0 / 436.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.1654, allocations: 35.98 kB / 436.4 MB, free: 10.73 MB / 366.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.001402/0.1668, allocations: 0.9667 MB / 437.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.1676, allocations: 239 kB / 437.6 MB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1676, allocations: 0.75 kB / 437.6 MB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002223/0.1678, allocations: 59.95 kB / 437.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.1683, allocations: 60.81 kB / 437.7 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.172, allocations: 2.171 MB / 439.9 MB, free: 7.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004818/0.1725, allocations: 0.7321 MB / 440.6 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.553e-05/0.1726, allocations: 9.562 kB / 440.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.1727, allocations: 55.41 kB / 440.7 MB, free: 6.219 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1727, allocations: 0 / 440.7 MB, free: 6.219 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02894/0.2017, allocations: 3.842 MB / 444.5 MB, free: 2.539 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/8.645, allocations: 13.33 kB / 444.5 MB, free: 2.531 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.606775241030846] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 8.774556357006077 8.974709034 8.820370643 Calling exit ...