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.0008481/0.0008481, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008144/0.0008144, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8948/0.8948, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.813e-06/1.813e-06, allocations: 0 / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.035e-05/2.216e-05, allocations: 3.266 kB / 324.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002728/0.00275, allocations: 1.962 MB / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000973/0.003723, allocations: 0.6698 MB / 327.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.003829, allocations: 7.938 kB / 327.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.407e-05/0.003873, allocations: 15.8 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.003977, allocations: 35.66 kB / 327.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.004385, allocations: 119.6 kB / 327.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.00459, allocations: 212 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.004747, allocations: 64.88 kB / 327.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.004981, allocations: 127.7 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.817e-05/0.005079, allocations: 67.78 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.005108, allocations: 20 kB / 327.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.75e-05/0.005156, allocations: 24 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.005192, allocations: 39.89 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.005248, allocations: 55.83 kB / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.005504, allocations: 247.2 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.005508, allocations: 0 / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.00551, allocations: 4 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.005515, allocations: 0 / 328.2 MB, free: 12.11 MB / 298.7 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.0006283/0.006144, allocations: 465 kB / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.006185, allocations: 11.98 kB / 328.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.006226, allocations: 54.73 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.006363, allocations: 32.78 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.00662, allocations: 182 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.91e-05/0.006689, allocations: 64.3 kB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.006711, allocations: 20.38 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.007184, allocations: 360 kB / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.007193, allocations: 3.938 kB / 329.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.007211, allocations: 12 kB / 329.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.007217, allocations: 4 kB / 329.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.007464, allocations: 131.8 kB / 329.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004825/0.007946, allocations: 388.5 kB / 329.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.008244, allocations: 193.1 kB / 330 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.008391, allocations: 109.6 kB / 330.1 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.008414, allocations: 4 kB / 330.1 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.008612, allocations: 137 kB / 330.3 MB, free: 9.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.008613, allocations: 0 / 330.3 MB, free: 9.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004913/0.009104, allocations: 293.4 kB / 330.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.009165, allocations: 93.09 kB / 330.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.592e-05/0.00926, allocations: 155.1 kB / 330.8 MB, free: 9.219 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.009286, allocations: 33.7 kB / 330.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.1e-05/0.009347, allocations: 116.5 kB / 331 MB, free: 9.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.009368, allocations: 31.75 kB / 331 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.009418, allocations: 41.7 kB / 331 MB, free: 8.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.009502, allocations: 326.8 kB / 331.3 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.009614, allocations: 81.67 kB / 331.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.009723, allocations: 102.8 kB / 331.5 MB, free: 8.457 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.009902, allocations: 142.3 kB / 331.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.009905, allocations: 0 / 331.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002712/0.01018, allocations: 232.9 kB / 331.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.0102, allocations: 37.77 kB / 331.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.01021, allocations: 0 / 331.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01022, allocations: 0 / 331.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.685e-05/0.01032, allocations: 27.97 kB / 332 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.01033, allocations: 7.938 kB / 332 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.78e-05/0.01039, allocations: 19.88 kB / 332 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.01041, allocations: 8 kB / 332 MB, free: 7.957 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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.0001003/0.01051, allocations: 129.8 kB / 332.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.01062, allocations: 109.6 kB / 332.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.01067, allocations: 20.77 kB / 332.2 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.01067, allocations: 4 kB / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.01067, allocations: 0 / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01068, allocations: 0 / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.01111, allocations: 454.3 kB / 332.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.01111, allocations: 4 kB / 332.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.9e-05/0.01121, allocations: 39.91 kB / 332.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.01121, allocations: 8 kB / 332.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.01122, allocations: 0 / 332.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.01123, allocations: 7.984 kB / 332.7 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.01123, allocations: 0 / 332.7 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.01154, allocations: 320.1 kB / 333.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.01156, allocations: 19.83 kB / 333.1 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.01158, allocations: 11.94 kB / 333.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.254e-05/0.01166, allocations: 23.92 kB / 333.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.01172, allocations: 23.91 kB / 333.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.01173, allocations: 8 kB / 333.1 MB, free: 6.715 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.66e-05/0.01178, allocations: 115.1 kB / 333.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01178, allocations: 0 / 333.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001753/0.01196, allocations: 32 kB / 333.3 MB, free: 6.57 MB / 298.7 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.0007081/0.01267, allocations: 0.9606 MB / 334.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.01298, allocations: 229 kB / 334.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01298, allocations: 0 / 334.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.137e-05/0.01307, allocations: 59.95 kB / 334.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.01339, allocations: 71.86 kB / 334.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.01501, allocations: 2.033 MB / 336.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.728e-05/0.01508, allocations: 116.4 kB / 336.8 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.951e-05/0.01513, allocations: 13.14 kB / 336.8 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.977e-05/0.01521, allocations: 52.47 kB / 336.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01522, allocations: 0 / 336.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.03124, allocations: 4.429 MB / 341.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.71/6.741, allocations: 3.938 kB / 341.2 MB, free: 14.54 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/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: 8.52537973318249]