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.001705/0.001705, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002235/0.002235, allocations: 213.7 kB / 23.73 MB, free: 4.16 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.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001832/0.001832, allocations: 55.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2635, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002962/0.2664, allocations: 1.594 MB / 432.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009739/0.2674, allocations: 0.5026 MB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.489e-05/0.2675, allocations: 0 / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.2675, allocations: 7.875 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.2677, allocations: 11.92 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.268, allocations: 71 kB / 433.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.2681, allocations: 51.78 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.037e-05/0.2682, allocations: 8.188 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.2683, allocations: 31.86 kB / 433.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.2684, allocations: 23.84 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.2684, allocations: 4 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.772e-05/0.2684, allocations: 4 kB / 433.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.525e-05/0.2685, allocations: 15.92 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.105e-05/0.2685, allocations: 19.88 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.2686, allocations: 65.36 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2686, allocations: 4 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2686, allocations: 0 / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2686, allocations: 0 / 433.5 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.0004526/0.2691, allocations: 308.7 kB / 433.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2691, allocations: 15.97 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.408e-05/0.2692, allocations: 30.75 kB / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2693, allocations: 24.88 kB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.2695, allocations: 146.8 kB / 434 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2696, allocations: 12.12 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.2696, allocations: 0 / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.2698, allocations: 117.9 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2699, allocations: 0 / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.2699, allocations: 4 kB / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.2699, allocations: 0 / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.208e-05/0.2699, allocations: 23.92 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000334/0.2703, allocations: 245.7 kB / 434.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.2704, allocations: 67.78 kB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.378e-05/0.2705, allocations: 30.62 kB / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.2705, allocations: 0 / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.2705, allocations: 42.5 kB / 434.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.2705, allocations: 0 / 434.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002536/0.2708, allocations: 85.91 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.2709, allocations: 110.8 kB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.271, allocations: 148.9 kB / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.271, allocations: 29.7 kB / 434.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.2711, allocations: 88.12 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.2711, allocations: 3.938 kB / 435 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.2711, allocations: 25.67 kB / 435 MB, free: 2.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2713, allocations: 318.8 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.251e-05/0.2713, allocations: 8 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.188e-05/0.2714, allocations: 35.42 kB / 435.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.128e-05/0.2715, allocations: 47.39 kB / 435.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2715, allocations: 3.938 kB / 435.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001381/0.2716, allocations: 69.61 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.2716, allocations: 11.94 kB / 435.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2716, allocations: 4.125 kB / 435.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.2717, allocations: 0 / 435.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.004e-05/0.2717, allocations: 8 kB / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.2717, allocations: 7.922 kB / 435.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.747e-05/0.2718, allocations: 7.938 kB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.2718, allocations: 4 kB / 435.5 MB, free: 1.914 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.48e-05/0.2719, allocations: 113.8 kB / 435.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.272, allocations: 57.59 kB / 435.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.033e-05/0.272, allocations: 7.969 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.272, allocations: 8.062 kB / 435.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.272, allocations: 7.875 kB / 435.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.272, allocations: 3.984 kB / 435.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.2722, allocations: 140.7 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2722, allocations: 0 / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.624e-05/0.2722, allocations: 11.98 kB / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2722, allocations: 0 / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.2722, allocations: 4 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.2723, allocations: 4 kB / 435.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2723, allocations: 3.938 kB / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.2725, allocations: 189.2 kB / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/0.2725, allocations: 11.94 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.2725, allocations: 8 kB / 436.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.56e-05/0.2726, allocations: 0 / 436.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.2726, allocations: 11.92 kB / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-06/0.2726, allocations: 0 / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.929e-05/0.2727, allocations: 107.3 kB / 436.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2727, allocations: 0 / 436.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.2729, allocations: 4 kB / 436.2 MB, free: 1.148 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.0005019/0.2734, allocations: 0.7141 MB / 436.9 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001359/0.2736, allocations: 31.98 kB / 437 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2736, allocations: 0 / 437 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.91e-05/0.2736, allocations: 11.92 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.0003522/0.274, allocations: 27.89 kB / 437 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2754, allocations: 1.406 MB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.781e-05/0.2755, allocations: 83.27 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.427e-05/0.2755, allocations: 7.984 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.2756, allocations: 15.44 kB / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2756, allocations: 4 kB / 438.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0311/0.3067, allocations: 2.238 MB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.53, allocations: 14.06 kB / 440.8 MB, free: 12.58 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.059735736809671]