Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001417/0.001417, allocations: 120.1 kB / 17.79 MB, free: 5.25 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.001684/0.001684, allocations: 194.8 kB / 20.73 MB, free: 2.312 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.432/1.432, allocations: 225.6 MB / 249.1 MB, free: 3.578 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.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 55.89 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09792, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.00355/0.1015, allocations: 1.923 MB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.1033, allocations: 1.091 MB / 420.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.1035, allocations: 7.875 kB / 420.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005805/0.1041, allocations: 155.5 kB / 420.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003211/0.1044, allocations: 119.5 kB / 421.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006156/0.105, allocations: 209.8 kB / 421.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.1053, allocations: 191.4 kB / 421.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.1054, allocations: 25.67 kB / 421.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1055, allocations: 87.56 kB / 421.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.1057, allocations: 83.61 kB / 421.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.1057, allocations: 12 kB / 421.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.1058, allocations: 51.97 kB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.183e-05/0.1059, allocations: 51.77 kB / 421.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.934e-05/0.106, allocations: 75.48 kB / 421.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.1063, allocations: 215 kB / 422 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1063, allocations: 0 / 422 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1063, allocations: 0 / 422 MB, free: 8.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1064, allocations: 0 / 422 MB, free: 8.305 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.0008423/0.1072, allocations: 0.531 MB / 422.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1072, allocations: 12.03 kB / 422.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.1073, allocations: 34.75 kB / 422.6 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.72e-05/0.1073, allocations: 28.78 kB / 422.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1077, allocations: 271 kB / 422.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1077, allocations: 8.375 kB / 422.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.1077, allocations: 7.938 kB / 422.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003739/0.1081, allocations: 173.8 kB / 423.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1081, allocations: 0 / 423.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.1081, allocations: 0 / 423.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.1082, allocations: 4 kB / 423.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.1083, allocations: 47.91 kB / 423.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005493/0.1088, allocations: 367.3 kB / 423.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.1091, allocations: 134.5 kB / 423.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.847e-05/0.1092, allocations: 51.42 kB / 423.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.1092, allocations: 11.94 kB / 423.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.1094, allocations: 79.31 kB / 423.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.512e-06/0.1094, allocations: 0 / 423.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004006/0.1098, allocations: 153.5 kB / 423.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1099, allocations: 170.5 kB / 424.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.1102, allocations: 272.9 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1102, allocations: 25.7 kB / 424.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.481e-05/0.1103, allocations: 120.3 kB / 424.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.1103, allocations: 15.91 kB / 424.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.797e-05/0.1104, allocations: 37.66 kB / 424.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1106, allocations: 326.8 kB / 424.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.367e-05/0.1106, allocations: 27.98 kB / 424.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.1107, allocations: 87.64 kB / 425 MB, free: 5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.1109, allocations: 89.98 kB / 425.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1109, allocations: 0 / 425.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002363/0.1111, allocations: 129.8 kB / 425.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.1112, allocations: 12.12 kB / 425.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1112, allocations: 8 kB / 425.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1112, allocations: 3.938 kB / 425.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.465e-05/0.1113, allocations: 12 kB / 425.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1113, allocations: 4 kB / 425.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.33e-05/0.1114, allocations: 19.88 kB / 425.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1114, allocations: 4 kB / 425.3 MB, free: 4.695 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,sample1.u,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.0001459/0.1115, allocations: 145.7 kB / 425.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1116, allocations: 81.53 kB / 425.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.561e-05/0.1117, allocations: 29.69 kB / 425.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1117, allocations: 0 / 425.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1117, allocations: 4 kB / 425.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1117, allocations: 3.938 kB / 425.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.112, allocations: 237.6 kB / 425.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.112, allocations: 0 / 425.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.863e-05/0.112, allocations: 4 kB / 425.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.112, allocations: 4 kB / 425.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.112, allocations: 4.094 kB / 425.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.112, allocations: 0 / 425.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.112, allocations: 11.88 kB / 425.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.1123, allocations: 171.5 kB / 426 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.1124, allocations: 101 kB / 426 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.1124, allocations: 15.98 kB / 426.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.603e-05/0.1125, allocations: 4 kB / 426.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.1126, allocations: 7.938 kB / 426.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.1126, allocations: 7.984 kB / 426.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.1128, allocations: 200.5 kB / 426.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1128, allocations: 0 / 426.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.1131, allocations: 31.94 kB / 426.3 MB, free: 3.539 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,sample1.u,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.002023/0.1151, allocations: 1.022 MB / 427.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002512/0.1153, allocations: 87.84 kB / 427.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1153, allocations: 0 / 427.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.964e-05/0.1154, allocations: 19.98 kB / 427.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.1159, allocations: 83.27 kB / 427.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.1183, allocations: 2.023 MB / 429.5 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.1187, allocations: 0.7436 MB / 430.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.887e-05/0.1188, allocations: 17.55 kB / 430.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.1189, allocations: 55.36 kB / 430.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 5.62e-07/0.1189, allocations: 0 / 430.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.1476, allocations: 4.945 MB / 435.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.376, allocations: 2.656 kB / 435.3 MB, free: 10.62 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79247e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.24005180876702]