Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009592/0.0009591, allocations: 178.5 kB / 17.36 MB, free: 4.324 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.6 MB / 223.7 MB, free: 8.957 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007115/0.0007116, allocations: 90.42 kB / 272.1 MB, free: 8.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004083, allocations: 4 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2558, allocations: 47.58 MB / 376.6 MB, free: 45.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004276/0.2601, allocations: 4.671 MB / 381.3 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004012/0.2642, allocations: 3.887 MB / 385.2 MB, free: 38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.2651, allocations: 36.59 kB / 385.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003596/0.2655, allocations: 165.4 kB / 385.4 MB, free: 37.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003758/0.2659, allocations: 147.9 kB / 385.5 MB, free: 37.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008139/0.2667, allocations: 329.2 kB / 385.8 MB, free: 37.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.2677, allocations: 0.9468 MB / 386.8 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008074/0.2686, allocations: 0.5358 MB / 387.3 MB, free: 36.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.2689, allocations: 245.3 kB / 387.5 MB, free: 36.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003519/0.2693, allocations: 273.6 kB / 387.8 MB, free: 36.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.687e-05/0.2694, allocations: 31.59 kB / 387.8 MB, free: 36.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002693/0.2697, allocations: 88.08 kB / 387.9 MB, free: 36.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.2698, allocations: 123.9 kB / 388 MB, free: 36.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.2701, allocations: 373.8 kB / 388.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000817/0.271, allocations: 1.064 MB / 389.5 MB, free: 35.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.271, allocations: 1.25 kB / 389.5 MB, free: 35.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.271, allocations: 0 / 389.5 MB, free: 35.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.271, allocations: 0 / 389.5 MB, free: 35.03 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.001085/0.2721, allocations: 0.8881 MB / 390.4 MB, free: 34.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2722, allocations: 8.031 kB / 390.4 MB, free: 34.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.2723, allocations: 87.91 kB / 390.5 MB, free: 34.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.2728, allocations: 0.4909 MB / 391 MB, free: 33.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.2728, allocations: 66.38 kB / 391 MB, free: 33.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.998e-05/0.2729, allocations: 92.27 kB / 391.1 MB, free: 33.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2741, allocations: 0.8008 MB / 391.9 MB, free: 32.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/0.2741, allocations: 4 kB / 391.9 MB, free: 32.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.254e-05/0.2742, allocations: 36 kB / 391.9 MB, free: 32.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.2742, allocations: 20 kB / 392 MB, free: 32.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007673/0.275, allocations: 0.4918 MB / 392.5 MB, free: 32.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002449/0.2774, allocations: 2.899 MB / 395.4 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.2779, allocations: 228.3 kB / 395.6 MB, free: 28.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.2781, allocations: 104.8 kB / 395.7 MB, free: 28.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002112/0.2783, allocations: 251.3 kB / 395.9 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.2783, allocations: 38.56 kB / 396 MB, free: 28.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.883e-06/0.2784, allocations: 0 / 396 MB, free: 28.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001921/0.2803, allocations: 1.274 MB / 397.2 MB, free: 26.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.2803, allocations: 59.34 kB / 397.3 MB, free: 26.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.2805, allocations: 300.5 kB / 397.6 MB, free: 26.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.2806, allocations: 29.7 kB / 397.6 MB, free: 26.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.2807, allocations: 402.6 kB / 398 MB, free: 26.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.2808, allocations: 134.1 kB / 398.1 MB, free: 25.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.36e-05/0.2808, allocations: 8 kB / 398.2 MB, free: 25.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.2809, allocations: 354.7 kB / 398.5 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.2811, allocations: 109.1 kB / 398.6 MB, free: 25.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.2813, allocations: 250.5 kB / 398.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.2817, allocations: 392.6 kB / 399.2 MB, free: 24.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2817, allocations: 0 / 399.2 MB, free: 24.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005744/0.2823, allocations: 464.9 kB / 399.7 MB, free: 24.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.2823, allocations: 8 kB / 399.7 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2823, allocations: 4 kB / 399.7 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.2825, allocations: 37.38 kB / 399.7 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.2828, allocations: 115.8 kB / 399.8 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002592/0.2831, allocations: 0.56 MB / 400.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.2832, allocations: 19.98 kB / 400.4 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.2833, allocations: 24 kB / 400.5 MB, free: 23.51 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.0002365/0.2835, allocations: 213.7 kB / 400.7 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.2836, allocations: 43.56 kB / 400.7 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004825/0.2841, allocations: 330 kB / 401 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2841, allocations: 4 kB / 401 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2841, allocations: 0 / 401 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2841, allocations: 0 / 401 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.2852, allocations: 1.022 MB / 402.1 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2852, allocations: 4.156 kB / 402.1 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.2855, allocations: 83.89 kB / 402.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.2856, allocations: 32.88 kB / 402.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.2857, allocations: 8 kB / 402.2 MB, free: 21.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002083/0.2859, allocations: 0.5562 MB / 402.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2859, allocations: 0 / 402.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005566/0.2864, allocations: 0.5563 MB / 403.3 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-05/0.2865, allocations: 104.7 kB / 403.4 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.2865, allocations: 8 kB / 403.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.2867, allocations: 12.17 kB / 403.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.2868, allocations: 28 kB / 403.4 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.2868, allocations: 19.88 kB / 403.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001447/0.2869, allocations: 207.1 kB / 403.7 MB, free: 20.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2869, allocations: 4 kB / 403.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004412/0.2874, allocations: 116 kB / 403.8 MB, free: 20 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.0001512/0.2875, allocations: 124 kB / 403.9 MB, free: 19.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.288, allocations: 308.4 kB / 404.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2881, allocations: 0 / 404.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.2883, allocations: 137.1 kB / 404.3 MB, free: 19.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.2888, allocations: 78.14 kB / 404.4 MB, free: 19.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.2908, allocations: 2.081 MB / 406.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.2911, allocations: 0.9209 MB / 407.4 MB, free: 16.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.2913, allocations: 51.31 kB / 407.5 MB, free: 16.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.417e-05/0.2913, allocations: 31.44 kB / 407.5 MB, free: 16.21 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.2914, allocations: 0 / 407.5 MB, free: 16.21 MB / 298.7 MB Notification: Performance of Templates: time 0.00686/0.2982, allocations: 3.544 MB / 411 MB, free: 12.68 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches