Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001388/0.001388, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001467/0.001467, allocations: 214 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 63.89 kB / 377.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3138, allocations: 53.42 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00376/0.3175, allocations: 2.018 MB / 433.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.3189, allocations: 0.7167 MB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.3191, allocations: 7.938 kB / 433.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.584e-05/0.3191, allocations: 15.8 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.3192, allocations: 19.75 kB / 434 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.3198, allocations: 131.7 kB / 434.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000285/0.3201, allocations: 208 kB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.3203, allocations: 68.83 kB / 434.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.3205, allocations: 91.69 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.3207, allocations: 95.53 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.3207, allocations: 20 kB / 434.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.449e-05/0.3208, allocations: 24 kB / 434.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.3208, allocations: 39.91 kB / 434.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.3209, allocations: 95.45 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003377/0.3213, allocations: 219.5 kB / 434.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3213, allocations: 4 kB / 434.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3213, allocations: 3.938 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.3213, allocations: 3.938 kB / 434.9 MB, free: 2.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.0009062/0.3222, allocations: 469.2 kB / 435.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3222, allocations: 8.031 kB / 435.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.3223, allocations: 54.73 kB / 435.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.3225, allocations: 32.78 kB / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.3228, allocations: 186.1 kB / 435.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-05/0.3229, allocations: 68.05 kB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.323, allocations: 20 kB / 435.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007708/0.3237, allocations: 329.5 kB / 436.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3238, allocations: 3.938 kB / 436.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.3238, allocations: 4 kB / 436.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.3238, allocations: 4 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004298/0.3242, allocations: 131.9 kB / 436.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007443/0.325, allocations: 432.4 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005297/0.3255, allocations: 193.1 kB / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.3258, allocations: 101.7 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.3258, allocations: 3.938 kB / 436.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.3261, allocations: 119.4 kB / 437 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.3261, allocations: 4 kB / 437.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008581/0.327, allocations: 289.3 kB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3271, allocations: 85.11 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.3272, allocations: 157.5 kB / 437.6 MB, free: 76 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.3273, allocations: 29.7 kB / 437.6 MB, free: 40 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3274, allocations: 112.5 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.3274, allocations: 43.8 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.138e-05/0.3275, allocations: 41.7 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3277, allocations: 334.8 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3279, allocations: 64.19 kB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.3282, allocations: 151.3 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.3286, allocations: 227.9 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3286, allocations: 4 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005915/0.3292, allocations: 281.7 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.3293, allocations: 37.69 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3293, allocations: 4 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3293, allocations: 4 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3295, allocations: 47.84 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3295, allocations: 4 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.3297, allocations: 35.75 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.3297, allocations: 11.98 kB / 439 MB, free: 14.55 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.0001685/0.3299, allocations: 141.8 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.3301, allocations: 109.5 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.593e-05/0.3301, allocations: 20.72 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3301, allocations: 8 kB / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3302, allocations: 0 / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3302, allocations: 7.922 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007779/0.3309, allocations: 462.3 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3309, allocations: 4 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.3311, allocations: 43.95 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3311, allocations: 0 / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3312, allocations: 11.94 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3312, allocations: 0 / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3312, allocations: 0 / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006009/0.3318, allocations: 331.9 kB / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.3318, allocations: 15.84 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.3318, allocations: 15.92 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.332, allocations: 15.97 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.378e-05/0.3321, allocations: 19.97 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.3321, allocations: 4 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.036e-05/0.3322, allocations: 120.1 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3322, allocations: 4 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.3325, allocations: 36 kB / 440.3 MB, free: 13.12 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.001219/0.3337, allocations: 0.9473 MB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.3343, allocations: 246.9 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3343, allocations: 0.75 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001866/0.3345, allocations: 67.89 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.335, allocations: 63.94 kB / 441.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.338, allocations: 2.149 MB / 443.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.3384, allocations: 0.7323 MB / 444.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.274e-05/0.3384, allocations: 13.48 kB / 444.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3386, allocations: 51.42 kB / 444.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3386, allocations: 3.938 kB / 444.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.3705, allocations: 4.031 MB / 448.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.51, allocations: 7.438 kB / 448.6 MB, free: 4.707 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.260828334998223]