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.001099/0.001099, allocations: 109.2 kB / 16.62 MB, free: 6.961 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.001185/0.001185, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.294/1.294, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.03 kB / 300.2 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 49.44 MB / 349.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.001854/0.1035, allocations: 0.5869 MB / 350.3 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.1054, allocations: 1.479 MB / 351.7 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.776e-05/0.1055, allocations: 4 kB / 351.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.488e-05/0.1055, allocations: 0 / 351.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007003/0.1062, allocations: 147.7 kB / 351.9 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.049e-05/0.1063, allocations: 11.98 kB / 351.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.873e-05/0.1063, allocations: 8 kB / 351.9 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.1064, allocations: 4 kB / 351.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.431e-05/0.1064, allocations: 11.92 kB / 351.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.314e-05/0.1065, allocations: 7.922 kB / 351.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.1065, allocations: 4 kB / 351.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003649/0.1069, allocations: 243.7 kB / 352.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.1069, allocations: 3.984 kB / 352.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.159e-05/0.1069, allocations: 3.938 kB / 352.2 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003024/0.1073, allocations: 175.7 kB / 352.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1073, allocations: 0 / 352.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1073, allocations: 0 / 352.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1073, allocations: 3.938 kB / 352.4 MB, free: 1.742 MB / 286.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.0004067/0.1077, allocations: 363.7 kB / 352.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1078, allocations: 12.03 kB / 352.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.271e-05/0.1078, allocations: 30.75 kB / 352.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.579e-05/0.1078, allocations: 0.9375 kB / 352.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.108, allocations: 172.3 kB / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.108, allocations: 4.375 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.108, allocations: 384 / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.92e-05/0.1081, allocations: 41.77 kB / 353 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1081, allocations: 3.984 kB / 353 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.1081, allocations: 0 / 353 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1081, allocations: 4 kB / 353 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.277e-05/0.1082, allocations: 4 kB / 353 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001676/0.1083, allocations: 161.7 kB / 353.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.474e-05/0.1084, allocations: 42.55 kB / 353.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.157e-05/0.1085, allocations: 8.859 kB / 353.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.183e-06/0.1085, allocations: 0 / 353.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.1085, allocations: 34.5 kB / 353.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.1085, allocations: 0 / 353.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001481/0.1086, allocations: 45.78 kB / 353.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.1087, allocations: 59.41 kB / 353.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.1088, allocations: 101.8 kB / 353.4 MB, free: 488 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1088, allocations: 33.64 kB / 353.5 MB, free: 448 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.1089, allocations: 84.14 kB / 353.5 MB, free: 360 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.1089, allocations: 19.69 kB / 353.6 MB, free: 340 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.109, allocations: 17.72 kB / 353.6 MB, free: 316 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1091, allocations: 314.8 kB / 353.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.86e-05/0.1091, allocations: 8 kB / 353.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.299e-05/0.1091, allocations: 13.72 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.752e-05/0.1092, allocations: 38.08 kB / 353.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1092, allocations: 128 / 353.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.154e-05/0.1093, allocations: 65.55 kB / 354 MB, free: 15.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1093, allocations: 8 kB / 354 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1093, allocations: 0 / 354 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.1093, allocations: 0 / 354 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.888e-05/0.1094, allocations: 12 kB / 354 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1095, allocations: 0 / 354 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.1095, allocations: 0 / 354 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.1095, allocations: 8.031 kB / 354 MB, free: 15.82 MB / 302.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.148e-05/0.1096, allocations: 109.8 kB / 354.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.1096, allocations: 7.844 kB / 354.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.1096, allocations: 15.48 kB / 354.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.1096, allocations: 3.938 kB / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1096, allocations: 0 / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1097, allocations: 0 / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1098, allocations: 153.7 kB / 354.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1098, allocations: 0 / 354.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.056e-05/0.1099, allocations: 15.94 kB / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1099, allocations: 0 / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.1099, allocations: 0 / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1099, allocations: 0 / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1099, allocations: 0 / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.11, allocations: 81.14 kB / 354.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/0.1101, allocations: 81.05 kB / 354.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1101, allocations: 0 / 354.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.785e-05/0.1101, allocations: 4.062 kB / 354.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.1101, allocations: 3.938 kB / 354.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.1102, allocations: 4 kB / 354.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.1102, allocations: 87.2 kB / 354.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1102, allocations: 0 / 354.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.1105, allocations: 48 kB / 354.6 MB, free: 15.12 MB / 302.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.0005457/0.111, allocations: 0.667 MB / 355.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.287e-05/0.1111, allocations: 23.92 kB / 355.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1111, allocations: 0 / 355.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.406e-05/0.1112, allocations: 12 kB / 355.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.1113, allocations: 0 / 355.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1124, allocations: 1.189 MB / 356.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.1128, allocations: 0.6768 MB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.1129, allocations: 7.938 kB / 357.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.113, allocations: 11.44 kB / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.113, allocations: 0 / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.1268, allocations: 1.897 MB / 359.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.127, allocations: 196.4 kB / 359.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/1.845, allocations: 3.938 kB / 359.3 MB, free: 10.35 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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