Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001293/0.001293, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001423/0.001423, allocations: 212.7 kB / 23.73 MB, free: 4.531 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 47.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2868, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002786/0.2896, allocations: 1.565 MB / 432.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003912/0.29, allocations: 143.4 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.579e-05/0.2901, allocations: 4 kB / 432.8 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.431e-05/0.2901, allocations: 3.938 kB / 432.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.2903, allocations: 7.922 kB / 432.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2905, allocations: 35.91 kB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.724e-05/0.2906, allocations: 31.92 kB / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.689e-05/0.2906, allocations: 11.98 kB / 432.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.431e-05/0.2907, allocations: 15.94 kB / 432.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.161e-05/0.2907, allocations: 15.84 kB / 432.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.2907, allocations: 4 kB / 432.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.2908, allocations: 11.94 kB / 432.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.2908, allocations: 15.92 kB / 432.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.2908, allocations: 15.88 kB / 433 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.2909, allocations: 49.44 kB / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2909, allocations: 0 / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.291, allocations: 0 / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.291, allocations: 0 / 433 MB, free: 4.711 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004231/0.2914, allocations: 294.1 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2914, allocations: 12.03 kB / 433.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.267e-05/0.2915, allocations: 38.73 kB / 433.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.2915, allocations: 8.891 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.2917, allocations: 140.8 kB / 433.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.2917, allocations: 384 / 433.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.2917, allocations: 4.375 kB / 433.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.292, allocations: 113.6 kB / 433.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.292, allocations: 7.875 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.292, allocations: 4 kB / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.292, allocations: 4 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.458e-05/0.2921, allocations: 23.92 kB / 433.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002901/0.2924, allocations: 228.8 kB / 433.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.2925, allocations: 61.08 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.36e-05/0.2926, allocations: 29.7 kB / 434 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.2926, allocations: 8 kB / 434 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.2926, allocations: 30.56 kB / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.2927, allocations: 0 / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002516/0.2929, allocations: 85.69 kB / 434.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.293, allocations: 81.14 kB / 434.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.2931, allocations: 134.1 kB / 434.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.2931, allocations: 25.7 kB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.2932, allocations: 84.14 kB / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.2932, allocations: 7.953 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.2932, allocations: 21.7 kB / 434.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2934, allocations: 310.8 kB / 434.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.093e-05/0.2934, allocations: 12.12 kB / 434.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.105e-05/0.2935, allocations: 39.36 kB / 434.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.884e-05/0.2936, allocations: 39.42 kB / 434.8 MB, free: 2.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2936, allocations: 3.938 kB / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001312/0.2937, allocations: 73.64 kB / 434.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2937, allocations: 8 kB / 434.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2937, allocations: 0 / 434.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2938, allocations: 4 kB / 434.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.125e-05/0.2938, allocations: 4 kB / 434.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2938, allocations: 4 kB / 434.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.331e-05/0.2938, allocations: 7.938 kB / 434.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.2939, allocations: 4 kB / 434.9 MB, free: 2.539 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.559e-05/0.2939, allocations: 117.8 kB / 435 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.431e-05/0.294, allocations: 49.62 kB / 435.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.2941, allocations: 20.38 kB / 435.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.2941, allocations: 0 / 435.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2941, allocations: 0 / 435.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2941, allocations: 0 / 435.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2942, allocations: 148.6 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2942, allocations: 0 / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.674e-05/0.2943, allocations: 8 kB / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2943, allocations: 0 / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.2943, allocations: 4 kB / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2943, allocations: 0 / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2943, allocations: 4 kB / 435.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.2945, allocations: 176.2 kB / 435.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.2945, allocations: 11.92 kB / 435.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.2945, allocations: 4 kB / 435.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.912e-05/0.2946, allocations: 4 kB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.317e-05/0.2946, allocations: 3.984 kB / 435.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.2946, allocations: 3.938 kB / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.863e-05/0.2947, allocations: 106.4 kB / 435.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2947, allocations: 0 / 435.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.2949, allocations: 4 kB / 435.6 MB, free: 1.805 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0005075/0.2954, allocations: 0.7054 MB / 436.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.2956, allocations: 31.91 kB / 436.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.2956, allocations: 4 kB / 436.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.074e-05/0.2956, allocations: 4 kB / 436.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.2959, allocations: 18.08 kB / 436.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.2973, allocations: 1.331 MB / 437.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.375e-05/0.2973, allocations: 71.33 kB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.609e-05/0.2974, allocations: 7.984 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.2974, allocations: 19.36 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2974, allocations: 0 / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.329, allocations: 2.036 MB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.94, allocations: 11.38 kB / 439.8 MB, free: 13.55 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_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_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height [Calling sys.exit(0), Time elapsed: 13.640341293008532]