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.001375/0.001375, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 63.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2409, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.001575/0.2425, allocations: 0.5268 MB / 409.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.2446, allocations: 1.543 MB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.33e-05/0.2446, allocations: 3.938 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.2446, allocations: 0 / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005778/0.2452, allocations: 171 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.358e-05/0.2453, allocations: 7.984 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.027e-05/0.2453, allocations: 15.92 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.2454, allocations: 11.98 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.673e-05/0.2454, allocations: 7.938 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.642e-05/0.2455, allocations: 4 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.2455, allocations: 4 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003799/0.2459, allocations: 247.7 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-06/0.2459, allocations: 0 / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.2459, allocations: 11.92 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.2462, allocations: 174.6 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2462, allocations: 0 / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2462, allocations: 0 / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.2462, allocations: 4 kB / 411.5 MB, free: 14.82 MB / 334.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.0004523/0.2467, allocations: 367 kB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2467, allocations: 19.91 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.343e-05/0.2468, allocations: 30.75 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.2468, allocations: 0.9375 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2469, allocations: 164.4 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.2469, allocations: 384 / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.247, allocations: 4.375 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.95e-05/0.2471, allocations: 41.81 kB / 412.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2471, allocations: 4 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.2471, allocations: 0 / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2471, allocations: 0 / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.634e-05/0.2472, allocations: 15.92 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.2473, allocations: 161.6 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.495e-05/0.2474, allocations: 30.58 kB / 412.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.507e-05/0.2474, allocations: 12.94 kB / 412.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-06/0.2475, allocations: 4 kB / 412.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.2475, allocations: 34.5 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2475, allocations: 0 / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001377/0.2476, allocations: 53.77 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.2477, allocations: 55.41 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.165e-05/0.2478, allocations: 97.89 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.2478, allocations: 25.7 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.2479, allocations: 92.12 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.2479, allocations: 11.91 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.2479, allocations: 17.72 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2481, allocations: 310.8 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.14e-05/0.2481, allocations: 11.98 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.854e-05/0.2481, allocations: 21.72 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.524e-05/0.2482, allocations: 25.66 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-06/0.2482, allocations: 4.125 kB / 413.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.619e-05/0.2483, allocations: 61.62 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.2483, allocations: 8 kB / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.2483, allocations: 0 / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.2483, allocations: 0 / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.489e-05/0.2484, allocations: 15.92 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2484, allocations: 0 / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.229e-05/0.2485, allocations: 3.938 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.2485, allocations: 4 kB / 413.1 MB, free: 12.89 MB / 334.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.288e-05/0.2485, allocations: 109.9 kB / 413.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.471e-05/0.2486, allocations: 11.89 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.2486, allocations: 7.5 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.2486, allocations: 0 / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2486, allocations: 0 / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2486, allocations: 3.938 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.2487, allocations: 157.7 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2488, allocations: 0 / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-05/0.2488, allocations: 11.92 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2488, allocations: 3.938 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.2488, allocations: 4 kB / 413.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2489, allocations: 0 / 413.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2489, allocations: 4 kB / 413.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.249, allocations: 77.06 kB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.2491, allocations: 81.05 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.2491, allocations: 3.984 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.777e-05/0.2491, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.2491, allocations: 4.031 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.2491, allocations: 4.062 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.615e-05/0.2492, allocations: 83.28 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2492, allocations: 0 / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.2495, allocations: 51.86 kB / 413.7 MB, free: 12.18 MB / 334.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.0005832/0.25, allocations: 0.679 MB / 414.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.41e-05/0.2501, allocations: 24.08 kB / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2501, allocations: 0 / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.175e-05/0.2502, allocations: 12 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.2503, allocations: 6.75 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.2514, allocations: 1.186 MB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2517, allocations: 0.6768 MB / 416.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.376e-05/0.2518, allocations: 8.094 kB / 416.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.989e-05/0.2519, allocations: 15.38 kB / 416.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2519, allocations: 0 / 416.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.2755, allocations: 2.053 MB / 418.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/7.979, allocations: 15 kB / 418.4 MB, free: 7.453 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Math.Nonlinear.Examples.QuadratureLobatto3_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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