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.0006674/0.0006674, allocations: 94.81 kB / 17.3 MB, free: 6.344 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.0008468/0.0008469, allocations: 179.5 kB / 18.21 MB, free: 5.531 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.443/1.443, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004758/0.0004759, allocations: 8 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.quadratureLobatto3): time 0.0007482/0.1104, allocations: 265.1 kB / 329.3 MB, free: 3.402 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.1126, allocations: 1.543 MB / 330.9 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.993e-05/0.1126, allocations: 4 kB / 330.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.1126, allocations: 0 / 330.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.1131, allocations: 123.8 kB / 331 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.647e-05/0.1132, allocations: 3.938 kB / 331 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.004e-05/0.1133, allocations: 19.92 kB / 331 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.046e-05/0.1133, allocations: 7.984 kB / 331 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.045e-05/0.1134, allocations: 0 / 331 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.773e-05/0.1134, allocations: 11.94 kB / 331 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.1135, allocations: 0 / 331 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003725/0.1138, allocations: 247.7 kB / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.567e-06/0.1139, allocations: 0 / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.1139, allocations: 33.64 kB / 331.3 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1142, allocations: 175.6 kB / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1142, allocations: 0 / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.1142, allocations: 0 / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1142, allocations: 3.938 kB / 331.5 MB, free: 1.219 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.0005125/0.1147, allocations: 355.7 kB / 331.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.1148, allocations: 12.02 kB / 331.8 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.545e-05/0.1148, allocations: 34.75 kB / 331.9 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.883e-05/0.1149, allocations: 4.938 kB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.1151, allocations: 160.4 kB / 332 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.1151, allocations: 8.375 kB / 332 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.1151, allocations: 384 / 332 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.927e-05/0.1152, allocations: 41.81 kB / 332.1 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1152, allocations: 0 / 332.1 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.1153, allocations: 7.984 kB / 332.1 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1153, allocations: 3.938 kB / 332.1 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.143e-05/0.1153, allocations: 11.98 kB / 332.1 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001916/0.1155, allocations: 161.6 kB / 332.3 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.216e-05/0.1156, allocations: 30.58 kB / 332.3 MB, free: 252 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.517e-05/0.1156, allocations: 12.86 kB / 332.3 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.1156, allocations: 0 / 332.3 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.1157, allocations: 42.58 kB / 332.3 MB, free: 184 kB / 270.1 MB Notification: Performance of pre-optimization done (n=3): time 7.51e-07/0.1157, allocations: 3.938 kB / 332.3 MB, free: 180 kB / 270.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001481/0.1158, allocations: 45.69 kB / 332.4 MB, free: 128 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.1159, allocations: 51.41 kB / 332.4 MB, free: 64 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.116, allocations: 101.9 kB / 332.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1161, allocations: 25.7 kB / 332.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.847e-05/0.1161, allocations: 80.14 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.1162, allocations: 11.89 kB / 332.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/0.1162, allocations: 13.72 kB / 332.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1164, allocations: 318.8 kB / 333 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.753e-05/0.1164, allocations: 4 kB / 333 MB, free: 15.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.524e-05/0.1164, allocations: 25.7 kB / 333 MB, free: 15.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.675e-05/0.1165, allocations: 25.66 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1165, allocations: 0 / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.432e-05/0.1166, allocations: 65.47 kB / 333.1 MB, free: 15.35 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1166, allocations: 12.03 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1166, allocations: 3.938 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1167, allocations: 0 / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.847e-05/0.1167, allocations: 8 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.1168, allocations: 3.984 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.075e-05/0.1168, allocations: 3.938 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.1168, allocations: 4 kB / 333.1 MB, free: 15.32 MB / 286.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.798e-05/0.1169, allocations: 113.8 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.1169, allocations: 7.938 kB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.1169, allocations: 7.5 kB / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1169, allocations: 0 / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.117, allocations: 0 / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.117, allocations: 0 / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.1171, allocations: 154.1 kB / 333.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1171, allocations: 4 kB / 333.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.796e-05/0.1172, allocations: 7.938 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1172, allocations: 7.922 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1172, allocations: 0 / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1172, allocations: 0 / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1172, allocations: 0 / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.1174, allocations: 89.02 kB / 333.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.1174, allocations: 81.05 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.1174, allocations: 128 / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.852e-05/0.1175, allocations: 4 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.1175, allocations: 8.016 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.1175, allocations: 0 / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.466e-05/0.1175, allocations: 83.28 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1176, allocations: 4.062 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.1178, allocations: 51.98 kB / 333.7 MB, free: 14.6 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.0005273/0.1183, allocations: 0.667 MB / 334.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 9.123e-05/0.1184, allocations: 16 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1185, allocations: 128 / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-05/0.1185, allocations: 19.92 kB / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.1186, allocations: 0 / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.1196, allocations: 1.187 MB / 335.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.12, allocations: 0.677 MB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.752e-05/0.1201, allocations: 7.984 kB / 336.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.1201, allocations: 15.44 kB / 336.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1201, allocations: 0 / 336.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01249/0.1326, allocations: 1.775 MB / 338.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.1328, allocations: 211.6 kB / 338.3 MB, free: 9.836 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.844, allocations: 8 kB / 338.3 MB, free: 9.828 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