Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.458/2.458, allocations: 235.1 MB / 243 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.861e-05, allocations: 3.938 kB / 303.3 MB, free: 3.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3617, allocations: 54.86 MB / 358.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.5122, allocations: 80.64 MB / 438.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5125, allocations: 67.91 kB / 438.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01011/0.5227, allocations: 2.32 MB / 441.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5227, allocations: 0 / 441.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.5228, allocations: 0 / 441.2 MB, free: 12.49 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000652/0.5234, allocations: 410.1 kB / 441.6 MB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.5235, allocations: 12.02 kB / 441.6 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.5236, allocations: 15.81 kB / 441.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.5238, allocations: 202.8 kB / 441.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.5239, allocations: 4 kB / 441.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.625e-05/0.5239, allocations: 12 kB / 441.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000229/0.5242, allocations: 59.98 kB / 441.9 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.5245, allocations: 105.6 kB / 442 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.5245, allocations: 3.938 kB / 442 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.5245, allocations: 3.953 kB / 442 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.5245, allocations: 4 kB / 442 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00091/0.5255, allocations: 420.8 kB / 442.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.5257, allocations: 106.5 kB / 442.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.5259, allocations: 48.8 kB / 442.5 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.5259, allocations: 11.98 kB / 442.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.938e-05/0.526, allocations: 30.56 kB / 442.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 3.837e-06/0.526, allocations: 0 / 442.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001794/0.5278, allocations: 0.709 MB / 443.3 MB, free: 10.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.5279, allocations: 55.41 kB / 443.3 MB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.528, allocations: 101 kB / 443.4 MB, free: 9.949 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.5281, allocations: 25.7 kB / 443.5 MB, free: 9.918 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.5282, allocations: 178.9 kB / 443.6 MB, free: 9.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.5283, allocations: 70.94 kB / 443.7 MB, free: 9.672 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-06/0.5283, allocations: 0 / 443.7 MB, free: 9.672 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5284, allocations: 318.8 kB / 444 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.5285, allocations: 36.38 kB / 444 MB, free: 9.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.5287, allocations: 69.86 kB / 444.1 MB, free: 9.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.5289, allocations: 51.81 kB / 444.2 MB, free: 9.184 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.5289, allocations: 0 / 444.2 MB, free: 9.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005191/0.5294, allocations: 170.3 kB / 444.3 MB, free: 9.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.5294, allocations: 6.812 kB / 444.3 MB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.5295, allocations: 4.031 kB / 444.3 MB, free: 9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002532/0.5297, allocations: 36.84 kB / 444.4 MB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.5301, allocations: 43.86 kB / 444.4 MB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.5319, allocations: 1.494 MB / 445.9 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.5321, allocations: 4.031 kB / 445.9 MB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.5322, allocations: 4 kB / 445.9 MB, free: 7.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.5323, allocations: 106.4 kB / 446 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000469/0.5328, allocations: 166.2 kB / 446.2 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.5328, allocations: 11.91 kB / 446.2 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.113e-05/0.5329, allocations: 16.69 kB / 446.2 MB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.5329, allocations: 7.984 kB / 446.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5329, allocations: 0 / 446.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.533, allocations: 0 / 446.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.534, allocations: 0.4964 MB / 446.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.5341, allocations: 0 / 446.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.5344, allocations: 39.92 kB / 446.8 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.5346, allocations: 32.88 kB / 446.8 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.5346, allocations: 3.938 kB / 446.8 MB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.5361, allocations: 1.307 MB / 448.1 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.5362, allocations: 0 / 448.1 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006835/0.5369, allocations: 327.1 kB / 448.4 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.537, allocations: 85.05 kB / 448.5 MB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.537, allocations: 0 / 448.5 MB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.5372, allocations: 4 kB / 448.5 MB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.078e-05/0.5373, allocations: 23.91 kB / 448.5 MB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.5373, allocations: 4 kB / 448.5 MB, free: 4.449 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.589e-05/0.5374, allocations: 99.3 kB / 448.6 MB, free: 4.352 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5374, allocations: 0 / 448.6 MB, free: 4.352 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004854/0.5379, allocations: 32 kB / 448.7 MB, free: 4.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.5389, allocations: 0.9239 MB / 449.6 MB, free: 3.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.5396, allocations: 229.5 kB / 449.8 MB, free: 3.125 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5396, allocations: 0 / 449.8 MB, free: 3.125 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.5399, allocations: 173.7 kB / 450 MB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.5403, allocations: 16.17 kB / 450 MB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.5415, allocations: 394.3 kB / 450.4 MB, free: 2.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.5419, allocations: 0.7282 MB / 451.1 MB, free: 1.746 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.5421, allocations: 43.42 kB / 451.2 MB, free: 1.703 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5421, allocations: 0 / 451.2 MB, free: 1.703 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.733/3.275, allocations: 2.942 MB / 454.1 MB, free: 14.76 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat