Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Math_Nonlinear_Examples_quadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,fileNamePrefix="Modelica_3_2_3_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.001352/0.001352, allocations: 108.5 kB / 17.16 MB, free: 6.305 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.001541/0.00154, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 52.16 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07886/0.0799, allocations: 46.62 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.quadratureLobatto3): time 0.001685/0.08163, allocations: 0.6016 MB / 327.3 MB, free: 4.203 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.08333, allocations: 1.558 MB / 328.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.602e-05/0.08336, allocations: 0 / 328.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.08339, allocations: 0 / 328.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004454/0.08384, allocations: 135.7 kB / 329 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.844e-05/0.08387, allocations: 4 kB / 329 MB, free: 2.492 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 3.738e-05/0.08391, allocations: 11.94 kB / 329 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.919e-05/0.08396, allocations: 4 kB / 329 MB, free: 2.477 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.606e-05/0.084, allocations: 11.92 kB / 329 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.445e-05/0.08405, allocations: 7.922 kB / 329 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.08406, allocations: 4 kB / 329 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.08439, allocations: 243.7 kB / 329.3 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.08441, allocations: 7.984 kB / 329.3 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.08444, allocations: 3.938 kB / 329.3 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.08467, allocations: 163.8 kB / 329.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.08469, allocations: 3.938 kB / 329.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.08469, allocations: 0 / 329.4 MB, free: 2.039 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.0847, allocations: 4 kB / 329.4 MB, free: 2.035 MB / 270.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.0003674/0.08507, allocations: 363.7 kB / 329.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.08512, allocations: 12.03 kB / 329.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.08515, allocations: 30.75 kB / 329.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.193e-05/0.08518, allocations: 4.938 kB / 329.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.0853, allocations: 164.4 kB / 330 MB, free: 1.379 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.08531, allocations: 384 / 330 MB, free: 1.379 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.08534, allocations: 12.28 kB / 330 MB, free: 1.367 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.93e-05/0.08541, allocations: 45.73 kB / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.08543, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.692e-06/0.08544, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.08545, allocations: 0 / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.175e-05/0.08549, allocations: 12 kB / 330.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.08563, allocations: 157.7 kB / 330.2 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.147e-05/0.0857, allocations: 38.55 kB / 330.3 MB, free: 1.055 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/0.08572, allocations: 4.859 kB / 330.3 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.08574, allocations: 4 kB / 330.3 MB, free: 1.043 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.08576, allocations: 34.5 kB / 330.3 MB, free: 1 MB / 270.1 MB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.08577, allocations: 4 kB / 330.3 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001184/0.08589, allocations: 45.78 kB / 330.4 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.08593, allocations: 55.41 kB / 330.4 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.014e-05/0.08601, allocations: 101.8 kB / 330.5 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.08603, allocations: 25.7 kB / 330.5 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.08607, allocations: 84.14 kB / 330.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/0.0861, allocations: 11.75 kB / 330.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.08613, allocations: 21.7 kB / 330.6 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.08624, allocations: 318.8 kB / 331 MB, free: 300 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.964e-05/0.08627, allocations: 8 kB / 331 MB, free: 292 kB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.529e-05/0.0863, allocations: 21.83 kB / 331 MB, free: 264 kB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.255e-05/0.08634, allocations: 25.72 kB / 331 MB, free: 232 kB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.08635, allocations: 4 kB / 331 MB, free: 228 kB / 270.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.11e-05/0.08644, allocations: 65.5 kB / 331.1 MB, free: 156 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.08646, allocations: 4 kB / 331.1 MB, free: 152 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.08646, allocations: 4.031 kB / 331.1 MB, free: 148 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.08648, allocations: 4 kB / 331.1 MB, free: 144 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.751e-05/0.08655, allocations: 4 kB / 331.1 MB, free: 140 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.08656, allocations: 4 kB / 331.1 MB, free: 136 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/0.08659, allocations: 3.938 kB / 331.1 MB, free: 132 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-06/0.0866, allocations: 432 / 331.1 MB, free: 132 kB / 270.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 5.677e-05/0.08666, allocations: 113.8 kB / 331.2 MB, free: 8 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.08668, allocations: 7.922 kB / 331.2 MB, free: 0 / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.08671, allocations: 7.5 kB / 331.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.08672, allocations: 7.984 kB / 331.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.08673, allocations: 7.938 kB / 331.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.08674, allocations: 0 / 331.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.396e-05/0.08684, allocations: 161.6 kB / 331.4 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.08684, allocations: 0 / 331.4 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.551e-05/0.0869, allocations: 7.938 kB / 331.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.08691, allocations: 4 kB / 331.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.08693, allocations: 0 / 331.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.08693, allocations: 0 / 331.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.08694, allocations: 0 / 331.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001205/0.08706, allocations: 81.11 kB / 331.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.08711, allocations: 81.05 kB / 331.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.08712, allocations: 4.031 kB / 331.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.716e-05/0.08715, allocations: 0 / 331.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.08716, allocations: 3.938 kB / 331.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.08717, allocations: 0 / 331.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.563e-05/0.08722, allocations: 87.27 kB / 331.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08723, allocations: 0 / 331.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.08746, allocations: 52.06 kB / 331.7 MB, free: 15.41 MB / 286.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.0004677/0.08794, allocations: 0.667 MB / 332.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.289e-05/0.08802, allocations: 23.92 kB / 332.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.08803, allocations: 0 / 332.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.44e-05/0.08805, allocations: 11.94 kB / 332.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.08819, allocations: 8.125 kB / 332.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000839/0.08904, allocations: 1.173 MB / 333.6 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.08928, allocations: 0.6809 MB / 334.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.967e-05/0.08938, allocations: 96 / 334.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/0.08941, allocations: 19.38 kB / 334.3 MB, free: 12.69 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.08942, allocations: 4 kB / 334.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.1015, allocations: 1.843 MB / 336.1 MB, free: 10.82 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002364/0.1018, allocations: 212.2 kB / 336.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.741, allocations: 0 / 336.4 MB, free: 10.55 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Nonlinear_Examples_quadratureLobatto3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Nonlinear_Examples_quadratureLobatto3.fmu > Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Nonlinear/Examples/quadratureLobatto3/quadratureLobatto3.csv","../files/Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches