Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8948/0.8948, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.537e-05, allocations: 12.89 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003096/0.003112, allocations: 1.892 MB / 326.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.005106, allocations: 1.258 MB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.005227, allocations: 4 kB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003274/0.005554, allocations: 71.53 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003866/0.005941, allocations: 135.3 kB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.006545, allocations: 246.4 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.006811, allocations: 191.4 kB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.006928, allocations: 25.73 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.007101, allocations: 107.7 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.007229, allocations: 71.8 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.007255, allocations: 15.94 kB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.007422, allocations: 71.88 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.007505, allocations: 55.84 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.413e-05/0.007579, allocations: 47.78 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.007942, allocations: 259.1 kB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.007945, allocations: 0 / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.007946, allocations: 0 / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.007951, allocations: 0 / 329 MB, free: 11.49 MB / 298.7 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.0006892/0.00864, allocations: 493.3 kB / 329.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.008684, allocations: 8.031 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.008728, allocations: 46.67 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.008786, allocations: 24.8 kB / 329.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.009179, allocations: 237.8 kB / 329.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.009198, allocations: 4.375 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.009218, allocations: 12.36 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004211/0.009639, allocations: 209.5 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.009651, allocations: 3.984 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.009666, allocations: 4 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.009671, allocations: 4 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.009806, allocations: 43.92 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005958/0.0104, allocations: 354.4 kB / 330.4 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.01068, allocations: 142.5 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.472e-05/0.01077, allocations: 55.41 kB / 330.6 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.0108, allocations: 7.984 kB / 330.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.011, allocations: 83.33 kB / 330.7 MB, free: 9.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.544e-06/0.011, allocations: 0 / 330.7 MB, free: 9.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004347/0.01144, allocations: 177.4 kB / 330.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.01155, allocations: 166.1 kB / 331 MB, free: 9.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.01193, allocations: 348.2 kB / 331.4 MB, free: 8.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.01195, allocations: 29.7 kB / 331.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.01205, allocations: 128.4 kB / 331.5 MB, free: 8.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.01208, allocations: 20.2 kB / 331.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.01213, allocations: 33.67 kB / 331.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.01225, allocations: 338.8 kB / 331.9 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.008e-05/0.01232, allocations: 19.98 kB / 331.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.01244, allocations: 114.8 kB / 332 MB, free: 8.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.01255, allocations: 61.64 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.01256, allocations: 4.25 kB / 332.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001429/0.0127, allocations: 109.5 kB / 332.2 MB, free: 7.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.01271, allocations: 4 kB / 332.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01272, allocations: 8.062 kB / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.01273, allocations: 0 / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.955e-05/0.0128, allocations: 19.86 kB / 332.2 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.01281, allocations: 4 kB / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.105e-05/0.01285, allocations: 0 / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.01286, allocations: 4 kB / 332.2 MB, free: 7.906 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.0001037/0.01296, allocations: 156.2 kB / 332.4 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/0.01303, allocations: 77.48 kB / 332.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.01321, allocations: 131.5 kB / 332.6 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.01321, allocations: 0 / 332.6 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01322, allocations: 4 kB / 332.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.01322, allocations: 3.984 kB / 332.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.01339, allocations: 212.6 kB / 332.8 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01339, allocations: 0 / 332.8 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.601e-05/0.01344, allocations: 19.98 kB / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.01344, allocations: 0 / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.01345, allocations: 8 kB / 332.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01345, allocations: 0 / 332.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01345, allocations: 0 / 332.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.01362, allocations: 195.3 kB / 333 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.01368, allocations: 43.77 kB / 333.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.0137, allocations: 8 kB / 333.1 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.321e-05/0.01374, allocations: 0 / 333.1 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.01378, allocations: 11.98 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.0138, allocations: 11.98 kB / 333.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000171/0.01397, allocations: 251.1 kB / 333.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01397, allocations: 0 / 333.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000189/0.01416, allocations: 39.94 kB / 333.4 MB, free: 6.66 MB / 298.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001177/0.01533, allocations: 1.074 MB / 334.5 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.0155, allocations: 71.91 kB / 334.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.0155, allocations: 0 / 334.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.224e-05/0.01555, allocations: 31.91 kB / 334.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.01585, allocations: 94.91 kB / 334.7 MB, free: 5.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.01762, allocations: 2.225 MB / 336.9 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.112e-05/0.01771, allocations: 140.2 kB / 337 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.751e-05/0.01777, allocations: 29.62 kB / 337.1 MB, free: 3.023 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/0.01785, allocations: 68.42 kB / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01785, allocations: 0 / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.04309, allocations: 6.547 MB / 343.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.447, allocations: 5.359 kB / 343.7 MB, free: 12.48 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.268954782746732]