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.001941/0.001941, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002254/0.002255, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 64.06 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2546, allocations: 50.55 MB / 408.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.QuadratureLobatto3): time 0.001802/0.2565, allocations: 0.5154 MB / 409.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.2591, allocations: 1.55 MB / 410.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.321e-05/0.2592, allocations: 4 kB / 410.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.65e-05/0.2592, allocations: 3.938 kB / 410.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006214/0.2599, allocations: 171 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.531e-05/0.2599, allocations: 8 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.056e-05/0.26, allocations: 11.98 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.986e-05/0.26, allocations: 7.938 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.131e-05/0.2601, allocations: 15.92 kB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.652e-05/0.2601, allocations: 7.984 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.2602, allocations: 0 / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004109/0.2606, allocations: 243.7 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.861e-05/0.2606, allocations: 11.92 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.038e-05/0.2606, allocations: 3.938 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.2609, allocations: 170.6 kB / 411.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2609, allocations: 0 / 411.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.261, allocations: 4 kB / 411.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.261, allocations: 0 / 411.5 MB, free: 14.87 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.00048/0.2615, allocations: 371 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.2615, allocations: 8.031 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.773e-05/0.2615, allocations: 30.75 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.264e-05/0.2616, allocations: 0.9375 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.2618, allocations: 176.4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.2618, allocations: 4.312 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.2618, allocations: 4.375 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.495e-05/0.2619, allocations: 41.81 kB / 412.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2619, allocations: 0 / 412.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.2619, allocations: 4 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.262, allocations: 3.938 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.156e-05/0.262, allocations: 4 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001833/0.2622, allocations: 161.6 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.801e-05/0.2623, allocations: 34.55 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.355e-05/0.2623, allocations: 8.859 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.2623, allocations: 4 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.2623, allocations: 42.5 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.2624, allocations: 0 / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001369/0.2625, allocations: 45.78 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.2625, allocations: 51.41 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2626, allocations: 110 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2627, allocations: 29.7 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.216e-05/0.2627, allocations: 84.14 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.2628, allocations: 11.91 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.2628, allocations: 17.7 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2629, allocations: 314.8 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.646e-05/0.263, allocations: 4 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.49e-05/0.263, allocations: 29.7 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.633e-05/0.2631, allocations: 25.72 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2631, allocations: 0 / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.326e-05/0.2632, allocations: 65.56 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2632, allocations: 4 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2632, allocations: 0 / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.2632, allocations: 0 / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.615e-05/0.2633, allocations: 8 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.2633, allocations: 0 / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.321e-05/0.2634, allocations: 11.88 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.2634, allocations: 0 / 413.2 MB, free: 12.95 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 8.682e-05/0.2635, allocations: 125.8 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.413e-05/0.2635, allocations: 7.891 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.454e-05/0.2635, allocations: 3.5 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2635, allocations: 0 / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.2635, allocations: 0 / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2635, allocations: 0 / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.2637, allocations: 157.7 kB / 413.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2637, allocations: 0 / 413.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.998e-05/0.2637, allocations: 11.88 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2637, allocations: 0 / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-06/0.2638, allocations: 8 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2638, allocations: 0 / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2638, allocations: 0 / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.2639, allocations: 77.11 kB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.264, allocations: 84.98 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.264, allocations: 0 / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.66e-05/0.264, allocations: 4.031 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.421e-05/0.264, allocations: 0 / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.2641, allocations: 4.062 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.369e-05/0.2641, allocations: 87.27 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2641, allocations: 0 / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.2644, allocations: 55.86 kB / 413.8 MB, free: 12.23 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.000593/0.265, allocations: 0.6669 MB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.152e-05/0.2651, allocations: 24.47 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2651, allocations: 4 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.359e-05/0.2651, allocations: 4 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.2653, allocations: 3.984 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.2664, allocations: 1.194 MB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.2667, allocations: 0.6807 MB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.069e-05/0.2668, allocations: 8.109 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.988e-05/0.2669, allocations: 11.44 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2669, allocations: 0 / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02604/0.2929, allocations: 2.061 MB / 418.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.27, allocations: 15.97 kB / 418.5 MB, free: 7.504 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 & /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.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