Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.001707/0.001707, allocations: 116.8 kB / 17.74 MB, free: 5.34 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.002023/0.002023, allocations: 182.9 kB / 20.68 MB, free: 2.41 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.478/1.478, allocations: 222.9 MB / 246.4 MB, free: 4.234 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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 51.92 kB / 357.5 MB, free: 8.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1343, allocations: 49.44 MB / 406.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003782/0.1381, allocations: 1.89 MB / 408.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.1399, allocations: 1.04 MB / 409.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.14, allocations: 7.938 kB / 409.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.1407, allocations: 139.6 kB / 410 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.141, allocations: 119 kB / 410.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.1415, allocations: 195.5 kB / 410.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.1418, allocations: 191.4 kB / 410.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.1419, allocations: 29.75 kB / 410.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.142, allocations: 83.69 kB / 410.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.1421, allocations: 71.62 kB / 410.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.1422, allocations: 12 kB / 410.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.1423, allocations: 47.97 kB / 410.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.1424, allocations: 43.83 kB / 410.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.1425, allocations: 63.56 kB / 410.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1428, allocations: 219 kB / 411 MB, free: 3.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1428, allocations: 0 / 411 MB, free: 3.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1428, allocations: 0 / 411 MB, free: 3.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1428, allocations: 0 / 411 MB, free: 3.27 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007565/0.1436, allocations: 0.5077 MB / 411.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1437, allocations: 8.031 kB / 411.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.1437, allocations: 38.75 kB / 411.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.1438, allocations: 20.8 kB / 411.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.1441, allocations: 274.9 kB / 411.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.1442, allocations: 4.375 kB / 411.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.1442, allocations: 7.938 kB / 411.9 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.1445, allocations: 153.2 kB / 412 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1445, allocations: 0 / 412 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1446, allocations: 0 / 412 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1446, allocations: 4 kB / 412.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.1447, allocations: 39.92 kB / 412.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004819/0.1452, allocations: 354.4 kB / 412.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.1454, allocations: 115.9 kB / 412.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.61e-05/0.1455, allocations: 46.5 kB / 412.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.1455, allocations: 4 kB / 412.6 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.1457, allocations: 79.33 kB / 412.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.764e-06/0.1457, allocations: 3.938 kB / 412.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003765/0.1461, allocations: 141.4 kB / 412.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1462, allocations: 132.5 kB / 412.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1465, allocations: 264.9 kB / 413.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.1465, allocations: 29.7 kB / 413.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1466, allocations: 124.3 kB / 413.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.1467, allocations: 15.84 kB / 413.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.1467, allocations: 29.7 kB / 413.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1469, allocations: 326.8 kB / 413.7 MB, free: 292 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.751e-05/0.147, allocations: 23.98 kB / 413.7 MB, free: 268 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.531e-05/0.1471, allocations: 62 kB / 413.8 MB, free: 184 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.1472, allocations: 84.19 kB / 413.9 MB, free: 84 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1472, allocations: 4 kB / 413.9 MB, free: 80 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002232/0.1474, allocations: 113.6 kB / 414 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1475, allocations: 4 kB / 414 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1475, allocations: 4 kB / 414 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1475, allocations: 0 / 414 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.311e-05/0.1476, allocations: 19.92 kB / 414 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1476, allocations: 0 / 414 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.527e-05/0.1477, allocations: 11.89 kB / 414 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.1477, allocations: 4 kB / 414 MB, free: 15.92 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001269/0.1478, allocations: 142.9 kB / 414.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.034e-05/0.1479, allocations: 77.52 kB / 414.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.148, allocations: 17.72 kB / 414.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.148, allocations: 3.984 kB / 414.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.148, allocations: 8 kB / 414.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.148, allocations: 3.938 kB / 414.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.1483, allocations: 225.5 kB / 414.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1483, allocations: 0 / 414.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-05/0.1483, allocations: 7.938 kB / 414.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.1483, allocations: 4 kB / 414.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.1484, allocations: 8.062 kB / 414.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.1484, allocations: 7.922 kB / 414.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1484, allocations: 4 kB / 414.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.1486, allocations: 150.5 kB / 414.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.544e-05/0.1487, allocations: 109 kB / 414.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.1488, allocations: 7.984 kB / 414.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.733e-05/0.1488, allocations: 8 kB / 414.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.1489, allocations: 11.94 kB / 414.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1489, allocations: 3.984 kB / 414.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.1491, allocations: 192.5 kB / 415 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1491, allocations: 0 / 415 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1493, allocations: 31.92 kB / 415 MB, free: 14.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001907/0.1513, allocations: 1.009 MB / 416.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.1515, allocations: 67.91 kB / 416.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.1515, allocations: 4.188 kB / 416.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.507e-05/0.1516, allocations: 27.94 kB / 416.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.152, allocations: 58.25 kB / 416.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.1543, allocations: 1.923 MB / 418.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1547, allocations: 0.7319 MB / 418.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.734e-05/0.1548, allocations: 21.53 kB / 418.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.537e-05/0.1549, allocations: 47.42 kB / 418.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1549, allocations: 0 / 418.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.1823, allocations: 4.556 MB / 423.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.483, allocations: 12.48 kB / 423.5 MB, free: 6.488 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.352572940988466]