Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001795/0.001795, 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.002121/0.002121, 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.474/1.474, allocations: 225.6 MB / 249.1 MB, free: 3.609 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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1375, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004677/0.1422, allocations: 1.884 MB / 419.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.1449, allocations: 1.153 MB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.145, allocations: 7.938 kB / 420.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.1454, allocations: 63.66 kB / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003398/0.1457, allocations: 99.52 kB / 421 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.1467, allocations: 254.8 kB / 421.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.147, allocations: 167.5 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1472, allocations: 25.53 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.1473, allocations: 75.64 kB / 421.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1475, allocations: 83.66 kB / 421.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.1475, allocations: 8 kB / 421.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.1477, allocations: 71.95 kB / 421.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.1478, allocations: 63.7 kB / 421.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.148, allocations: 75.48 kB / 421.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004834/0.1484, allocations: 235 kB / 422 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1484, allocations: 0 / 422 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1484, allocations: 0 / 422 MB, free: 8.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1484, allocations: 0 / 422 MB, free: 8.371 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.0009858/0.1494, allocations: 0.5309 MB / 422.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/0.1495, allocations: 12.03 kB / 422.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.595e-05/0.1495, allocations: 42.67 kB / 422.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.945e-05/0.1496, allocations: 28.8 kB / 422.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.1502, allocations: 291.8 kB / 422.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.1502, allocations: 4.375 kB / 422.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.1502, allocations: 7.938 kB / 422.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/0.1507, allocations: 163.5 kB / 423.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1507, allocations: 0 / 423.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.1507, allocations: 4 kB / 423.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1507, allocations: 4 kB / 423.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.1509, allocations: 39.89 kB / 423.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007259/0.1516, allocations: 386.4 kB / 423.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.152, allocations: 111.9 kB / 423.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.1521, allocations: 46.56 kB / 423.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.1521, allocations: 0 / 423.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.1524, allocations: 83.31 kB / 423.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.1524, allocations: 0 / 423.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005634/0.1529, allocations: 157.6 kB / 423.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.1531, allocations: 166.2 kB / 424.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005165/0.1536, allocations: 326.6 kB / 424.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.1536, allocations: 29.7 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1538, allocations: 124.1 kB / 424.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.1538, allocations: 23.95 kB / 424.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/0.1539, allocations: 37.84 kB / 424.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.1541, allocations: 334.8 kB / 424.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.971e-05/0.1542, allocations: 23.98 kB / 424.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.1544, allocations: 78.84 kB / 425 MB, free: 5.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.1546, allocations: 88.16 kB / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1546, allocations: 0 / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003497/0.1549, allocations: 125.5 kB / 425.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.155, allocations: 4 kB / 425.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.155, allocations: 4 kB / 425.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.155, allocations: 4.125 kB / 425.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.1551, allocations: 19.98 kB / 425.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1551, allocations: 3.938 kB / 425.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.1553, allocations: 19.81 kB / 425.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.1553, allocations: 8 kB / 425.3 MB, free: 4.738 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,table.y,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.0001954/0.1555, allocations: 149.8 kB / 425.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.1556, allocations: 69.53 kB / 425.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.215e-05/0.1557, allocations: 37.75 kB / 425.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1557, allocations: 0 / 425.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.319e-06/0.1557, allocations: 0 / 425.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.1557, allocations: 7.938 kB / 425.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.1561, allocations: 233.6 kB / 425.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1561, allocations: 0 / 425.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.021e-05/0.1561, allocations: 11.98 kB / 425.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1561, allocations: 0 / 425.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.1562, allocations: 8.125 kB / 425.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1562, allocations: 0 / 425.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1562, allocations: 0 / 425.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003847/0.1566, allocations: 174.5 kB / 426 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1567, allocations: 116.9 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.1567, allocations: 7.938 kB / 426.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.1568, allocations: 4 kB / 426.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.1569, allocations: 11.92 kB / 426.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.1569, allocations: 12 kB / 426.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.1573, allocations: 241.9 kB / 426.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1573, allocations: 0 / 426.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.1577, allocations: 35.98 kB / 426.4 MB, free: 3.527 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,table.y,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.002677/0.1604, allocations: 1.014 MB / 427.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.1607, allocations: 75.89 kB / 427.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1607, allocations: 0 / 427.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.1609, allocations: 27.92 kB / 427.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005755/0.1614, allocations: 70.03 kB / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/0.1655, allocations: 2.202 MB / 429.8 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/0.1662, allocations: 0.7358 MB / 430.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000156/0.1664, allocations: 29.53 kB / 430.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.1665, allocations: 59.41 kB / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1665, allocations: 0 / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03518/0.2017, allocations: 5.29 MB / 435.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.109/8.311, allocations: 13.28 kB / 435.9 MB, free: 10.12 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_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_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.165390374138951]