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.001871/0.001871, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.00214/0.00214, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.615/1.615, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.001517/0.001517, allocations: 51.91 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1226, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.0045/0.1271, allocations: 1.992 MB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.1286, allocations: 0.6388 MB / 420.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.1288, allocations: 3.938 kB / 420.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.611e-05/0.1288, allocations: 19.78 kB / 420.4 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.129, allocations: 23.75 kB / 420.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.1296, allocations: 111.8 kB / 420.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.1299, allocations: 204 kB / 420.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.1302, allocations: 72.31 kB / 420.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.1304, allocations: 91.62 kB / 420.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.1305, allocations: 91.59 kB / 421 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.184e-05/0.1306, allocations: 20 kB / 421 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.678e-05/0.1306, allocations: 20 kB / 421 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.616e-05/0.1307, allocations: 39.91 kB / 421.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.1308, allocations: 91.52 kB / 421.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.1312, allocations: 219 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1312, allocations: 0 / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1312, allocations: 0 / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1312, allocations: 0 / 421.4 MB, free: 8.973 MB / 350.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.001184/0.1324, allocations: 0.5296 MB / 421.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.1325, allocations: 8.031 kB / 421.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.1326, allocations: 54.73 kB / 422 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.1326, allocations: 20.83 kB / 422 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.1331, allocations: 240.6 kB / 422.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.145e-05/0.1332, allocations: 46.34 kB / 422.3 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.1332, allocations: 16 kB / 422.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008398/0.1341, allocations: 334.9 kB / 422.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1341, allocations: 0 / 422.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.1341, allocations: 8 kB / 422.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.1341, allocations: 4 kB / 422.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.1346, allocations: 123.9 kB / 422.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008446/0.1354, allocations: 457.4 kB / 423.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.136, allocations: 189.2 kB / 423.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.1363, allocations: 109.7 kB / 423.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.1363, allocations: 4.062 kB / 423.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.1367, allocations: 119.2 kB / 423.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.1367, allocations: 4 kB / 423.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009279/0.1376, allocations: 285.3 kB / 423.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1377, allocations: 89.09 kB / 424 MB, free: 6.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.1379, allocations: 152.4 kB / 424.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.1379, allocations: 33.7 kB / 424.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.138, allocations: 120.5 kB / 424.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.1381, allocations: 35.73 kB / 424.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.23e-05/0.1382, allocations: 45.7 kB / 424.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1384, allocations: 326.8 kB / 424.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.1386, allocations: 60.19 kB / 424.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.1389, allocations: 152 kB / 424.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005107/0.1394, allocations: 234.4 kB / 425.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1394, allocations: 3.938 kB / 425.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006714/0.1401, allocations: 273.7 kB / 425.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.073e-05/0.1401, allocations: 41.64 kB / 425.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1402, allocations: 4 kB / 425.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.1402, allocations: 4 kB / 425.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.1404, allocations: 35.97 kB / 425.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.1404, allocations: 19.86 kB / 425.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.1406, allocations: 35.83 kB / 425.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.1406, allocations: 8 kB / 425.5 MB, free: 4.449 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.0001849/0.1408, allocations: 149.7 kB / 425.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002083/0.141, allocations: 101.6 kB / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.544e-05/0.1411, allocations: 24.7 kB / 425.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1411, allocations: 4 kB / 425.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.1411, allocations: 3.938 kB / 425.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1411, allocations: 0 / 425.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008598/0.142, allocations: 498.2 kB / 426.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.142, allocations: 0 / 426.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.1422, allocations: 39.91 kB / 426.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.1422, allocations: 3.938 kB / 426.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.1422, allocations: 11.98 kB / 426.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1422, allocations: 0 / 426.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1422, allocations: 0 / 426.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.1429, allocations: 321.2 kB / 426.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/0.143, allocations: 100.9 kB / 426.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.143, allocations: 8 kB / 426.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.1432, allocations: 15.98 kB / 426.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.959e-05/0.1433, allocations: 15.98 kB / 426.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.1433, allocations: 15.86 kB / 426.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.1434, allocations: 120.8 kB / 426.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1434, allocations: 0 / 426.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000306/0.1437, allocations: 35.94 kB / 427 MB, free: 2.898 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.001398/0.1451, allocations: 0.9643 MB / 427.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006513/0.1458, allocations: 234.4 kB / 428.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1458, allocations: 0.75 kB / 428.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.146, allocations: 67.83 kB / 428.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005017/0.1465, allocations: 59.98 kB / 428.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.1499, allocations: 2.143 MB / 430.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1503, allocations: 0.7321 MB / 431.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.826e-05/0.1504, allocations: 13.42 kB / 431.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1505, allocations: 51.42 kB / 431.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1505, allocations: 0 / 431.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.1829, allocations: 3.778 MB / 435 MB, free: 10.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.65/8.832, allocations: 3.984 kB / 435 MB, free: 10.79 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.934322305954993]