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.001199/0.001199, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001279/0.001279, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.327/1.327, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.0015/0.0015, allocations: 47.92 kB / 371.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.242, allocations: 52.18 MB / 423.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003459/0.2455, allocations: 1.94 MB / 425.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2466, allocations: 0.6077 MB / 425.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2467, allocations: 7.938 kB / 425.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.756e-05/0.2468, allocations: 15.8 kB / 425.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2469, allocations: 23.73 kB / 425.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.2473, allocations: 115.8 kB / 426 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.2476, allocations: 196 kB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.2478, allocations: 75.2 kB / 426.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.2479, allocations: 91.66 kB / 426.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.248, allocations: 91.59 kB / 426.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.881e-05/0.2481, allocations: 20 kB / 426.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.337e-05/0.2481, allocations: 20 kB / 426.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.2482, allocations: 55.83 kB / 426.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.553e-05/0.2483, allocations: 67.66 kB / 426.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.2485, allocations: 219 kB / 426.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2485, allocations: 0 / 426.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2485, allocations: 0 / 426.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.2486, allocations: 0 / 426.9 MB, free: 10.99 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.0008819/0.2494, allocations: 465.2 kB / 427.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2495, allocations: 12.03 kB / 427.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.858e-05/0.2495, allocations: 8.516 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.2495, allocations: 50.73 kB / 427.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.955e-05/0.2496, allocations: 20.84 kB / 427.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.2499, allocations: 174.8 kB / 427.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.27e-05/0.25, allocations: 71.86 kB / 427.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.25, allocations: 16 kB / 427.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007404/0.2508, allocations: 364.6 kB / 428 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2508, allocations: 3.984 kB / 428 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.2508, allocations: 4 kB / 428 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2508, allocations: 7.938 kB / 428 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.2512, allocations: 127.9 kB / 428.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.2519, allocations: 400.4 kB / 428.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.2524, allocations: 189.2 kB / 428.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.2526, allocations: 93.66 kB / 428.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.2527, allocations: 4 kB / 428.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.253, allocations: 137 kB / 429 MB, free: 8.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.253, allocations: 0 / 429 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008248/0.2538, allocations: 286.2 kB / 429.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/0.2539, allocations: 101.2 kB / 429.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.254, allocations: 148.2 kB / 429.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.254, allocations: 29.7 kB / 429.5 MB, free: 8.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.56e-05/0.2541, allocations: 124.5 kB / 429.6 MB, free: 7.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.2542, allocations: 43.67 kB / 429.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.961e-05/0.2543, allocations: 45.7 kB / 429.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2544, allocations: 326.8 kB / 430 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.2546, allocations: 93.89 kB / 430.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.2549, allocations: 165.8 kB / 430.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.2553, allocations: 239.4 kB / 430.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2553, allocations: 0 / 430.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005828/0.2559, allocations: 304.6 kB / 430.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.13e-05/0.2559, allocations: 40.97 kB / 430.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2559, allocations: 4 kB / 430.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.256, allocations: 4 kB / 430.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.2562, allocations: 47.84 kB / 430.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2562, allocations: 4.344 kB / 430.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.2563, allocations: 31.88 kB / 431 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.2564, allocations: 12 kB / 431 MB, free: 6.508 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.0001448/0.2565, allocations: 145.5 kB / 431.1 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.2567, allocations: 113.5 kB / 431.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.24e-05/0.2568, allocations: 16.72 kB / 431.2 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2568, allocations: 7.938 kB / 431.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2568, allocations: 0 / 431.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.2568, allocations: 7.984 kB / 431.3 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007243/0.2575, allocations: 441.4 kB / 431.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2575, allocations: 4 kB / 431.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.2577, allocations: 51.78 kB / 431.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2577, allocations: 0 / 431.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.2577, allocations: 11.97 kB / 431.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2577, allocations: 4 kB / 431.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2577, allocations: 0 / 431.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000581/0.2583, allocations: 323.5 kB / 432.1 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.2584, allocations: 27.77 kB / 432.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.2584, allocations: 4 kB / 432.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.2586, allocations: 15.98 kB / 432.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.2586, allocations: 19.97 kB / 432.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.2587, allocations: 7.938 kB / 432.2 MB, free: 5.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.27e-05/0.2587, allocations: 116.9 kB / 432.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2587, allocations: 0 / 432.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.259, allocations: 32 kB / 432.3 MB, free: 5.102 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.001205/0.2602, allocations: 0.9551 MB / 433.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005952/0.2608, allocations: 273.2 kB / 433.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2608, allocations: 0 / 433.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.261, allocations: 59.91 kB / 433.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.2614, allocations: 66.98 kB / 433.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.2644, allocations: 2.256 MB / 435.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.2645, allocations: 128.3 kB / 436 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.147e-05/0.2645, allocations: 13.42 kB / 436 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.2647, allocations: 47.42 kB / 436.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2647, allocations: 4 kB / 436.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.289, allocations: 4.065 MB / 440.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.09, allocations: 0 / 440.2 MB, free: 13.16 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.299668677034788] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 11.252850282005966 11.270119454 11.018301907 Calling exit ...