Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001664/0.001664, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00207/0.00207, allocations: 202.9 kB / 23.73 MB, free: 4.379 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 43.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2587, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.00331/0.262, allocations: 1.592 MB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.2631, allocations: 0.5065 MB / 433.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.86e-05/0.2632, allocations: 7.938 kB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.278e-05/0.2632, allocations: 7.922 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.2634, allocations: 3.938 kB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.2637, allocations: 59.81 kB / 433.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.2639, allocations: 47.8 kB / 433.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.264, allocations: 16.16 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.2641, allocations: 35.86 kB / 433.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.225e-05/0.2642, allocations: 27.86 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.2642, allocations: 4 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.062e-05/0.2642, allocations: 4 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.95e-05/0.2643, allocations: 19.91 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.2643, allocations: 15.88 kB / 433.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.2644, allocations: 65.36 kB / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2645, allocations: 0 / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2645, allocations: 0 / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2645, allocations: 0 / 433.5 MB, free: 4.234 MB / 334.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.0004682/0.2649, allocations: 306 kB / 433.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.265, allocations: 11.97 kB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.279e-05/0.265, allocations: 50.66 kB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.2651, allocations: 12.89 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.2654, allocations: 150.8 kB / 434 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.2655, allocations: 8.125 kB / 434 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.2655, allocations: 4 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.2658, allocations: 113.9 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2658, allocations: 0 / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.2658, allocations: 4 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2658, allocations: 0 / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.551e-05/0.2659, allocations: 23.91 kB / 434.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000326/0.2662, allocations: 245.7 kB / 434.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.2663, allocations: 67.78 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.741e-05/0.2664, allocations: 30.64 kB / 434.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.2664, allocations: 11.92 kB / 434.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.2664, allocations: 34.56 kB / 434.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.133e-06/0.2664, allocations: 0 / 434.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002668/0.2667, allocations: 81.56 kB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.224e-05/0.2668, allocations: 110.8 kB / 434.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.2669, allocations: 152.5 kB / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.267, allocations: 30.08 kB / 434.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.267, allocations: 92.14 kB / 435 MB, free: 2.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.267, allocations: 0 / 435 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.2671, allocations: 25.66 kB / 435 MB, free: 2.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.2672, allocations: 318.8 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.463e-05/0.2673, allocations: 7.984 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.602e-05/0.2673, allocations: 35.42 kB / 435.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.612e-05/0.2674, allocations: 47.36 kB / 435.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.2674, allocations: 4 kB / 435.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001404/0.2676, allocations: 69.62 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2676, allocations: 7.938 kB / 435.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2676, allocations: 4 kB / 435.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2676, allocations: 0 / 435.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.754e-05/0.2677, allocations: 15.92 kB / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.2677, allocations: 3.938 kB / 435.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.098e-05/0.2678, allocations: 8.125 kB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.2678, allocations: 0 / 435.5 MB, free: 1.918 MB / 334.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 9.657e-05/0.2679, allocations: 121.8 kB / 435.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.2679, allocations: 53.55 kB / 435.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.268, allocations: 15.95 kB / 435.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.268, allocations: 0 / 435.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.268, allocations: 7.938 kB / 435.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.268, allocations: 0 / 435.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.2682, allocations: 144.7 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2682, allocations: 0 / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.645e-05/0.2682, allocations: 16 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2682, allocations: 0 / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.2682, allocations: 0 / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.2683, allocations: 7.984 kB / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2683, allocations: 3.938 kB / 435.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.2685, allocations: 181.1 kB / 436.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-05/0.2685, allocations: 8.094 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.2685, allocations: 3.984 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.143e-05/0.2686, allocations: 8 kB / 436.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/0.2686, allocations: 11.92 kB / 436.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.2686, allocations: 4 kB / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.044e-05/0.2687, allocations: 111.2 kB / 436.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2687, allocations: 0 / 436.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.2689, allocations: 4 kB / 436.2 MB, free: 1.145 MB / 334.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.0005223/0.2695, allocations: 0.7063 MB / 436.9 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.2696, allocations: 40.09 kB / 437 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2696, allocations: 0 / 437 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.591e-05/0.2697, allocations: 8 kB / 437 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.27, allocations: 26.53 kB / 437 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.2716, allocations: 1.403 MB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.66e-05/0.2717, allocations: 83.58 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.308e-05/0.2717, allocations: 4 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.2718, allocations: 19.42 kB / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.2718, allocations: 0 / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.3001, allocations: 2.284 MB / 440.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.11, allocations: 8 kB / 440.8 MB, free: 12.55 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.629346300993348]