Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001179/0.001179, allocations: 76.08 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001026/0.001026, allocations: 149.4 kB / 23.93 MB, free: 0.6211 MB / 18.57 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 0.9047/0.9047, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.095e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002559/0.00258, allocations: 1.837 MB / 320.3 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.003899, allocations: 1.071 MB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.004021, allocations: 11.88 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.004316, allocations: 55.73 kB / 321.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.004559, allocations: 103.5 kB / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.005129, allocations: 269.8 kB / 321.8 MB, free: 3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.005348, allocations: 175.5 kB / 321.9 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.005449, allocations: 25.77 kB / 322 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.005559, allocations: 87.75 kB / 322 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.601e-05/0.005655, allocations: 83.77 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.005677, allocations: 8 kB / 322.1 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.005809, allocations: 67.89 kB / 322.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.005877, allocations: 55.77 kB / 322.3 MB, free: 2.504 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.106e-05/0.005928, allocations: 39.86 kB / 322.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.006198, allocations: 243.1 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.006201, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006202, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.006206, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.7 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.000536/0.006742, allocations: 454.7 kB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.006777, allocations: 12.92 kB / 323 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.006811, allocations: 42.73 kB / 323 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.799e-05/0.006859, allocations: 28.75 kB / 323.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.00719, allocations: 228.7 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.007205, allocations: 4.375 kB / 323.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.007217, allocations: 8.375 kB / 323.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002766/0.007493, allocations: 180.6 kB / 323.5 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.007501, allocations: 4 kB / 323.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.007511, allocations: 0 / 323.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.007516, allocations: 4 kB / 323.5 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.779e-05/0.007594, allocations: 43.91 kB / 323.5 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003966/0.007991, allocations: 341.5 kB / 323.9 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.008147, allocations: 111.9 kB / 324 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.479e-05/0.008202, allocations: 54.48 kB / 324 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.00822, allocations: 4 kB / 324 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001233/0.008344, allocations: 79.38 kB / 324.1 MB, free: 472 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.008345, allocations: 0 / 324.1 MB, free: 472 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002713/0.008616, allocations: 161.4 kB / 324.3 MB, free: 304 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.008674, allocations: 132.5 kB / 324.4 MB, free: 140 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.008916, allocations: 325.9 kB / 324.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.008929, allocations: 25.7 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.009002, allocations: 132.1 kB / 324.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.00902, allocations: 16.14 kB / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.009058, allocations: 29.72 kB / 324.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.00914, allocations: 334.8 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.368e-05/0.009184, allocations: 27.92 kB / 325.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-05/0.009255, allocations: 106.8 kB / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.083e-05/0.009346, allocations: 65.89 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.009349, allocations: 3.938 kB / 325.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001749/0.009524, allocations: 105.5 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.009542, allocations: 11.98 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.009549, allocations: 4.062 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.009564, allocations: 0 / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.97e-05/0.009653, allocations: 12 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.009659, allocations: 0 / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.982e-05/0.009719, allocations: 15.88 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.009727, allocations: 0 / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.000135/0.009862, allocations: 149.8 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-05/0.009951, allocations: 69.48 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002424/0.01019, allocations: 135.7 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.0102, allocations: 4 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.0102, allocations: 0 / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.01021, allocations: 3.984 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.01041, allocations: 196.6 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.01041, allocations: 4 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.836e-05/0.01048, allocations: 15.94 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.01049, allocations: 4 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.0105, allocations: 3.984 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.0105, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.01051, allocations: 4 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.0107, allocations: 174.5 kB / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.01076, allocations: 35.84 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.01079, allocations: 4 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.247e-05/0.01083, allocations: 12.05 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.01087, allocations: 7.984 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.01089, allocations: 4 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.01105, allocations: 241.2 kB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01105, allocations: 0 / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001855/0.01124, allocations: 39.92 kB / 326.7 MB, free: 13.7 MB / 298.7 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,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.00111/0.01235, allocations: 1.059 MB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.0125, allocations: 63.97 kB / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.0125, allocations: 0 / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-05/0.01255, allocations: 27.92 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.01282, allocations: 75.48 kB / 327.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.01465, allocations: 2.148 MB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.01476, allocations: 123.9 kB / 330.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.604e-05/0.01485, allocations: 29.61 kB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.859e-05/0.01494, allocations: 60.48 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01494, allocations: 0 / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.037, allocations: 6.06 MB / 336.3 MB, free: 4.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.255, allocations: 21.25 kB / 336.3 MB, free: 4.145 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.105667082592845]