Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001897/0.001897, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002602/0.002602, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 63.91 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2756, allocations: 53.41 MB / 431.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.00296/0.2785, allocations: 1.608 MB / 432.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000995/0.2795, allocations: 0.5454 MB / 433.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.541e-05/0.2796, allocations: 4 kB / 433.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.518e-05/0.2796, allocations: 11.86 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.2798, allocations: 7.922 kB / 433.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.2801, allocations: 67.75 kB / 433.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.2802, allocations: 43.86 kB / 433.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.928e-05/0.2803, allocations: 16.11 kB / 433.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2804, allocations: 35.84 kB / 433.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.269e-05/0.2805, allocations: 23.86 kB / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.2805, allocations: 8 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.104e-05/0.2805, allocations: 8 kB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.76e-05/0.2806, allocations: 15.92 kB / 433.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.2806, allocations: 23.8 kB / 433.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.2807, allocations: 67.11 kB / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2807, allocations: 0 / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2807, allocations: 0 / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2808, allocations: 0 / 433.7 MB, free: 4.227 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.0004854/0.2812, allocations: 306.9 kB / 434 MB, free: 3.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2813, allocations: 8.031 kB / 434 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.511e-05/0.2813, allocations: 46.67 kB / 434 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.2815, allocations: 16.89 kB / 434 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.2817, allocations: 146.5 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.2817, allocations: 4.125 kB / 434.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.2817, allocations: 4 kB / 434.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.282, allocations: 117.9 kB / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.282, allocations: 0 / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.282, allocations: 0 / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2821, allocations: 4 kB / 434.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.858e-05/0.2821, allocations: 27.91 kB / 434.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003167/0.2825, allocations: 241.7 kB / 434.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.2826, allocations: 71.78 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.758e-05/0.2827, allocations: 34.62 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.2827, allocations: 4 kB / 434.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.2827, allocations: 38.48 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2827, allocations: 0 / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002694/0.283, allocations: 85.86 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.2831, allocations: 110.8 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.2832, allocations: 153.6 kB / 435.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.2832, allocations: 25.7 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.2833, allocations: 92.14 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.2833, allocations: 0 / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.2833, allocations: 25.66 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2835, allocations: 318.8 kB / 435.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-05/0.2835, allocations: 15.98 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.944e-05/0.2836, allocations: 27.44 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.772e-05/0.2837, allocations: 55.36 kB / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2837, allocations: 0 / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001422/0.2838, allocations: 65.61 kB / 435.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2838, allocations: 7.938 kB / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.2838, allocations: 0 / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.2838, allocations: 4 kB / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.55e-05/0.2839, allocations: 7.984 kB / 435.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2839, allocations: 12 kB / 435.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.834e-05/0.284, allocations: 4 kB / 435.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.284, allocations: 8 kB / 435.7 MB, free: 1.91 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.085e-05/0.2841, allocations: 117.8 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.444e-05/0.2842, allocations: 57.55 kB / 435.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.2842, allocations: 11.95 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2842, allocations: 0 / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2842, allocations: 3.938 kB / 435.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2842, allocations: 4.062 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.2844, allocations: 152.7 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2844, allocations: 4 kB / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.854e-05/0.2844, allocations: 7.984 kB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2844, allocations: 4 kB / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.2845, allocations: 0 / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2845, allocations: 0 / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.2845, allocations: 7.938 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.2847, allocations: 181.1 kB / 436.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.2847, allocations: 11.94 kB / 436.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.2847, allocations: 4 kB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.741e-05/0.2848, allocations: 0 / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.2848, allocations: 11.94 kB / 436.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.2848, allocations: 3.984 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.122e-05/0.2849, allocations: 110.3 kB / 436.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2849, allocations: 4 kB / 436.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002423/0.2852, allocations: 4 kB / 436.4 MB, free: 1.141 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.0005409/0.2857, allocations: 0.7102 MB / 437.1 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000145/0.2858, allocations: 35.86 kB / 437.1 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.2858, allocations: 4 kB / 437.2 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.713e-05/0.2859, allocations: 7.984 kB / 437.2 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.2863, allocations: 30.69 kB / 437.2 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.2878, allocations: 1.414 MB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.2881, allocations: 0.6885 MB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.191e-05/0.2882, allocations: 12.2 kB / 439.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.2882, allocations: 15.44 kB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2882, allocations: 0 / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.3154, allocations: 1.813 MB / 441.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.14, allocations: 10.66 kB / 441.1 MB, free: 12.35 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.704829610996967]