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.001225/0.001225, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001324/0.001324, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.383/1.383, allocations: 230.6 MB / 258.3 MB, free: 8.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+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.001419/0.001419, allocations: 51.92 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.228, allocations: 53.37 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003172/0.2311, allocations: 2.016 MB / 433.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2324, allocations: 0.7206 MB / 434.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.2325, allocations: 4 kB / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.461e-05/0.2325, allocations: 19.73 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.2326, allocations: 19.75 kB / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.233, allocations: 123.8 kB / 434.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.2333, allocations: 211.9 kB / 435 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.2335, allocations: 66.53 kB / 435.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.2337, allocations: 91.69 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.2338, allocations: 99.53 kB / 435.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.2339, allocations: 20 kB / 435.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.853e-05/0.2339, allocations: 24 kB / 435.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.234, allocations: 39.91 kB / 435.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.456e-05/0.2341, allocations: 91.52 kB / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.2343, allocations: 223 kB / 435.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2343, allocations: 4 kB / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2343, allocations: 0 / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.2344, allocations: 0 / 435.7 MB, free: 3.105 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.000836/0.2352, allocations: 469.3 kB / 436.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2352, allocations: 8.031 kB / 436.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.985e-05/0.2352, allocations: 12.45 kB / 436.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.2353, allocations: 54.67 kB / 436.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.2355, allocations: 36.78 kB / 436.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.2357, allocations: 178.8 kB / 436.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.859e-05/0.2358, allocations: 71.86 kB / 436.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.2359, allocations: 16 kB / 436.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000681/0.2365, allocations: 327 kB / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2365, allocations: 0 / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.2366, allocations: 4 kB / 436.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2366, allocations: 4 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.237, allocations: 135.8 kB / 437 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/0.2377, allocations: 440.4 kB / 437.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004957/0.2382, allocations: 193.1 kB / 437.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.2384, allocations: 93.66 kB / 437.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2384, allocations: 7.938 kB / 437.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.2387, allocations: 123.5 kB / 437.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2387, allocations: 0 / 437.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000807/0.2395, allocations: 289.2 kB / 438.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.2396, allocations: 85.11 kB / 438.2 MB, free: 408 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2397, allocations: 163.7 kB / 438.3 MB, free: 236 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.2398, allocations: 29.7 kB / 438.3 MB, free: 200 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.2398, allocations: 116.5 kB / 438.5 MB, free: 80 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.2399, allocations: 35.73 kB / 438.5 MB, free: 44 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.541e-05/0.24, allocations: 49.7 kB / 438.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2401, allocations: 322.8 kB / 438.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.2403, allocations: 64.19 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.2406, allocations: 154.6 kB / 439.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.241, allocations: 234.3 kB / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.241, allocations: 0 / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005761/0.2416, allocations: 283.2 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.2416, allocations: 37.64 kB / 439.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2416, allocations: 0 / 439.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2416, allocations: 4 kB / 439.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.2418, allocations: 47.91 kB / 439.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2418, allocations: 4 kB / 439.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.242, allocations: 27.81 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.242, allocations: 19.98 kB / 439.7 MB, free: 14.71 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.0001358/0.2422, allocations: 141.8 kB / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.2424, allocations: 109.5 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.2424, allocations: 20.72 kB / 440 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.2424, allocations: 11.98 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2424, allocations: 0 / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2424, allocations: 3.938 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.2432, allocations: 469.3 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2432, allocations: 0 / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.2434, allocations: 43.89 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2434, allocations: 0 / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.2434, allocations: 11.94 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2434, allocations: 0 / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2434, allocations: 0 / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000574/0.244, allocations: 331.9 kB / 440.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.385e-05/0.244, allocations: 15.84 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.244, allocations: 15.92 kB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.2442, allocations: 19.98 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.2443, allocations: 11.97 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.2443, allocations: 8 kB / 440.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.831e-05/0.2443, allocations: 115.2 kB / 441 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2443, allocations: 0 / 441 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.2446, allocations: 36 kB / 441.1 MB, free: 13.28 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.001137/0.2458, allocations: 0.9628 MB / 442 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000535/0.2463, allocations: 235 kB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2463, allocations: 0.75 kB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.2465, allocations: 63.84 kB / 442.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.2469, allocations: 73.28 kB / 442.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.2497, allocations: 2.155 MB / 444.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.25, allocations: 0.7322 MB / 445.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.989e-05/0.2501, allocations: 13.48 kB / 445.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.2502, allocations: 47.42 kB / 445.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2502, allocations: 4 kB / 445.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.2737, allocations: 4.065 MB / 449.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.82, allocations: 0 / 449.4 MB, free: 4.871 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.0835270860116] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample_angle.y', 'rotationalClock.angle', 'rotationalClock.direction', 'rotationalClock.direction_changed'] 10.98210572003154 11.001492077 10.764096261 Calling exit ...