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.001668/0.001667, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.001869/0.001869, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.471/1.471, allocations: 222.9 MB / 246.4 MB, free: 4.219 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.001551/0.001552, allocations: 51.91 kB / 357.5 MB, free: 8.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 49.44 MB / 406.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004413/0.1219, allocations: 1.97 MB / 408.9 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1238, allocations: 0.6349 MB / 409.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.124, allocations: 4 kB / 409.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.624e-05/0.1241, allocations: 19.73 kB / 409.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.1243, allocations: 27.73 kB / 409.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.1249, allocations: 103.8 kB / 409.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.1252, allocations: 212 kB / 409.9 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.1255, allocations: 92.31 kB / 410 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.1257, allocations: 87.7 kB / 410.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.1259, allocations: 87.59 kB / 410.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.166e-05/0.126, allocations: 20 kB / 410.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.368e-05/0.126, allocations: 20 kB / 410.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.048e-05/0.1261, allocations: 43.83 kB / 410.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1263, allocations: 95.52 kB / 410.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.1266, allocations: 214.9 kB / 410.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.1267, allocations: 4 kB / 410.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1267, allocations: 0 / 410.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1267, allocations: 0 / 410.5 MB, free: 3.781 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.001074/0.1278, allocations: 0.5296 MB / 411.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.1278, allocations: 15.97 kB / 411.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.139e-05/0.1279, allocations: 46.73 kB / 411.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.881e-05/0.128, allocations: 24.84 kB / 411.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.1284, allocations: 233.9 kB / 411.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.875e-05/0.1285, allocations: 46.34 kB / 411.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.1286, allocations: 16 kB / 411.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/0.1294, allocations: 337.2 kB / 411.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1294, allocations: 0 / 411.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.1295, allocations: 4 kB / 411.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1295, allocations: 7.938 kB / 411.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.1299, allocations: 131.8 kB / 411.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009357/0.1309, allocations: 461.4 kB / 412.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006004/0.1315, allocations: 201.1 kB / 412.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.1318, allocations: 109.7 kB / 412.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.1319, allocations: 4 kB / 412.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.1323, allocations: 115.5 kB / 412.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.266e-06/0.1323, allocations: 0 / 412.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009316/0.1332, allocations: 293.2 kB / 413.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1333, allocations: 89.17 kB / 413.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.1336, allocations: 155.8 kB / 413.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.149e-05/0.1336, allocations: 33.7 kB / 413.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1337, allocations: 112.5 kB / 413.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.753e-05/0.1338, allocations: 39.73 kB / 413.5 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.493e-05/0.1339, allocations: 45.7 kB / 413.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.134, allocations: 330.8 kB / 413.9 MB, free: 184 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.1343, allocations: 64.19 kB / 413.9 MB, free: 120 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.1346, allocations: 152.3 kB / 414.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000441/0.135, allocations: 218.1 kB / 414.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.135, allocations: 8 kB / 414.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005948/0.1356, allocations: 270.9 kB / 414.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.793e-05/0.1357, allocations: 37.69 kB / 414.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1357, allocations: 4.344 kB / 414.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1357, allocations: 8 kB / 414.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.136, allocations: 43.91 kB / 414.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.136, allocations: 7.938 kB / 414.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.1362, allocations: 31.83 kB / 414.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.1362, allocations: 12 kB / 414.7 MB, free: 15.25 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.0001658/0.1364, allocations: 141.7 kB / 414.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.1366, allocations: 109.5 kB / 414.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.305e-05/0.1367, allocations: 24.72 kB / 415 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1367, allocations: 0 / 415 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1367, allocations: 3.938 kB / 415 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1367, allocations: 7.984 kB / 415 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007809/0.1375, allocations: 490.2 kB / 415.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1375, allocations: 0 / 415.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.1377, allocations: 43.97 kB / 415.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.1377, allocations: 7.938 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.1377, allocations: 7.984 kB / 415.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.1377, allocations: 4 kB / 415.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1378, allocations: 0 / 415.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006318/0.1384, allocations: 331.3 kB / 415.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.938e-05/0.1385, allocations: 100.9 kB / 415.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.1385, allocations: 0 / 415.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.1387, allocations: 27.91 kB / 416 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.1388, allocations: 11.98 kB / 416 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.1388, allocations: 12 kB / 416 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.153e-05/0.1389, allocations: 109.7 kB / 416.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1389, allocations: 0 / 416.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.1392, allocations: 35.94 kB / 416.1 MB, free: 13.7 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.001235/0.1405, allocations: 0.9672 MB / 417.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006068/0.1411, allocations: 247.2 kB / 417.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.1411, allocations: 4 kB / 417.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.1413, allocations: 55.97 kB / 417.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.1418, allocations: 72.77 kB / 417.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.1447, allocations: 2.149 MB / 419.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.1451, allocations: 0.7282 MB / 420.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.687e-05/0.1452, allocations: 17.42 kB / 420.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1453, allocations: 51.41 kB / 420.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1453, allocations: 0 / 420.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.1723, allocations: 3.747 MB / 424.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.505, allocations: 8.359 kB / 424.2 MB, free: 5.586 MB / 350.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.373594262055121]