Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001236/0.001236, 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 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 218.2 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.346/1.346, allocations: 230.6 MB / 258.3 MB, free: 7.777 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 47.92 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.231, allocations: 53.37 MB / 431.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003305/0.2343, allocations: 1.948 MB / 433.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2355, allocations: 0.6778 MB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2356, allocations: 3.938 kB / 434.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.557e-05/0.2357, allocations: 19.8 kB / 434.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.2358, allocations: 19.73 kB / 434.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.2362, allocations: 138.9 kB / 434.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.2365, allocations: 204 kB / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.2367, allocations: 70.94 kB / 434.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.2369, allocations: 87.7 kB / 435 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.237, allocations: 95.59 kB / 435.1 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.237, allocations: 20 kB / 435.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.2371, allocations: 24 kB / 435.1 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.2371, allocations: 47.83 kB / 435.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.436e-05/0.2372, allocations: 71.59 kB / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.2375, allocations: 223.1 kB / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2375, allocations: 0 / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2375, allocations: 4 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2375, allocations: 3.938 kB / 435.5 MB, free: 3.023 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.0008015/0.2383, allocations: 469.3 kB / 435.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2384, allocations: 8.031 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.075e-05/0.2384, allocations: 4.516 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.951e-05/0.2384, allocations: 50.73 kB / 436 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.2386, allocations: 36.72 kB / 436 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.2389, allocations: 186.8 kB / 436.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.567e-05/0.2389, allocations: 71.8 kB / 436.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.239, allocations: 20 kB / 436.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006999/0.2397, allocations: 352.7 kB / 436.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2397, allocations: 4 kB / 436.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.2397, allocations: 4 kB / 436.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.2397, allocations: 4 kB / 436.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004036/0.2401, allocations: 127.9 kB / 436.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006473/0.2408, allocations: 396.5 kB / 437.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004805/0.2412, allocations: 193.2 kB / 437.4 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.2415, allocations: 93.66 kB / 437.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.2415, allocations: 4 kB / 437.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.2418, allocations: 152.1 kB / 437.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.2418, allocations: 0 / 437.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007806/0.2426, allocations: 289.3 kB / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.2427, allocations: 89.98 kB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.2428, allocations: 156 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.2428, allocations: 29.7 kB / 438.2 MB, free: 104 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.043e-05/0.2429, allocations: 112.7 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.243, allocations: 39.73 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.702e-05/0.243, allocations: 45.7 kB / 438.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2432, allocations: 326.8 kB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.2434, allocations: 97.89 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.2436, allocations: 172.3 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.244, allocations: 235.8 kB / 439.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2441, allocations: 0 / 439.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005796/0.2446, allocations: 308.7 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.2447, allocations: 33.7 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.2447, allocations: 4 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2447, allocations: 4 kB / 439.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.2449, allocations: 43.91 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.2449, allocations: 7.938 kB / 439.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.2451, allocations: 39.8 kB / 439.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.2451, allocations: 15.98 kB / 439.6 MB, free: 14.51 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.0001305/0.2452, allocations: 141.8 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.2454, allocations: 109.5 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.2455, allocations: 28.64 kB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2455, allocations: 3.938 kB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2455, allocations: 7.938 kB / 439.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2455, allocations: 0 / 439.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.2462, allocations: 449.3 kB / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.2462, allocations: 3.984 kB / 440.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.2464, allocations: 39.97 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2464, allocations: 3.938 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.2464, allocations: 4 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2464, allocations: 0 / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2464, allocations: 0 / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.247, allocations: 327.7 kB / 440.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.818e-05/0.247, allocations: 31.78 kB / 440.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.247, allocations: 7.922 kB / 440.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.2472, allocations: 19.98 kB / 440.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.2473, allocations: 15.97 kB / 440.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.2473, allocations: 4 kB / 440.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.719e-05/0.2473, allocations: 115.2 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2473, allocations: 0 / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.2476, allocations: 32 kB / 440.9 MB, free: 13.11 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.001123/0.2488, allocations: 0.9696 MB / 441.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005584/0.2493, allocations: 265.2 kB / 442.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2493, allocations: 192 / 442.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.2495, allocations: 55.95 kB / 442.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.2499, allocations: 63.89 kB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.2528, allocations: 2.271 MB / 444.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.2529, allocations: 120.4 kB / 444.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.977e-05/0.253, allocations: 17.47 kB / 444.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2531, allocations: 47.42 kB / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2531, allocations: 0 / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.2765, allocations: 4.118 MB / 448.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11, allocations: 6.641 kB / 448.9 MB, free: 5.113 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.209473417024128] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 11.149986541946419 11.164948564 10.924447706 Calling exit ...