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.001538/0.001538, allocations: 124.5 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001587/0.001587, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.437/1.437, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002093/0.002093, allocations: 47.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1078, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003627/0.1115, allocations: 1.928 MB / 428.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.1138, allocations: 1.325 MB / 429.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1139, allocations: 11.94 kB / 429.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.1143, allocations: 67.66 kB / 429.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.1146, allocations: 135.4 kB / 429.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006522/0.1153, allocations: 223.3 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002623/0.1155, allocations: 199.4 kB / 430.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.1156, allocations: 17.69 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.1158, allocations: 91.61 kB / 430.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.1159, allocations: 87.61 kB / 430.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.1159, allocations: 8 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.1161, allocations: 75.88 kB / 430.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.1162, allocations: 51.78 kB / 430.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1163, allocations: 83.41 kB / 430.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.1166, allocations: 254.9 kB / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1166, allocations: 0 / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1166, allocations: 0 / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1166, allocations: 4 kB / 430.8 MB, free: 240 kB / 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.206/0.3227, allocations: 0.5504 MB / 431.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3227, allocations: 10.28 kB / 431.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.16e-05/0.3227, allocations: 36.97 kB / 431.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.974e-05/0.3228, allocations: 24.91 kB / 431.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3233, allocations: 309.4 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3233, allocations: 10.11 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.3233, allocations: 4.438 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.3237, allocations: 181.3 kB / 432 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3238, allocations: 5.312 kB / 432 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.3238, allocations: 5.188 kB / 432 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3238, allocations: 2.922 kB / 432 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.3239, allocations: 40.44 kB / 432 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005473/0.3245, allocations: 401.3 kB / 432.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.3247, allocations: 140.2 kB / 432.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.3248, allocations: 56.97 kB / 432.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.3249, allocations: 10.22 kB / 432.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.3251, allocations: 77.66 kB / 432.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.735e-06/0.3251, allocations: 1.594 kB / 432.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000475/0.3255, allocations: 177.9 kB / 432.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.3256, allocations: 183.4 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.326, allocations: 346.8 kB / 433.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.3261, allocations: 32.17 kB / 433.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.373e-05/0.3262, allocations: 129 kB / 433.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.3262, allocations: 21.42 kB / 433.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.909e-05/0.3263, allocations: 42.42 kB / 433.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.407e-05/0.3263, allocations: 340.3 kB / 433.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.637e-05/0.3264, allocations: 22.88 kB / 434 MB, free: 9.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.3265, allocations: 106.2 kB / 434.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3267, allocations: 108.1 kB / 434.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.3267, allocations: 2.188 kB / 434.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002587/0.327, allocations: 143.6 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.327, allocations: 6.781 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.327, allocations: 1.188 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.327, allocations: 2.625 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.3272, allocations: 22.78 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3272, allocations: 2.125 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.046e-05/0.3273, allocations: 10.52 kB / 434.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.3273, allocations: 5.969 kB / 434.4 MB, free: 9.375 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.000128/0.3274, allocations: 160.1 kB / 434.5 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.972e-05/0.3275, allocations: 87.45 kB / 434.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.829e-05/0.3276, allocations: 30.5 kB / 434.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3276, allocations: 3.312 kB / 434.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3276, allocations: 4.875 kB / 434.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3276, allocations: 2.859 kB / 434.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.3278, allocations: 245.4 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3278, allocations: 2.562 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.715e-05/0.3279, allocations: 19.42 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.3279, allocations: 1.125 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.3279, allocations: 4.219 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3279, allocations: 2.969 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.3279, allocations: 5.641 kB / 434.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/0.3282, allocations: 187.9 kB / 435.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3283, allocations: 121.8 kB / 435.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.781e-05/0.3284, allocations: 5.219 kB / 435.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.3285, allocations: 6.5 kB / 435.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.3285, allocations: 9.938 kB / 435.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.3285, allocations: 9.469 kB / 435.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.3288, allocations: 253.7 kB / 435.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3288, allocations: 0 / 435.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003162/0.3291, allocations: 33.86 kB / 435.5 MB, free: 8.707 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.001991/0.3311, allocations: 1.05 MB / 436.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3314, allocations: 78.05 kB / 436.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3314, allocations: 1.188 kB / 436.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.3315, allocations: 28.92 kB / 436.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.332, allocations: 82.08 kB / 436.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.3347, allocations: 2.324 MB / 439.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.335, allocations: 0.7509 MB / 439.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3351, allocations: 34.8 kB / 439.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.3352, allocations: 62.98 kB / 439.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3352, allocations: 0 / 439.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.3649, allocations: 5.693 MB / 445.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.458, allocations: 9.516 kB / 445.6 MB, free: 4.754 MB / 350.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/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: 11.01844446999894]