Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009045/0.0009046, allocations: 176.9 kB / 16.71 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 225.7 MB / 243.2 MB, free: 8.258 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007621/0.0007621, allocations: 96.38 kB / 294.4 MB, free: 9.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002262/0.0002263, allocations: 7.938 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1888, allocations: 50.42 MB / 404.6 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003502/0.1923, allocations: 4.693 MB / 409.3 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.1946, allocations: 3.836 MB / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003996/0.195, allocations: 35.75 kB / 413.1 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.1953, allocations: 162.8 kB / 413.3 MB, free: 22.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.1956, allocations: 146.8 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.1961, allocations: 339.4 kB / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.1967, allocations: 0.9468 MB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005006/0.1972, allocations: 0.5435 MB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1973, allocations: 242.9 kB / 415.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1976, allocations: 278.4 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.031e-05/0.1976, allocations: 32 kB / 415.8 MB, free: 19.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1978, allocations: 83.92 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.123e-05/0.1979, allocations: 123.5 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.1981, allocations: 375.6 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.1987, allocations: 1.056 MB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1987, allocations: 4 kB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1987, allocations: 0 / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1987, allocations: 8 kB / 417.4 MB, free: 17.91 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.000905/0.1996, allocations: 0.8852 MB / 418.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.1997, allocations: 8.031 kB / 418.3 MB, free: 16.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.848e-05/0.1998, allocations: 91.91 kB / 418.4 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.2002, allocations: 0.4947 MB / 418.9 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.2003, allocations: 62.36 kB / 419 MB, free: 16.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.454e-05/0.2004, allocations: 92.28 kB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.2015, allocations: 0.7969 MB / 419.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.2015, allocations: 7.906 kB / 419.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.755e-05/0.2016, allocations: 36 kB / 419.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.2016, allocations: 20 kB / 419.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007293/0.2023, allocations: 0.4956 MB / 420.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.2045, allocations: 2.891 MB / 423.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.205, allocations: 228 kB / 423.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.2051, allocations: 116.7 kB / 423.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000174/0.2053, allocations: 247.3 kB / 423.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.344e-05/0.2053, allocations: 34.56 kB / 423.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.873e-06/0.2053, allocations: 0 / 423.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001751/0.2071, allocations: 1.26 MB / 425.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.126e-05/0.2071, allocations: 55.41 kB / 425.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.2073, allocations: 304.4 kB / 425.5 MB, free: 9.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.2074, allocations: 37.7 kB / 425.6 MB, free: 9.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.2075, allocations: 406.5 kB / 426 MB, free: 8.914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.2076, allocations: 130.1 kB / 426.1 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.2076, allocations: 8 kB / 426.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.2076, allocations: 350.7 kB / 426.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2078, allocations: 109.1 kB / 426.6 MB, free: 8.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.208, allocations: 246.7 kB / 426.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.2084, allocations: 400.8 kB / 427.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2084, allocations: 0 / 427.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005283/0.2089, allocations: 461.1 kB / 427.6 MB, free: 7.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.209, allocations: 8 kB / 427.6 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.209, allocations: 4.594 kB / 427.7 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.2091, allocations: 36.84 kB / 427.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.2094, allocations: 115.8 kB / 427.8 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002177/0.2097, allocations: 0.5523 MB / 428.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.2098, allocations: 19.98 kB / 428.4 MB, free: 6.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.2099, allocations: 24 kB / 428.4 MB, free: 6.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001897/0.2101, allocations: 225.7 kB / 428.6 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.2101, allocations: 39.47 kB / 428.7 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004693/0.2106, allocations: 315.5 kB / 429 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2106, allocations: 4 kB / 429 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2106, allocations: 4 kB / 429 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2106, allocations: 0 / 429 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009905/0.2116, allocations: 1.02 MB / 430 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2116, allocations: 0 / 430 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.2119, allocations: 79.89 kB / 430.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.691e-05/0.212, allocations: 44.75 kB / 430.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.2121, allocations: 8 kB / 430.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001816/0.2123, allocations: 0.5564 MB / 430.7 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2123, allocations: 0 / 430.7 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/0.2128, allocations: 0.5516 MB / 431.2 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-05/0.2129, allocations: 108.6 kB / 431.3 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.2129, allocations: 8 kB / 431.3 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.2131, allocations: 15.98 kB / 431.4 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.2131, allocations: 24 kB / 431.4 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.2132, allocations: 19.94 kB / 431.4 MB, free: 3.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001375/0.2133, allocations: 207.1 kB / 431.6 MB, free: 2.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2133, allocations: 0 / 431.6 MB, free: 2.934 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003816/0.2137, allocations: 120 kB / 431.7 MB, free: 2.816 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001351/0.2138, allocations: 128.3 kB / 431.8 MB, free: 2.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004771/0.2143, allocations: 311.8 kB / 432.2 MB, free: 2.379 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2143, allocations: 0 / 432.2 MB, free: 2.379 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.2145, allocations: 141.1 kB / 432.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.215, allocations: 65.53 kB / 432.4 MB, free: 2.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.2169, allocations: 2.087 MB / 434.4 MB, free: 52 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.2174, allocations: 0.9209 MB / 435.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.2176, allocations: 55.31 kB / 435.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.2176, allocations: 31.44 kB / 435.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2177, allocations: 0 / 435.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of Templates: time 0.007352/0.225, allocations: 3.542 MB / 439 MB, free: 11.49 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches