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.001073/0.001073, allocations: 104 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 213.7 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 64.08 kB / 306.4 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.1009, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.00177/0.1027, allocations: 0.5715 MB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1048, allocations: 1.6 MB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.271e-05/0.1048, allocations: 0 / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.1049, allocations: 0 / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005744/0.1055, allocations: 131.7 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.369e-05/0.1055, allocations: 3.984 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.435e-05/0.1056, allocations: 15.94 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.736e-05/0.1056, allocations: 3.938 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.483e-05/0.1056, allocations: 7.938 kB / 359.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.729e-05/0.1057, allocations: 11.92 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.1057, allocations: 0 / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.1061, allocations: 247.7 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.386e-05/0.1061, allocations: 7.984 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.336e-05/0.1062, allocations: 7.938 kB / 359.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.1065, allocations: 171.8 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1065, allocations: 0 / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1065, allocations: 0 / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1065, allocations: 0 / 359.7 MB, free: 11.39 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.0004025/0.1069, allocations: 363.7 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.107, allocations: 12.03 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.107, allocations: 38.73 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.1071, allocations: 0.9375 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.1072, allocations: 168.3 kB / 360.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.1072, allocations: 4.375 kB / 360.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.1072, allocations: 4.375 kB / 360.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.73e-05/0.1073, allocations: 45.75 kB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.1073, allocations: 0 / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.1073, allocations: 0 / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1073, allocations: 0 / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.076e-05/0.1074, allocations: 4 kB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001645/0.1076, allocations: 153.7 kB / 360.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.337e-05/0.1076, allocations: 42.59 kB / 360.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.239e-05/0.1077, allocations: 12.86 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.1077, allocations: 3.938 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.1077, allocations: 38.5 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1077, allocations: 0 / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001346/0.1078, allocations: 45.78 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.1079, allocations: 55.39 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.399e-05/0.108, allocations: 97.86 kB / 360.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.108, allocations: 29.7 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.634e-05/0.108, allocations: 84.14 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.108, allocations: 15.8 kB / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.1081, allocations: 13.72 kB / 360.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.1082, allocations: 314.8 kB / 361.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.818e-05/0.1082, allocations: 7.938 kB / 361.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.641e-05/0.1082, allocations: 25.7 kB / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.1083, allocations: 25.72 kB / 361.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1083, allocations: 0 / 361.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.13e-05/0.1084, allocations: 65.56 kB / 361.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1084, allocations: 7.938 kB / 361.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1084, allocations: 3.938 kB / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1084, allocations: 0 / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.921e-05/0.1085, allocations: 8 kB / 361.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1085, allocations: 0 / 361.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.1085, allocations: 8.031 kB / 361.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.1085, allocations: 3.984 kB / 361.3 MB, free: 9.484 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 6.002e-05/0.1086, allocations: 118.8 kB / 361.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.242e-05/0.1086, allocations: 11.84 kB / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.1086, allocations: 3.5 kB / 361.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1086, allocations: 0 / 361.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1087, allocations: 0 / 361.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1087, allocations: 3.938 kB / 361.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.041e-05/0.1088, allocations: 157.7 kB / 361.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1088, allocations: 0 / 361.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.907e-05/0.1088, allocations: 16.06 kB / 361.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1088, allocations: 0 / 361.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1088, allocations: 3.984 kB / 361.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1089, allocations: 7.984 kB / 361.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1089, allocations: 0 / 361.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.109, allocations: 73.55 kB / 361.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.109, allocations: 84.95 kB / 361.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.109, allocations: 0 / 361.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.748e-05/0.109, allocations: 4.062 kB / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.55e-05/0.1091, allocations: 12.02 kB / 361.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1091, allocations: 48 / 361.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.583e-05/0.1091, allocations: 83.27 kB / 361.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1091, allocations: 3.938 kB / 361.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1094, allocations: 55.98 kB / 362 MB, free: 8.754 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.000474/0.1099, allocations: 0.6671 MB / 362.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.07e-05/0.11, allocations: 19.94 kB / 362.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.11, allocations: 0 / 362.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.598e-05/0.11, allocations: 11.98 kB / 362.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1101, allocations: 3.938 kB / 362.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008896/0.111, allocations: 1.184 MB / 363.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.1113, allocations: 0.677 MB / 364.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.728e-05/0.1114, allocations: 7.984 kB / 364.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.1114, allocations: 11.38 kB / 364.5 MB, free: 6.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1114, allocations: 0 / 364.5 MB, free: 6.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.1229, allocations: 1.903 MB / 366.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/0.1232, allocations: 214 kB / 366.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.784, allocations: 3.094 kB / 366.7 MB, free: 3.945 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