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.001377/0.001377, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.00132/0.00132, allocations: 197 kB / 21.43 MB, free: 1.609 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.427/1.427, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.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.001507/0.001507, allocations: 47.92 kB / 366.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1164, allocations: 52.13 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003771/0.1202, allocations: 1.99 MB / 420.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.1215, allocations: 0.6427 MB / 421.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1216, allocations: 7.938 kB / 421.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.373e-05/0.1217, allocations: 15.8 kB / 421.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.1218, allocations: 23.73 kB / 421.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.1223, allocations: 103.8 kB / 421.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.1226, allocations: 212 kB / 421.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.1228, allocations: 72.31 kB / 421.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.123, allocations: 95.56 kB / 421.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1231, allocations: 99.59 kB / 421.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.1231, allocations: 16 kB / 421.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.987e-05/0.1232, allocations: 20 kB / 421.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.239e-05/0.1232, allocations: 39.91 kB / 421.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.735e-05/0.1233, allocations: 87.52 kB / 421.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.1236, allocations: 219 kB / 422.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1236, allocations: 0 / 422.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1236, allocations: 0 / 422.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1236, allocations: 0 / 422.1 MB, free: 8.965 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.0009691/0.1246, allocations: 0.5336 MB / 422.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1246, allocations: 12.03 kB / 422.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.481e-05/0.1247, allocations: 8.5 kB / 422.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.165e-05/0.1247, allocations: 46.73 kB / 422.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.843e-05/0.1248, allocations: 20.84 kB / 422.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1251, allocations: 232.6 kB / 422.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.031e-05/0.1252, allocations: 58.14 kB / 423 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.1252, allocations: 15.94 kB / 423 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007361/0.126, allocations: 325 kB / 423.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.126, allocations: 4 kB / 423.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.126, allocations: 8 kB / 423.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.126, allocations: 4 kB / 423.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.1265, allocations: 131.8 kB / 423.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000796/0.1273, allocations: 453.4 kB / 423.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.1278, allocations: 197.1 kB / 424.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.1281, allocations: 105.7 kB / 424.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.1281, allocations: 4 kB / 424.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.1285, allocations: 115.5 kB / 424.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.1285, allocations: 7.938 kB / 424.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.000878/0.1293, allocations: 281.4 kB / 424.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.1294, allocations: 89.05 kB / 424.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.1296, allocations: 156.2 kB / 424.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1296, allocations: 33.7 kB / 424.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.1297, allocations: 112.5 kB / 425 MB, free: 5.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.1298, allocations: 35.73 kB / 425 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.156e-05/0.1298, allocations: 53.62 kB / 425.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.13, allocations: 326.8 kB / 425.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.1302, allocations: 68.19 kB / 425.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.1305, allocations: 140.1 kB / 425.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.131, allocations: 238 kB / 425.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.131, allocations: 0 / 425.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006299/0.1316, allocations: 274.9 kB / 426.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.493e-05/0.1317, allocations: 33.7 kB / 426.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1317, allocations: 4 kB / 426.1 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.1317, allocations: 4 kB / 426.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.1319, allocations: 52.19 kB / 426.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.132, allocations: 8 kB / 426.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.1321, allocations: 31.83 kB / 426.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.1322, allocations: 11.98 kB / 426.2 MB, free: 4.434 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.0001752/0.1324, allocations: 145.7 kB / 426.4 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.1326, allocations: 106.5 kB / 426.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.463e-05/0.1326, allocations: 16.66 kB / 426.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1326, allocations: 7.938 kB / 426.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.1327, allocations: 7.984 kB / 426.5 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1327, allocations: 4 kB / 426.5 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008199/0.1335, allocations: 490.4 kB / 427 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1335, allocations: 0 / 427 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.1337, allocations: 47.83 kB / 427 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1337, allocations: 4 kB / 427.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.1337, allocations: 4 kB / 427.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.1337, allocations: 8 kB / 427.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1337, allocations: 0 / 427.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.1344, allocations: 320 kB / 427.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/0.1345, allocations: 100.9 kB / 427.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.1345, allocations: 8 kB / 427.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.1347, allocations: 23.97 kB / 427.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.1348, allocations: 15.92 kB / 427.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.1348, allocations: 15.98 kB / 427.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.099e-05/0.1349, allocations: 104.8 kB / 427.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1349, allocations: 0 / 427.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.1352, allocations: 39.94 kB / 427.7 MB, free: 2.883 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.001342/0.1366, allocations: 0.9644 MB / 428.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006541/0.1372, allocations: 238.5 kB / 428.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1372, allocations: 0 / 428.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.1374, allocations: 63.89 kB / 428.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.1379, allocations: 63.88 kB / 429 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.1413, allocations: 2.156 MB / 431.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.1418, allocations: 0.732 MB / 431.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.029e-05/0.1418, allocations: 13.44 kB / 431.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.142, allocations: 51.41 kB / 432 MB, free: 14.38 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.142, allocations: 0 / 432 MB, free: 14.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03053/0.1725, allocations: 3.805 MB / 435.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.547, allocations: 4.062 kB / 435.8 MB, free: 10.75 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.046746060019359] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 8.669339338026475 8.840313426 8.713826389 Calling exit ...