Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001805/0.001805, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.002126/0.002126, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.547/1.547, allocations: 230.5 MB / 254.7 MB, free: 15.02 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-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.81 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1161, allocations: 53.31 MB / 426.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00384/0.12, allocations: 2.002 MB / 428.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1214, allocations: 0.7088 MB / 429.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1215, allocations: 4 kB / 429.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.699e-05/0.1215, allocations: 19.73 kB / 429.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.1217, allocations: 31.72 kB / 429.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.1222, allocations: 119.8 kB / 429.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.1225, allocations: 208 kB / 430 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.1226, allocations: 68.33 kB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.1229, allocations: 87.69 kB / 430.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.123, allocations: 91.59 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.1231, allocations: 20 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.1231, allocations: 24 kB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.1232, allocations: 51.83 kB / 430.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.714e-05/0.1233, allocations: 87.53 kB / 430.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.1236, allocations: 223 kB / 430.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1236, allocations: 3.984 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1236, allocations: 0 / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1236, allocations: 0 / 430.6 MB, free: 1.133 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.0009288/0.1245, allocations: 0.5322 MB / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1246, allocations: 12.03 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.113e-05/0.1247, allocations: 50.73 kB / 431.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.1248, allocations: 32.78 kB / 431.2 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1252, allocations: 235.1 kB / 431.4 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.07e-05/0.1253, allocations: 42.34 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.1253, allocations: 19.98 kB / 431.5 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2245/0.3498, allocations: 329.2 kB / 431.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.3498, allocations: 3.656 kB / 431.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.3499, allocations: 2.844 kB / 431.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.3499, allocations: 6.688 kB / 431.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007171/0.3506, allocations: 131.3 kB / 432 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.3516, allocations: 467.9 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007407/0.3523, allocations: 189.3 kB / 432.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003634/0.3527, allocations: 100.7 kB / 432.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.3527, allocations: 2.438 kB / 432.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004395/0.3531, allocations: 119 kB / 432.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.555e-06/0.3531, allocations: 0 / 432.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001216/0.3544, allocations: 288.4 kB / 433.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.3544, allocations: 87.17 kB / 433.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.3546, allocations: 155 kB / 433.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.3546, allocations: 33.67 kB / 433.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.3547, allocations: 111.8 kB / 433.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.169e-05/0.3548, allocations: 47.58 kB / 433.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.896e-05/0.3549, allocations: 46 kB / 433.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.3549, allocations: 328.3 kB / 433.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.3552, allocations: 59.73 kB / 434 MB, free: 10.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.3555, allocations: 154.8 kB / 434.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005357/0.3561, allocations: 229.1 kB / 434.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3561, allocations: 1.062 kB / 434.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007466/0.3568, allocations: 281.6 kB / 434.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.3568, allocations: 30.73 kB / 434.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.3569, allocations: 9.031 kB / 434.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.3569, allocations: 0.9375 kB / 434.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002746/0.3572, allocations: 52.03 kB / 434.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3572, allocations: 3.812 kB / 434.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.3574, allocations: 35.08 kB / 434.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.3574, allocations: 13.34 kB / 434.8 MB, free: 9.812 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.0001425/0.3576, allocations: 142.8 kB / 434.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.3579, allocations: 107.6 kB / 435 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.523e-05/0.3579, allocations: 23.41 kB / 435 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3579, allocations: 4.812 kB / 435 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.358, allocations: 0 / 435 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.358, allocations: 6.5 kB / 435 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009041/0.3589, allocations: 488.3 kB / 435.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3589, allocations: 0 / 435.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.3591, allocations: 42.3 kB / 435.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.3591, allocations: 6.312 kB / 435.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.3592, allocations: 12.17 kB / 435.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.3592, allocations: 2.391 kB / 435.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3592, allocations: 0 / 435.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008018/0.36, allocations: 333 kB / 435.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.228e-05/0.3601, allocations: 94.84 kB / 436 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.3601, allocations: 11.66 kB / 436 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.3604, allocations: 17.23 kB / 436 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3605, allocations: 17.72 kB / 436 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.3605, allocations: 9.875 kB / 436 MB, free: 9.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.3606, allocations: 111 kB / 436.2 MB, free: 9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3606, allocations: 1.312 kB / 436.2 MB, free: 9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005265/0.3611, allocations: 34.91 kB / 436.2 MB, free: 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.001546/0.3627, allocations: 0.9741 MB / 437.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007857/0.3635, allocations: 244.8 kB / 437.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3635, allocations: 0 / 437.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.3637, allocations: 66.47 kB / 437.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/0.3644, allocations: 62.66 kB / 437.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.3681, allocations: 2.147 MB / 439.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3684, allocations: 0.7286 MB / 440.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.3686, allocations: 16.53 kB / 440.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.3687, allocations: 51.58 kB / 440.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of SimCode: time 1.844e-06/0.3687, allocations: 0 / 440.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03973/0.4084, allocations: 3.822 MB / 444.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.533/8.942, allocations: 5.031 kB / 444.3 MB, free: 5.168 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.419707207940519] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 9.015406971331686 9.029045787 8.902227939 Calling exit ...