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.00133/0.00133, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001388/0.001388, allocations: 183.6 kB / 23.7 MB, free: 4.414 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.419/1.419, allocations: 225.7 MB / 252.5 MB, free: 12.81 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.002352/0.002352, allocations: 47.94 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2595, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003496/0.263, allocations: 1.932 MB / 424.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2642, allocations: 0.6078 MB / 425.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.2643, allocations: 7.938 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.345e-05/0.2644, allocations: 15.8 kB / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.2645, allocations: 23.73 kB / 425.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.2649, allocations: 119.7 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.2651, allocations: 212 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.2653, allocations: 66.5 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.2655, allocations: 87.7 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.2656, allocations: 79.61 kB / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.2656, allocations: 19.94 kB / 425.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.36e-05/0.2657, allocations: 20 kB / 425.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.2657, allocations: 47.89 kB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.476e-05/0.2658, allocations: 67.66 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.2661, allocations: 219 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2661, allocations: 0 / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2661, allocations: 8 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2661, allocations: 0 / 426.1 MB, free: 10.84 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.0009595/0.2671, allocations: 469.2 kB / 426.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2671, allocations: 11.97 kB / 426.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.841e-05/0.2672, allocations: 50.73 kB / 426.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.326e-05/0.2672, allocations: 16.84 kB / 426.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.2675, allocations: 176.6 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.262e-05/0.2676, allocations: 76.05 kB / 426.9 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.2677, allocations: 16 kB / 426.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007585/0.2684, allocations: 359.8 kB / 427.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2684, allocations: 0 / 427.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.2685, allocations: 8 kB / 427.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2685, allocations: 8 kB / 427.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004385/0.2689, allocations: 127.9 kB / 427.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.2696, allocations: 392.5 kB / 427.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.2701, allocations: 189.1 kB / 427.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.2704, allocations: 101.6 kB / 428 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.2704, allocations: 7.938 kB / 428 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.2707, allocations: 141 kB / 428.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.2707, allocations: 0 / 428.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008171/0.2716, allocations: 281.5 kB / 428.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.2717, allocations: 93.06 kB / 428.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.2718, allocations: 152.2 kB / 428.7 MB, free: 7.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.2718, allocations: 33.7 kB / 428.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.272, allocations: 116.5 kB / 428.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.199e-05/0.272, allocations: 39.73 kB / 428.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.394e-05/0.2721, allocations: 53.59 kB / 428.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2722, allocations: 326.8 kB / 429.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.2725, allocations: 93.89 kB / 429.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.2728, allocations: 174.6 kB / 429.5 MB, free: 7.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004544/0.2732, allocations: 231.8 kB / 429.7 MB, free: 6.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2732, allocations: 0 / 429.7 MB, free: 6.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006249/0.2738, allocations: 304.5 kB / 430 MB, free: 6.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.2739, allocations: 37.7 kB / 430.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.2739, allocations: 4 kB / 430.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.2739, allocations: 4 kB / 430.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.2741, allocations: 51.91 kB / 430.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.2741, allocations: 7.938 kB / 430.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.2743, allocations: 27.86 kB / 430.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.2743, allocations: 12 kB / 430.2 MB, free: 6.363 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.0001662/0.2745, allocations: 145.5 kB / 430.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.2747, allocations: 113.5 kB / 430.4 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.2748, allocations: 24.7 kB / 430.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2748, allocations: 0 / 430.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.2748, allocations: 7.938 kB / 430.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2748, allocations: 0 / 430.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007463/0.2755, allocations: 441.5 kB / 430.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2755, allocations: 0 / 430.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.2757, allocations: 43.91 kB / 430.9 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2757, allocations: 3.938 kB / 430.9 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.2758, allocations: 11.98 kB / 431 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2758, allocations: 0 / 431 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2758, allocations: 0 / 431 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005995/0.2764, allocations: 324 kB / 431.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.2764, allocations: 23.78 kB / 431.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.2764, allocations: 4 kB / 431.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.2766, allocations: 27.97 kB / 431.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.2767, allocations: 11.98 kB / 431.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.2767, allocations: 15.92 kB / 431.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.679e-05/0.2768, allocations: 114.4 kB / 431.5 MB, free: 4.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2768, allocations: 0 / 431.5 MB, free: 4.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.2771, allocations: 35.94 kB / 431.5 MB, free: 4.957 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.00128/0.2784, allocations: 0.9662 MB / 432.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005846/0.2789, allocations: 256.9 kB / 432.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2789, allocations: 0 / 432.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.2791, allocations: 64.58 kB / 432.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.2796, allocations: 71.61 kB / 432.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.2829, allocations: 2.248 MB / 435.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.283, allocations: 124.2 kB / 435.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.231e-05/0.2831, allocations: 17.42 kB / 435.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.2832, allocations: 51.41 kB / 435.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2832, allocations: 0 / 435.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03141/0.3146, allocations: 4.38 MB / 439.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.49, allocations: 0 / 439.7 MB, free: 12.7 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.003162920009345]