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.001857/0.001857, allocations: 113.1 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.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.002265/0.002265, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 8.027 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 43.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3053, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003745/0.3091, allocations: 2.031 MB / 433.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3106, allocations: 0.7128 MB / 433.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.3107, allocations: 7.938 kB / 433.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.99e-05/0.3108, allocations: 19.73 kB / 433.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.3109, allocations: 19.75 kB / 433.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005424/0.3115, allocations: 127.7 kB / 434 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003109/0.3118, allocations: 208 kB / 434.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.312, allocations: 74.5 kB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.3123, allocations: 91.64 kB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.3124, allocations: 91.59 kB / 434.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.124e-05/0.3125, allocations: 20 kB / 434.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.984e-05/0.3125, allocations: 24 kB / 434.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.3126, allocations: 39.91 kB / 434.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.3127, allocations: 91.52 kB / 434.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003845/0.3131, allocations: 223 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3131, allocations: 4 kB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3131, allocations: 3.938 kB / 434.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.3131, allocations: 0 / 434.9 MB, free: 3.082 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.001026/0.3141, allocations: 469.3 kB / 435.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.3142, allocations: 8.031 kB / 435.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.246e-05/0.3142, allocations: 50.73 kB / 435.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.3144, allocations: 28.8 kB / 435.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.3148, allocations: 188.6 kB / 435.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.393e-05/0.3149, allocations: 71.98 kB / 435.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.315, allocations: 19.98 kB / 435.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007852/0.3158, allocations: 327 kB / 436 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3158, allocations: 0 / 436 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.3158, allocations: 7.984 kB / 436 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3158, allocations: 4 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.3163, allocations: 127.9 kB / 436.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007871/0.3171, allocations: 440.3 kB / 436.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.3176, allocations: 185.2 kB / 436.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.3179, allocations: 105.6 kB / 436.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.3179, allocations: 4 kB / 436.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.3182, allocations: 111.3 kB / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.3182, allocations: 0 / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008685/0.3191, allocations: 290.3 kB / 437.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.203e-05/0.3192, allocations: 85.11 kB / 437.4 MB, free: 412 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.3194, allocations: 159.7 kB / 437.5 MB, free: 244 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.3194, allocations: 29.7 kB / 437.5 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.594e-05/0.3195, allocations: 116.6 kB / 437.7 MB, free: 88 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.3195, allocations: 47.61 kB / 437.7 MB, free: 40 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.3196, allocations: 49.69 kB / 437.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3198, allocations: 330.8 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.32, allocations: 64.19 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.3203, allocations: 146.7 kB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.3208, allocations: 233.6 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3208, allocations: 4 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006195/0.3214, allocations: 270.9 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.3214, allocations: 34.05 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3214, allocations: 8 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3215, allocations: 4 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.3217, allocations: 51.91 kB / 438.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.3217, allocations: 4 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3219, allocations: 39.78 kB / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.3219, allocations: 8 kB / 438.9 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.0001798/0.3221, allocations: 145.8 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.3223, allocations: 109.6 kB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.96e-05/0.3224, allocations: 28.7 kB / 439.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3224, allocations: 7.938 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3224, allocations: 0 / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3224, allocations: 3.938 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008306/0.3232, allocations: 469.2 kB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3232, allocations: 4 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.3234, allocations: 43.91 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3234, allocations: 0 / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.3235, allocations: 11.88 kB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.3235, allocations: 3.984 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3235, allocations: 3.984 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.3241, allocations: 320.1 kB / 440.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/0.3241, allocations: 19.83 kB / 440.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.3242, allocations: 11.94 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3244, allocations: 15.98 kB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.3244, allocations: 19.97 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3245, allocations: 7.938 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.922e-05/0.3246, allocations: 111.2 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3246, allocations: 8 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.3249, allocations: 28 kB / 440.3 MB, free: 13.27 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.001391/0.3263, allocations: 0.9579 MB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006922/0.327, allocations: 242.9 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.327, allocations: 0 / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.3272, allocations: 64.64 kB / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.3277, allocations: 56.02 kB / 441.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.331, allocations: 2.158 MB / 443.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3315, allocations: 0.7245 MB / 444.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.3316, allocations: 21.47 kB / 444.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.3317, allocations: 59.41 kB / 444.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3317, allocations: 0 / 444.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/0.3682, allocations: 4.021 MB / 448.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.31, allocations: 28.77 kB / 448.6 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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.017577667000296]