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.001632/0.001632, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002323/0.002323, allocations: 183.9 kB / 23.72 MB, free: 4.699 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.566/1.566, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 47.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3412, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003661/0.3448, allocations: 2.017 MB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.3461, allocations: 0.6427 MB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.3462, allocations: 11.94 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.138e-05/0.3463, allocations: 19.73 kB / 425.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.3464, allocations: 31.72 kB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.3469, allocations: 103.8 kB / 425.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002924/0.3472, allocations: 200 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.3474, allocations: 72.81 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.3476, allocations: 95.69 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.3477, allocations: 87.62 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.3478, allocations: 20 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.238e-05/0.3478, allocations: 20 kB / 425.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-05/0.3479, allocations: 43.83 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.348, allocations: 87.59 kB / 426 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.3483, allocations: 219.4 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3483, allocations: 0 / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3483, allocations: 4 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.3484, allocations: 0 / 426.3 MB, free: 10.93 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.0009859/0.3493, allocations: 473.2 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3494, allocations: 8.031 kB / 426.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.565e-05/0.3495, allocations: 50.73 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.881e-05/0.3495, allocations: 20.78 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.3499, allocations: 176.8 kB / 427 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.982e-05/0.35, allocations: 72.05 kB / 427 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.35, allocations: 16 kB / 427.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.3508, allocations: 337.7 kB / 427.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3508, allocations: 0 / 427.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.3508, allocations: 4 kB / 427.4 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3508, allocations: 4 kB / 427.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.3513, allocations: 139.8 kB / 427.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007581/0.352, allocations: 420.5 kB / 427.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.3526, allocations: 201.1 kB / 428.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.3529, allocations: 97.66 kB / 428.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.3529, allocations: 8.062 kB / 428.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.3532, allocations: 119.5 kB / 428.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3532, allocations: 0 / 428.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009483/0.3542, allocations: 285.3 kB / 428.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.3543, allocations: 93.05 kB / 428.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.3544, allocations: 160 kB / 428.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.3545, allocations: 29.7 kB / 428.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.578e-05/0.3546, allocations: 116.5 kB / 429 MB, free: 7.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.3546, allocations: 35.67 kB / 429.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.396e-05/0.3547, allocations: 45.7 kB / 429.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3549, allocations: 330.8 kB / 429.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.3551, allocations: 64.19 kB / 429.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.3553, allocations: 144.1 kB / 429.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000451/0.3558, allocations: 227.8 kB / 429.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3558, allocations: 4 kB / 429.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006109/0.3564, allocations: 271 kB / 430.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.3564, allocations: 37.69 kB / 430.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3565, allocations: 4 kB / 430.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.3565, allocations: 4 kB / 430.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.3567, allocations: 43.91 kB / 430.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.3567, allocations: 7.938 kB / 430.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.3569, allocations: 36.11 kB / 430.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.3569, allocations: 11.98 kB / 430.3 MB, free: 6.582 MB / 334.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.0001631/0.3571, allocations: 149.5 kB / 430.4 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.3573, allocations: 109.5 kB / 430.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.3574, allocations: 20.72 kB / 430.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3574, allocations: 0 / 430.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3574, allocations: 7.938 kB / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3574, allocations: 3.984 kB / 430.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008102/0.3582, allocations: 457.4 kB / 431 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3582, allocations: 0 / 431 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.3584, allocations: 39.91 kB / 431 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3584, allocations: 7.875 kB / 431.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.3584, allocations: 11.98 kB / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3584, allocations: 0 / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3584, allocations: 0 / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006135/0.359, allocations: 331.5 kB / 431.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.3591, allocations: 19.78 kB / 431.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/0.3591, allocations: 12 kB / 431.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.3593, allocations: 19.97 kB / 431.4 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/0.3594, allocations: 19.98 kB / 431.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.3594, allocations: 7.984 kB / 431.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.3595, allocations: 110.1 kB / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3595, allocations: 0 / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003419/0.3598, allocations: 32 kB / 431.6 MB, free: 5.168 MB / 334.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.001298/0.3611, allocations: 0.9677 MB / 432.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006291/0.3618, allocations: 239.7 kB / 432.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3618, allocations: 0 / 432.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.362, allocations: 63.89 kB / 432.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.3625, allocations: 68.41 kB / 432.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.3658, allocations: 2.143 MB / 435.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.3663, allocations: 0.736 MB / 435.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.447e-05/0.3664, allocations: 9.438 kB / 435.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.3665, allocations: 59.41 kB / 435.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3665, allocations: 0 / 435.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.401, allocations: 3.988 MB / 439.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.05, allocations: 9.156 kB / 439.9 MB, free: 12.81 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000392542 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] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample_angle.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.872774898001808]