Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Math.Nonlinear.Examples.QuadratureLobatto3,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 108.4 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 200 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2807, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.001983/0.2827, allocations: 0.519 MB / 400.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.2853, allocations: 1.487 MB / 402.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.049e-05/0.2854, allocations: 0 / 402.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.2854, allocations: 0 / 402.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009588/0.2864, allocations: 178.9 kB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.257e-05/0.2865, allocations: 4 kB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.305e-05/0.2865, allocations: 15.92 kB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.831e-05/0.2866, allocations: 11.98 kB / 402.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.515e-05/0.2867, allocations: 8 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.2867, allocations: 3.938 kB / 402.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.2867, allocations: 0 / 402.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005265/0.2873, allocations: 243.7 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.997e-05/0.2873, allocations: 8 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.842e-05/0.2873, allocations: 7.922 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.2877, allocations: 174.6 kB / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2877, allocations: 0 / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2877, allocations: 0 / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2877, allocations: 0 / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000513/0.2883, allocations: 363 kB / 403.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2883, allocations: 8.031 kB / 403.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.2884, allocations: 42.75 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.2884, allocations: 0.9375 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.2885, allocations: 172.3 kB / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.2886, allocations: 4.375 kB / 403.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.2886, allocations: 384 / 403.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.808e-05/0.2887, allocations: 45.8 kB / 403.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2887, allocations: 0 / 403.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.2887, allocations: 0 / 403.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2887, allocations: 4 kB / 403.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.167e-05/0.2888, allocations: 7.984 kB / 403.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001832/0.289, allocations: 161.7 kB / 403.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.448e-05/0.289, allocations: 30.58 kB / 403.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.547e-05/0.2891, allocations: 12.95 kB / 403.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.2891, allocations: 3.984 kB / 403.7 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.2891, allocations: 34.5 kB / 403.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.2891, allocations: 0 / 403.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001568/0.2893, allocations: 53.62 kB / 403.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2893, allocations: 51.41 kB / 403.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.716e-05/0.2894, allocations: 105.8 kB / 404 MB, free: 4.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.2895, allocations: 25.7 kB / 404 MB, free: 4.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.2895, allocations: 84.12 kB / 404.1 MB, free: 4.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.194e-05/0.2895, allocations: 15.91 kB / 404.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.2896, allocations: 17.72 kB / 404.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.2897, allocations: 310.8 kB / 404.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.981e-05/0.2897, allocations: 11.98 kB / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.903e-05/0.2898, allocations: 17.72 kB / 404.4 MB, free: 4.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.909e-05/0.2898, allocations: 37.59 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2898, allocations: 0 / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001021/0.2899, allocations: 57.58 kB / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.29, allocations: 4 kB / 404.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.29, allocations: 4 kB / 404.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.29, allocations: 4.031 kB / 404.5 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.074e-05/0.2901, allocations: 15.92 kB / 404.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.2901, allocations: 0 / 404.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.2901, allocations: 0 / 404.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.2901, allocations: 8 kB / 404.6 MB, free: 4.223 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (5): * Single equations (assignments): 5 * 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 7.955e-05/0.2902, allocations: 105.8 kB / 404.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.275e-05/0.2902, allocations: 3.938 kB / 404.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.2903, allocations: 11.92 kB / 404.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2903, allocations: 0 / 404.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2903, allocations: 4 kB / 404.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2903, allocations: 0 / 404.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.2904, allocations: 153.7 kB / 404.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2904, allocations: 0 / 404.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.897e-05/0.2905, allocations: 19.92 kB / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2905, allocations: 0 / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.2905, allocations: 0 / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2905, allocations: 128 / 404.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2905, allocations: 4 kB / 404.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.2907, allocations: 81.02 kB / 404.9 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2907, allocations: 85.08 kB / 405 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.2907, allocations: 7.984 kB / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.831e-05/0.2908, allocations: 0 / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.2908, allocations: 0 / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.2908, allocations: 7.938 kB / 405 MB, free: 3.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.551e-05/0.2909, allocations: 79.28 kB / 405.1 MB, free: 3.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2909, allocations: 0 / 405.1 MB, free: 3.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.2912, allocations: 59.8 kB / 405.2 MB, free: 3.512 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q,qd) * 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 (3): * Single equations (assignments): 3 * 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.0006198/0.2918, allocations: 0.6669 MB / 405.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.951e-05/0.2919, allocations: 16 kB / 405.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2919, allocations: 0 / 405.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.808e-05/0.2919, allocations: 15.92 kB / 405.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001581/0.2921, allocations: 10.78 kB / 405.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2932, allocations: 1.178 MB / 407.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.2935, allocations: 0.6805 MB / 407.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2937, allocations: 7.984 kB / 407.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.555e-05/0.2937, allocations: 15.44 kB / 407.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2937, allocations: 0 / 407.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.3115, allocations: 1.998 MB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/7.763, allocations: 11.12 kB / 409.8 MB, free: 14.85 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3.fmu > Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Nonlinear/Examples/QuadratureLobatto3/QuadratureLobatto3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches