Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.001342/0.001342, 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.001328/0.001328, 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.51/1.51, 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.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 47.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1118, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003348/0.1152, allocations: 1.585 MB / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000951/0.1161, allocations: 490.7 kB / 419.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.412e-05/0.1162, allocations: 7.938 kB / 419.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.294e-05/0.1163, allocations: 3.938 kB / 419.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.1164, allocations: 11.86 kB / 419.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1167, allocations: 51.88 kB / 419.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.1168, allocations: 39.86 kB / 420 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.1169, allocations: 20.11 kB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.675e-05/0.117, allocations: 23.86 kB / 420 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.1171, allocations: 27.84 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.1171, allocations: 4 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.234e-05/0.1171, allocations: 4 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.557e-05/0.1172, allocations: 8 kB / 420.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.604e-05/0.1172, allocations: 31.73 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.1174, allocations: 51.75 kB / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1174, allocations: 0 / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1174, allocations: 0 / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1174, allocations: 3.984 kB / 420.1 MB, free: 10.24 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006835/0.1181, allocations: 387 kB / 420.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1181, allocations: 8.031 kB / 420.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1182, allocations: 34.75 kB / 420.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.1183, allocations: 12.89 kB / 420.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.1186, allocations: 208.1 kB / 420.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1186, allocations: 384 / 420.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.1186, allocations: 4.375 kB / 420.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.1189, allocations: 125.8 kB / 420.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1189, allocations: 0 / 420.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1189, allocations: 4 kB / 420.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1189, allocations: 0 / 420.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.73e-05/0.119, allocations: 23.92 kB / 420.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003787/0.1194, allocations: 278.5 kB / 421.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.1195, allocations: 71.77 kB / 421.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.481e-05/0.1196, allocations: 34.62 kB / 421.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1196, allocations: 8 kB / 421.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1197, allocations: 34.5 kB / 421.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.1197, allocations: 0 / 421.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002863/0.1199, allocations: 85.91 kB / 421.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.12, allocations: 102.8 kB / 421.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.1202, allocations: 148 kB / 421.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1202, allocations: 25.7 kB / 421.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.1203, allocations: 88.14 kB / 421.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.1203, allocations: 7.953 kB / 421.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.1203, allocations: 17.7 kB / 421.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1205, allocations: 322.8 kB / 422.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.666e-05/0.1205, allocations: 11.98 kB / 422.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.606e-05/0.1206, allocations: 35.38 kB / 422.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.1207, allocations: 51.3 kB / 422.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1207, allocations: 3.984 kB / 422.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001411/0.1208, allocations: 69.58 kB / 422.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.1208, allocations: 4 kB / 422.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.1208, allocations: 4 kB / 422.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1208, allocations: 0 / 422.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.396e-05/0.1209, allocations: 16.11 kB / 422.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1209, allocations: 0 / 422.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.324e-05/0.121, allocations: 4 kB / 422.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.121, allocations: 0 / 422.3 MB, free: 7.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001047/0.1211, allocations: 130.4 kB / 422.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.1212, allocations: 45.66 kB / 422.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.832e-05/0.1212, allocations: 15.86 kB / 422.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1212, allocations: 0 / 422.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1212, allocations: 8.062 kB / 422.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1212, allocations: 0 / 422.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.1214, allocations: 173.6 kB / 422.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1214, allocations: 0 / 422.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.754e-05/0.1215, allocations: 19.92 kB / 422.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1215, allocations: 0 / 422.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.964e-06/0.1215, allocations: 0 / 422.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1215, allocations: 4 kB / 422.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1215, allocations: 0 / 422.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1218, allocations: 181.1 kB / 422.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.272e-05/0.1219, allocations: 93.05 kB / 423 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.1219, allocations: 4 kB / 423 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.052e-05/0.1219, allocations: 7.922 kB / 423 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.122, allocations: 3.938 kB / 423 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.122, allocations: 4 kB / 423 MB, free: 6.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.934e-05/0.1221, allocations: 113.5 kB / 423.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1221, allocations: 0 / 423.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1223, allocations: 8 kB / 423.1 MB, free: 6.844 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005803/0.1229, allocations: 0.7101 MB / 423.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001761/0.1231, allocations: 35.92 kB / 423.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1231, allocations: 0 / 423.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.237e-05/0.1231, allocations: 11.92 kB / 423.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.1235, allocations: 27.95 kB / 423.9 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.1252, allocations: 1.396 MB / 425.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.1255, allocations: 0.6961 MB / 426 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.048e-05/0.1256, allocations: 4.031 kB / 426 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.069e-05/0.1256, allocations: 23.42 kB / 426 MB, free: 3.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1256, allocations: 0 / 426 MB, free: 3.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.1533, allocations: 1.689 MB / 427.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.467, allocations: 7.234 kB / 427.7 MB, free: 2.191 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.146488821133971]