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.001557/0.001557, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001664/0.001664, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.573/1.573, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.002845/0.002845, allocations: 68.98 kB / 378.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3386, allocations: 53.37 MB / 431.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003691/0.3423, allocations: 2.013 MB / 433.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.3438, allocations: 0.709 MB / 434.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.3439, allocations: 3.938 kB / 434.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.17e-05/0.3439, allocations: 23.73 kB / 434.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.3441, allocations: 27.72 kB / 434.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.3445, allocations: 126.4 kB / 434.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.3448, allocations: 212 kB / 435 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.345, allocations: 70.94 kB / 435.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.3452, allocations: 95.62 kB / 435.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.3454, allocations: 91.55 kB / 435.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/0.3454, allocations: 20 kB / 435.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.491e-05/0.3455, allocations: 27.98 kB / 435.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.789e-05/0.3455, allocations: 39.91 kB / 435.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.783e-05/0.3456, allocations: 83.53 kB / 435.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.3459, allocations: 235 kB / 435.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3459, allocations: 0 / 435.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3459, allocations: 0 / 435.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3459, allocations: 0 / 435.7 MB, free: 3.258 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.0008799/0.3468, allocations: 469.2 kB / 436.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.3468, allocations: 8.031 kB / 436.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.354e-05/0.3469, allocations: 50.73 kB / 436.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.3471, allocations: 40.78 kB / 436.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.3474, allocations: 182.8 kB / 436.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.7e-05/0.3475, allocations: 68.05 kB / 436.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.3475, allocations: 19.98 kB / 436.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007045/0.3482, allocations: 333.5 kB / 436.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3482, allocations: 0 / 436.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.3483, allocations: 8 kB / 436.8 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.3483, allocations: 4 kB / 436.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.3487, allocations: 135.8 kB / 437 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007107/0.3494, allocations: 428.4 kB / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.3499, allocations: 193.1 kB / 437.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/0.3502, allocations: 101.7 kB / 437.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.3502, allocations: 3.938 kB / 437.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000314/0.3505, allocations: 111.3 kB / 437.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.3505, allocations: 4 kB / 437.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008691/0.3514, allocations: 289.8 kB / 438.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.3515, allocations: 89.09 kB / 438.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.3517, allocations: 151.2 kB / 438.3 MB, free: 412 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.3517, allocations: 33.7 kB / 438.3 MB, free: 372 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.512e-05/0.3518, allocations: 116.5 kB / 438.4 MB, free: 252 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.3518, allocations: 43.8 kB / 438.5 MB, free: 208 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.938e-05/0.3519, allocations: 41.7 kB / 438.5 MB, free: 160 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.3521, allocations: 334.7 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.3523, allocations: 64.19 kB / 438.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.3526, allocations: 142.7 kB / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004541/0.3531, allocations: 239.8 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3531, allocations: 0 / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005981/0.3537, allocations: 279.2 kB / 439.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.976e-05/0.3537, allocations: 37.69 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-06/0.3537, allocations: 4 kB / 439.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.3537, allocations: 4 kB / 439.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.354, allocations: 43.91 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.354, allocations: 4 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.3541, allocations: 31.81 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.3542, allocations: 11.98 kB / 439.7 MB, free: 14.88 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.0001831/0.3543, allocations: 149.5 kB / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.3545, allocations: 109.5 kB / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.3546, allocations: 24.7 kB / 440 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3546, allocations: 0 / 440 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3546, allocations: 4 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.3546, allocations: 7.922 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008057/0.3554, allocations: 465.3 kB / 440.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3554, allocations: 4 kB / 440.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.3556, allocations: 43.91 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.3556, allocations: 3.984 kB / 440.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.3557, allocations: 7.938 kB / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3557, allocations: 4 kB / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3557, allocations: 0 / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/0.3563, allocations: 331.7 kB / 440.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.3563, allocations: 15.84 kB / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.3563, allocations: 11.94 kB / 440.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.3565, allocations: 19.91 kB / 440.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.339e-05/0.3566, allocations: 11.98 kB / 440.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3566, allocations: 11.98 kB / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.201e-05/0.3567, allocations: 115.2 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3567, allocations: 0 / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.357, allocations: 36 kB / 441 MB, free: 13.44 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.001409/0.3584, allocations: 0.954 MB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005862/0.359, allocations: 235 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.359, allocations: 0.75 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.3592, allocations: 72.59 kB / 442.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.3597, allocations: 66.55 kB / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.3628, allocations: 2.158 MB / 444.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3632, allocations: 0.7323 MB / 445.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.52e-05/0.3633, allocations: 13.48 kB / 445.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.3634, allocations: 51.42 kB / 445.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3634, allocations: 3.938 kB / 445.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02965/0.3931, allocations: 3.926 MB / 449.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.714/9.107, allocations: 8.047 kB / 449.3 MB, free: 5.113 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.684387563727796] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 9.201320356223732 9.216567137 8.867449909 Calling exit ...