Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001351/0.001351, 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.001348/0.001348, 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.549/1.549, allocations: 225.6 MB / 249.1 MB, free: 3.598 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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 51.92 kB / 365.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.128, allocations: 52.15 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003378/0.1314, allocations: 1.907 MB / 419.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1334, allocations: 1.188 MB / 420.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1336, allocations: 11.94 kB / 420.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.1339, allocations: 59.67 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.1342, allocations: 91.59 kB / 421 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007321/0.1349, allocations: 266.7 kB / 421.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.1351, allocations: 183.5 kB / 421.5 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1353, allocations: 25.55 kB / 421.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.1354, allocations: 87.61 kB / 421.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.1355, allocations: 83.67 kB / 421.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.1355, allocations: 8 kB / 421.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.1357, allocations: 71.89 kB / 421.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.177e-05/0.1358, allocations: 55.77 kB / 421.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.589e-05/0.1358, allocations: 79.47 kB / 421.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.1362, allocations: 250.8 kB / 422.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1362, allocations: 0 / 422.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1362, allocations: 0 / 422.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.908e-06/0.1362, allocations: 4 kB / 422.1 MB, free: 8.316 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007579/0.137, allocations: 0.5464 MB / 422.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.137, allocations: 12.03 kB / 422.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.126e-05/0.137, allocations: 38.73 kB / 422.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.1371, allocations: 24.8 kB / 422.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.1375, allocations: 299.7 kB / 423 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.1375, allocations: 20.3 kB / 423.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.1375, allocations: 7.938 kB / 423.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.1379, allocations: 174.6 kB / 423.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1379, allocations: 8 kB / 423.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.1379, allocations: 7.922 kB / 423.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1379, allocations: 0 / 423.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.1381, allocations: 39.92 kB / 423.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.1386, allocations: 395.2 kB / 423.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.1389, allocations: 138.5 kB / 423.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.139, allocations: 63.41 kB / 423.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.1391, allocations: 0 / 423.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001945/0.1393, allocations: 87.38 kB / 424 MB, free: 6.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.1393, allocations: 0 / 424 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004374/0.1397, allocations: 169.6 kB / 424.1 MB, free: 6.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.1398, allocations: 183.9 kB / 424.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.1402, allocations: 338.6 kB / 424.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1402, allocations: 29.7 kB / 424.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.891e-05/0.1403, allocations: 136.3 kB / 424.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.1403, allocations: 20.22 kB / 424.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.1404, allocations: 37.7 kB / 424.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1405, allocations: 334.8 kB / 425.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.583e-05/0.1406, allocations: 28.05 kB / 425.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.1408, allocations: 100.6 kB / 425.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.1409, allocations: 105.9 kB / 425.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1409, allocations: 0 / 425.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002789/0.1412, allocations: 141.4 kB / 425.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1412, allocations: 8 kB / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1412, allocations: 0 / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1413, allocations: 4 kB / 425.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.1414, allocations: 23.92 kB / 425.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.1414, allocations: 4 kB / 425.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.459e-05/0.1415, allocations: 11.89 kB / 425.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1415, allocations: 12.19 kB / 425.6 MB, free: 4.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001485/0.1416, allocations: 154.2 kB / 425.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.1417, allocations: 81.48 kB / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.884e-05/0.1418, allocations: 29.7 kB / 425.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1418, allocations: 0 / 425.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1418, allocations: 4 kB / 425.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1418, allocations: 7.922 kB / 425.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.1421, allocations: 241.6 kB / 426.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1421, allocations: 8 kB / 426.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.874e-05/0.1421, allocations: 15.98 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1421, allocations: 0 / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1422, allocations: 4.047 kB / 426.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.1422, allocations: 4.062 kB / 426.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1422, allocations: 3.984 kB / 426.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.1425, allocations: 195.3 kB / 426.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1426, allocations: 113 kB / 426.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.1426, allocations: 7.938 kB / 426.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.541e-05/0.1427, allocations: 7.984 kB / 426.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.1427, allocations: 11.92 kB / 426.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.1428, allocations: 8 kB / 426.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.143, allocations: 241.9 kB / 426.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.143, allocations: 4 kB / 426.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.1433, allocations: 39.92 kB / 426.8 MB, free: 3.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.002009/0.1453, allocations: 1.041 MB / 427.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.1455, allocations: 75.84 kB / 427.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1455, allocations: 0 / 427.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.38e-05/0.1456, allocations: 27.98 kB / 427.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.1461, allocations: 84.91 kB / 428 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.1488, allocations: 2.286 MB / 430.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.1492, allocations: 0.7475 MB / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.195e-05/0.1493, allocations: 33.52 kB / 431.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1494, allocations: 67.36 kB / 431.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1494, allocations: 0 / 431.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.1791, allocations: 5.604 MB / 436.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.328, allocations: 8.25 kB / 436.7 MB, free: 9.27 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79104e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.206658079754561]