Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Math.Nonlinear.Examples.QuadratureLobatto3,fileNamePrefix="Modelica_trunk_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3,fileNamePrefix="Modelica_trunk_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009335/0.0009335, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 59.62 kB / 306.5 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 50.54 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.001921/0.1041, allocations: 0.5832 MB / 357.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.1061, allocations: 1.542 MB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.581e-05/0.1062, allocations: 4 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.825e-05/0.1062, allocations: 0 / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007252/0.107, allocations: 159.7 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.721e-05/0.107, allocations: 4 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.025e-05/0.1071, allocations: 12 kB / 359.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.797e-05/0.1071, allocations: 3.984 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.182e-05/0.1071, allocations: 11.88 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.042e-05/0.1072, allocations: 4 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.1072, allocations: 0 / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.1076, allocations: 251.7 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.399e-05/0.1076, allocations: 7.938 kB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.313e-05/0.1077, allocations: 4 kB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.108, allocations: 175.7 kB / 359.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.108, allocations: 0 / 359.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.108, allocations: 0 / 359.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.108, allocations: 0 / 359.8 MB, free: 11.54 MB / 302.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.0004389/0.1084, allocations: 363.7 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1085, allocations: 12.03 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.1085, allocations: 34.75 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.1086, allocations: 4.938 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1087, allocations: 168.3 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1087, allocations: 384 / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.1087, allocations: 4.375 kB / 360.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.354e-05/0.1088, allocations: 45.7 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1088, allocations: 0 / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.1089, allocations: 0 / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1089, allocations: 0 / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.428e-05/0.1089, allocations: 7.984 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.1091, allocations: 161.7 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.589e-05/0.1091, allocations: 26.58 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.451e-05/0.1092, allocations: 16.94 kB / 360.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.1092, allocations: 0 / 360.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1092, allocations: 42.44 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.1092, allocations: 0 / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001427/0.1094, allocations: 49.83 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.1094, allocations: 51.41 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.159e-05/0.1095, allocations: 113.8 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.1095, allocations: 25.7 kB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.1096, allocations: 80.14 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.1096, allocations: 15.75 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.1096, allocations: 13.72 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1098, allocations: 318.8 kB / 361.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.1098, allocations: 8 kB / 361.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.019e-05/0.1098, allocations: 25.66 kB / 361.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.468e-05/0.1099, allocations: 25.72 kB / 361.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1099, allocations: 3.984 kB / 361.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.243e-05/0.11, allocations: 57.58 kB / 361.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.11, allocations: 4 kB / 361.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.11, allocations: 3.984 kB / 361.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.11, allocations: 4.031 kB / 361.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.433e-05/0.1101, allocations: 8 kB / 361.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1101, allocations: 0 / 361.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.208e-05/0.1101, allocations: 4 kB / 361.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-06/0.1101, allocations: 0 / 361.5 MB, free: 9.633 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 8.115e-05/0.1102, allocations: 118.9 kB / 361.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/0.1102, allocations: 7.844 kB / 361.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.1103, allocations: 3.5 kB / 361.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.1103, allocations: 128 / 361.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1103, allocations: 11.98 kB / 361.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1103, allocations: 7.938 kB / 361.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.1104, allocations: 157.7 kB / 361.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1104, allocations: 0 / 361.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.513e-05/0.1105, allocations: 11.88 kB / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1105, allocations: 0 / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-06/0.1105, allocations: 4 kB / 361.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1105, allocations: 0 / 361.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1105, allocations: 0 / 361.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.1107, allocations: 77.12 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.1107, allocations: 88.94 kB / 362 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.1107, allocations: 4.031 kB / 362 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.773e-05/0.1107, allocations: 0 / 362 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.1108, allocations: 4 kB / 362 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1108, allocations: 0 / 362 MB, free: 9.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.808e-05/0.1108, allocations: 79.28 kB / 362.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1108, allocations: 0 / 362.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.1111, allocations: 59.98 kB / 362.1 MB, free: 8.906 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.0005098/0.1116, allocations: 0.6675 MB / 362.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.054e-05/0.1117, allocations: 31.95 kB / 362.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1117, allocations: 0 / 362.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.261e-05/0.1117, allocations: 4 kB / 362.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.1119, allocations: 8.125 kB / 362.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009363/0.1128, allocations: 1.186 MB / 364 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.1131, allocations: 0.6768 MB / 364.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.214e-05/0.1131, allocations: 4 kB / 364.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.127e-05/0.1132, allocations: 15.38 kB / 364.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of SimCode: time 1.813e-06/0.1132, allocations: 0 / 364.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/0.1256, allocations: 1.953 MB / 366.7 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.1258, allocations: 200.2 kB / 366.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.872, allocations: 0 / 366.9 MB, free: 4.078 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe ; mkfifo Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe >> ../files/Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Nonlinear_Examples_QuadratureLobatto3.fmu > Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches