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.001211/0.001211, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001376/0.001376, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.502/1.502, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.002956/0.002956, allocations: 59.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3126, allocations: 53.41 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003929/0.3166, allocations: 1.963 MB / 433.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3181, allocations: 0.6622 MB / 434.5 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.3183, allocations: 4 kB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.693e-05/0.3183, allocations: 23.73 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.3185, allocations: 27.67 kB / 434.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.319, allocations: 123.8 kB / 434.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000314/0.3193, allocations: 204 kB / 434.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.3196, allocations: 74.94 kB / 435 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.3198, allocations: 95.62 kB / 435.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.32, allocations: 87.61 kB / 435.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.32, allocations: 24 kB / 435.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.387e-05/0.3201, allocations: 20 kB / 435.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.976e-05/0.3201, allocations: 51.83 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.118e-05/0.3202, allocations: 67.66 kB / 435.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.3206, allocations: 227 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3206, allocations: 0 / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3206, allocations: 0 / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3206, allocations: 0 / 435.5 MB, free: 2.828 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.0009042/0.3215, allocations: 477.3 kB / 436 MB, free: 2.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3215, allocations: 8.031 kB / 436 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.046e-05/0.3215, allocations: 4.516 kB / 436 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.3216, allocations: 54.73 kB / 436.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.3218, allocations: 32.78 kB / 436.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.3221, allocations: 174.2 kB / 436.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.3222, allocations: 75.78 kB / 436.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.3222, allocations: 19.94 kB / 436.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007276/0.3229, allocations: 352.7 kB / 436.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.323, allocations: 3.938 kB / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.323, allocations: 8 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.323, allocations: 3.984 kB / 436.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004291/0.3234, allocations: 143.8 kB / 436.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006848/0.3241, allocations: 396.5 kB / 437.2 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.3246, allocations: 189.1 kB / 437.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.3249, allocations: 93.67 kB / 437.5 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.3249, allocations: 7.984 kB / 437.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003387/0.3253, allocations: 145.2 kB / 437.7 MB, free: 500 kB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.3253, allocations: 0 / 437.7 MB, free: 500 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008308/0.3261, allocations: 282 kB / 437.9 MB, free: 212 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.3262, allocations: 93.27 kB / 438 MB, free: 100 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.3263, allocations: 154.4 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.3264, allocations: 37.7 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.3265, allocations: 112.6 kB / 438.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.3265, allocations: 39.73 kB / 438.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.952e-05/0.3266, allocations: 45.69 kB / 438.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3267, allocations: 326.8 kB / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.3269, allocations: 89.89 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.3272, allocations: 173.1 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.3277, allocations: 238.6 kB / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3277, allocations: 4 kB / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005848/0.3282, allocations: 300.6 kB / 439.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.3283, allocations: 36.2 kB / 439.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3283, allocations: 8.328 kB / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.3283, allocations: 11.94 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3285, allocations: 43.91 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3285, allocations: 4 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.3287, allocations: 31.81 kB / 439.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.3287, allocations: 12 kB / 439.7 MB, free: 14.32 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.000147/0.3289, allocations: 141.8 kB / 439.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.3291, allocations: 109.5 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.532e-05/0.3291, allocations: 24.72 kB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3291, allocations: 4 kB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3291, allocations: 3.938 kB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.3291, allocations: 7.922 kB / 439.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007383/0.3299, allocations: 445.3 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3299, allocations: 0 / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.3301, allocations: 39.91 kB / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3301, allocations: 0 / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.3301, allocations: 19.92 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3301, allocations: 0 / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.3301, allocations: 4 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005987/0.3307, allocations: 328.8 kB / 440.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.3307, allocations: 19.83 kB / 440.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.3308, allocations: 11.94 kB / 440.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.331, allocations: 15.98 kB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.331, allocations: 19.97 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.3311, allocations: 11.98 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.3312, allocations: 111.3 kB / 441 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3312, allocations: 0 / 441 MB, free: 12.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.3315, allocations: 32 kB / 441 MB, free: 12.9 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.001226/0.3327, allocations: 0.9628 MB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006023/0.3333, allocations: 264.8 kB / 442.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3333, allocations: 0 / 442.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.3335, allocations: 59.89 kB / 442.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.334, allocations: 64.62 kB / 442.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.3373, allocations: 2.28 MB / 444.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.3375, allocations: 112.4 kB / 444.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.778e-05/0.3376, allocations: 17.48 kB / 444.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3377, allocations: 51.41 kB / 444.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3377, allocations: 0 / 444.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3643, allocations: 4.118 MB / 448.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.39, allocations: 7.922 kB / 448.9 MB, free: 4.867 MB / 350.1 MB " [Timeout remaining time 648] (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: 13.934036468039267] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 11.550924398005009 11.565588729 11.241778844 Calling exit ...