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.001938/0.001938, 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.002254/0.002254, 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.575/1.575, allocations: 225.6 MB / 249.1 MB, free: 3.598 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.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 0.001529/0.001529, allocations: 51.92 kB / 365.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.1014, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003712/0.1051, allocations: 1.884 MB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.107, allocations: 1.134 MB / 420.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.1071, allocations: 7.938 kB / 420.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002909/0.1074, allocations: 63.67 kB / 420.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.1077, allocations: 91.64 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006966/0.1084, allocations: 258.4 kB / 421.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.1086, allocations: 167.5 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.1087, allocations: 25.53 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.1088, allocations: 75.7 kB / 421.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.109, allocations: 79.67 kB / 421.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.109, allocations: 8 kB / 421.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.1092, allocations: 71.89 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.402e-05/0.1092, allocations: 59.77 kB / 421.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.924e-05/0.1093, allocations: 75.47 kB / 421.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.1097, allocations: 234.9 kB / 422 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1097, allocations: 3.984 kB / 422 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1097, allocations: 0 / 422 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1097, allocations: 0 / 422 MB, free: 8.375 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.0007702/0.1105, allocations: 0.531 MB / 422.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1105, allocations: 8.031 kB / 422.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.1105, allocations: 34.75 kB / 422.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.1106, allocations: 32.8 kB / 422.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004249/0.111, allocations: 299.7 kB / 422.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.111, allocations: 8.375 kB / 422.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.1111, allocations: 7.938 kB / 422.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.1114, allocations: 163.3 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1114, allocations: 0 / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.1114, allocations: 0 / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1114, allocations: 0 / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.1115, allocations: 39.92 kB / 423.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005297/0.1121, allocations: 386.3 kB / 423.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.1123, allocations: 119.8 kB / 423.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.1124, allocations: 46.56 kB / 423.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.1125, allocations: 4 kB / 423.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000177/0.1126, allocations: 75.38 kB / 423.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.1126, allocations: 0 / 423.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004147/0.1131, allocations: 161.6 kB / 423.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1132, allocations: 162.2 kB / 424 MB, free: 6.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.1135, allocations: 326.6 kB / 424.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1136, allocations: 29.7 kB / 424.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.1137, allocations: 120.1 kB / 424.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.1137, allocations: 23.95 kB / 424.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/0.1138, allocations: 33.67 kB / 424.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1139, allocations: 334.9 kB / 424.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.482e-05/0.114, allocations: 23.98 kB / 424.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.1141, allocations: 94.67 kB / 425 MB, free: 5.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.1143, allocations: 88.2 kB / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1143, allocations: 0 / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002429/0.1145, allocations: 113.5 kB / 425.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1145, allocations: 10.5 kB / 425.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1145, allocations: 0 / 425.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1146, allocations: 8.125 kB / 425.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1147, allocations: 23.92 kB / 425.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.1147, allocations: 4 kB / 425.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.1148, allocations: 15.83 kB / 425.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.1148, allocations: 4.047 kB / 425.3 MB, free: 4.75 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,subSample1.y,subSample1.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.0001467/0.1149, allocations: 162.5 kB / 425.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.115, allocations: 65.5 kB / 425.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.1151, allocations: 25.77 kB / 425.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1151, allocations: 8 kB / 425.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1151, allocations: 320 / 425.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1151, allocations: 3.938 kB / 425.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.1153, allocations: 237.6 kB / 425.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1153, allocations: 4 kB / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-05/0.1154, allocations: 12 kB / 425.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1154, allocations: 3.938 kB / 425.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.1154, allocations: 3.984 kB / 425.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1154, allocations: 4 kB / 425.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1154, allocations: 0 / 425.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.1157, allocations: 174.5 kB / 426 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.1158, allocations: 116.9 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.1159, allocations: 0 / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.372e-05/0.1159, allocations: 7.984 kB / 426.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.116, allocations: 11.94 kB / 426.1 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.116, allocations: 11.98 kB / 426.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002574/0.1162, allocations: 241.9 kB / 426.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1162, allocations: 0 / 426.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1165, allocations: 31.94 kB / 426.4 MB, free: 3.535 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,subSample1.y,sample1.y,subSample1.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.002071/0.1186, allocations: 1.02 MB / 427.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.1188, allocations: 67.84 kB / 427.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1188, allocations: 0 / 427.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.861e-05/0.1189, allocations: 27.98 kB / 427.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.1193, allocations: 63.61 kB / 427.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.122, allocations: 2.201 MB / 429.7 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.1224, allocations: 0.7475 MB / 430.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.451e-05/0.1225, allocations: 33.52 kB / 430.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.1226, allocations: 55.42 kB / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1226, allocations: 0 / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.1514, allocations: 5.245 MB / 435.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.402, allocations: 6.859 kB / 435.8 MB, free: 10.16 MB / 366.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/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: 11.342213990166783]