Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.00183/0.00183, allocations: 124 kB / 17.79 MB, free: 5.266 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.002239/0.002239, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.487/1.487, allocations: 225.6 MB / 249.1 MB, free: 3.605 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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002254/0.002254, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1178, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00355/0.1214, allocations: 1.892 MB / 419.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.1232, allocations: 1.068 MB / 420.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.1233, allocations: 7.938 kB / 420.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.1239, allocations: 159.5 kB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1242, allocations: 115.5 kB / 421 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.1247, allocations: 202.2 kB / 421.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002358/0.1249, allocations: 167.5 kB / 421.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1251, allocations: 29.53 kB / 421.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.1252, allocations: 75.64 kB / 421.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.1253, allocations: 75.61 kB / 421.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.1253, allocations: 12 kB / 421.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.1255, allocations: 63.89 kB / 421.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.1256, allocations: 47.84 kB / 421.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.1257, allocations: 63.55 kB / 421.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.126, allocations: 203.1 kB / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.126, allocations: 0 / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.126, allocations: 0 / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.126, allocations: 0 / 421.9 MB, free: 8.449 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007944/0.1268, allocations: 0.5116 MB / 422.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1268, allocations: 12.03 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.599e-05/0.1269, allocations: 38.73 kB / 422.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.1269, allocations: 24.73 kB / 422.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1273, allocations: 275 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1273, allocations: 4.375 kB / 422.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.1273, allocations: 15.88 kB / 422.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1276, allocations: 142.7 kB / 422.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1277, allocations: 0 / 422.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.1277, allocations: 4 kB / 422.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1277, allocations: 0 / 422.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.952e-05/0.1278, allocations: 31.92 kB / 423 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.1283, allocations: 366.5 kB / 423.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.1285, allocations: 99.89 kB / 423.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.775e-05/0.1286, allocations: 46.56 kB / 423.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.1286, allocations: 0 / 423.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.1287, allocations: 79.28 kB / 423.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 3.466e-06/0.1288, allocations: 3.984 kB / 423.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003687/0.1291, allocations: 137.6 kB / 423.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.1292, allocations: 144.7 kB / 423.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.1295, allocations: 264.9 kB / 424.1 MB, free: 6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1295, allocations: 25.7 kB / 424.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/0.1296, allocations: 120.1 kB / 424.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.1297, allocations: 23.83 kB / 424.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.1297, allocations: 25.72 kB / 424.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1299, allocations: 326.8 kB / 424.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.728e-05/0.1299, allocations: 31.98 kB / 424.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.941e-05/0.13, allocations: 74 kB / 424.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.1302, allocations: 80.25 kB / 424.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1302, allocations: 0 / 424.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002134/0.1304, allocations: 109.5 kB / 424.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1304, allocations: 8 kB / 424.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1304, allocations: 3.984 kB / 424.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1304, allocations: 0 / 424.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.851e-05/0.1305, allocations: 12 kB / 424.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1305, allocations: 4.125 kB / 424.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.97e-05/0.1306, allocations: 15.89 kB / 424.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1306, allocations: 11.92 kB / 424.9 MB, free: 5.078 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,shiftSample1.y,shiftSample1.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.000132/0.1307, allocations: 141.8 kB / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.312e-05/0.1308, allocations: 61.55 kB / 425.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.844e-05/0.1309, allocations: 21.7 kB / 425.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1309, allocations: 0 / 425.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1309, allocations: 4.062 kB / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1309, allocations: 7.938 kB / 425.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.1311, allocations: 225.6 kB / 425.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1311, allocations: 0 / 425.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.366e-05/0.1311, allocations: 15.98 kB / 425.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.1311, allocations: 0 / 425.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.1312, allocations: 0 / 425.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.1312, allocations: 8.062 kB / 425.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1312, allocations: 0 / 425.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.1314, allocations: 154.6 kB / 425.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.1315, allocations: 116.9 kB / 425.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.1316, allocations: 0 / 425.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.382e-05/0.1316, allocations: 8.094 kB / 425.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.1317, allocations: 15.86 kB / 425.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1317, allocations: 4 kB / 425.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.1319, allocations: 196.4 kB / 425.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1319, allocations: 4 kB / 425.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1321, allocations: 28 kB / 425.9 MB, free: 3.977 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,shiftSample1.y,sample1.y,shiftSample1.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.002024/0.1342, allocations: 1.011 MB / 426.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.1344, allocations: 63.91 kB / 427 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1344, allocations: 0 / 427 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.573e-05/0.1345, allocations: 27.92 kB / 427 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.1349, allocations: 56.72 kB / 427.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.1374, allocations: 1.929 MB / 429 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.1378, allocations: 0.728 MB / 429.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.691e-05/0.1379, allocations: 25.52 kB / 429.8 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.529e-05/0.1379, allocations: 51.42 kB / 429.8 MB, free: 76 kB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1379, allocations: 0 / 429.8 MB, free: 76 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03133/0.1693, allocations: 4.638 MB / 434.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.36, allocations: 0 / 434.5 MB, free: 11.55 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79247e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.434601413086057]