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: translateModel(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|q|qd",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") translateModel(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|q|qd",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 112.8 kB / 17.28 MB, free: 6.043 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.001107/0.001107, allocations: 189.3 kB / 18.2 MB, free: 5.152 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.489/1.489, allocations: 205.1 MB / 224 MB, free: 12.43 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.00118/0.00118, allocations: 47.92 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1163, allocations: 46.62 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.quadratureLobatto3): time 0.001979/0.1183, allocations: 0.6017 MB / 327.4 MB, free: 4.191 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1204, allocations: 1.503 MB / 328.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.195e-05/0.1204, allocations: 0 / 328.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.034e-05/0.1205, allocations: 3.938 kB / 328.9 MB, free: 2.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006566/0.1211, allocations: 147.7 kB / 329 MB, free: 2.523 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.336e-05/0.1212, allocations: 7.984 kB / 329 MB, free: 2.516 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.656e-05/0.1212, allocations: 19.88 kB / 329.1 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.825e-05/0.1213, allocations: 0 / 329.1 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.377e-05/0.1213, allocations: 15.97 kB / 329.1 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.673e-05/0.1214, allocations: 7.938 kB / 329.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.1214, allocations: 0 / 329.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003373/0.1218, allocations: 239.7 kB / 329.3 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.1218, allocations: 8 kB / 329.3 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.137e-05/0.1218, allocations: 7.938 kB / 329.3 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.1221, allocations: 159.8 kB / 329.5 MB, free: 2.066 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1221, allocations: 7.938 kB / 329.5 MB, free: 2.059 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.1221, allocations: 0 / 329.5 MB, free: 2.059 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1221, allocations: 3.938 kB / 329.5 MB, free: 2.055 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.0004809/0.1226, allocations: 363.7 kB / 329.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1226, allocations: 8.031 kB / 329.9 MB, free: 1.645 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.1227, allocations: 0.9375 kB / 329.9 MB, free: 1.645 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.1229, allocations: 172.4 kB / 330 MB, free: 1.438 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1229, allocations: 8.312 kB / 330 MB, free: 1.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.123, allocations: 4.375 kB / 330 MB, free: 1.426 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.376e-05/0.1231, allocations: 42 kB / 330.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1231, allocations: 3.906 kB / 330.1 MB, free: 1.375 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.1231, allocations: 0 / 330.1 MB, free: 1.375 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1231, allocations: 0 / 330.1 MB, free: 1.375 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.752e-05/0.1231, allocations: 4 kB / 330.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001841/0.1233, allocations: 157.7 kB / 330.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.194e-05/0.1234, allocations: 42.55 kB / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.682e-05/0.1235, allocations: 12.86 kB / 330.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-06/0.1235, allocations: 0 / 330.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.1235, allocations: 38.5 kB / 330.3 MB, free: 1.055 MB / 270.1 MB Notification: Performance of pre-optimization done (n=3): time 2.344e-06/0.1235, allocations: 3.984 kB / 330.3 MB, free: 1.051 MB / 270.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001617/0.1237, allocations: 49.72 kB / 330.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.1237, allocations: 51.41 kB / 330.4 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1238, allocations: 105.8 kB / 330.5 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.1239, allocations: 25.7 kB / 330.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.168e-05/0.1239, allocations: 88.12 kB / 330.6 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.1239, allocations: 15.75 kB / 330.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.124, allocations: 17.7 kB / 330.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1241, allocations: 314.8 kB / 331 MB, free: 352 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.776e-05/0.1242, allocations: 4 kB / 331 MB, free: 348 kB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.713e-05/0.1242, allocations: 25.72 kB / 331 MB, free: 316 kB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.786e-05/0.1243, allocations: 29.64 kB / 331 MB, free: 280 kB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1243, allocations: 0 / 331 MB, free: 280 kB / 270.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.676e-05/0.1244, allocations: 57.69 kB / 331.1 MB, free: 216 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1244, allocations: 11.88 kB / 331.1 MB, free: 204 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.1244, allocations: 0 / 331.1 MB, free: 204 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1244, allocations: 0 / 331.1 MB, free: 204 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.992e-05/0.1245, allocations: 11.94 kB / 331.1 MB, free: 192 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1245, allocations: 0 / 331.1 MB, free: 192 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.197e-05/0.1246, allocations: 8.031 kB / 331.1 MB, free: 184 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.1246, allocations: 0 / 331.1 MB, free: 184 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 9.151e-05/0.1247, allocations: 109.8 kB / 331.2 MB, free: 64 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.1247, allocations: 7.938 kB / 331.2 MB, free: 56 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.1247, allocations: 7.484 kB / 331.3 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.1247, allocations: 0 / 331.3 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1247, allocations: 0 / 331.3 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1247, allocations: 0 / 331.3 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.1249, allocations: 161.6 kB / 331.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1249, allocations: 4 kB / 331.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.125, allocations: 4 kB / 331.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.125, allocations: 7.875 kB / 331.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.125, allocations: 0 / 331.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.125, allocations: 4 kB / 331.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.125, allocations: 0 / 331.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.1252, allocations: 81.05 kB / 331.5 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.824e-05/0.1252, allocations: 81.05 kB / 331.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.1252, allocations: 8.188 kB / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.773e-05/0.1253, allocations: 0 / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.565e-05/0.1253, allocations: 4.031 kB / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.1253, allocations: 480 / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.237e-05/0.1253, allocations: 87.27 kB / 331.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1253, allocations: 0 / 331.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.1256, allocations: 48 kB / 331.7 MB, free: 15.47 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.0002711/0.1259, allocations: 151.3 kB / 331.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 9.989e-05/0.126, allocations: 31.92 kB / 331.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.126, allocations: 0 / 331.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.692e-05/0.126, allocations: 7.984 kB / 331.9 MB, free: 15.28 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.1262, allocations: 3.938 kB / 331.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002773/0.1265, allocations: 134.3 kB / 332.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.1267, allocations: 0.6768 MB / 332.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.1268, allocations: 8.062 kB / 332.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.118e-05/0.1269, allocations: 11.44 kB / 332.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1269, allocations: 0 / 332.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Templates: time 0.003765/0.1306, allocations: 1.074 MB / 333.8 MB, free: 13.32 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.makefile (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 & ./Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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