Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.111/2.111, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003518, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1003, allocations: 44.5 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4946/0.595, allocations: 76.74 MB / 385.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.5954, allocations: 78.5 kB / 385.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04321/0.6386, allocations: 11.86 MB / 397.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.624e-06/0.6387, allocations: 0 / 397.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.493e-05/0.6387, allocations: 19.22 kB / 397.2 MB, free: 13.43 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.001945/0.6407, allocations: 0.9192 MB / 398.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.6408, allocations: 7.75 kB / 398.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002037/0.641, allocations: 134.2 kB / 398.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.6412, allocations: 96.78 kB / 398.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008953/0.6421, allocations: 0.5018 MB / 398.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.483e-05/0.6421, allocations: 62.06 kB / 398.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.6423, allocations: 98.17 kB / 399 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.6443, allocations: 0.8173 MB / 399.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.113e-05/0.6444, allocations: 18.03 kB / 399.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-05/0.6445, allocations: 32.16 kB / 399.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.6445, allocations: 19.56 kB / 399.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.6461, allocations: 0.5247 MB / 400.4 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00446/0.6506, allocations: 3.074 MB / 403.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/0.6515, allocations: 294 kB / 403.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001993/0.6518, allocations: 246.9 kB / 404 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.6518, allocations: 36.81 kB / 404.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.037e-06/0.6518, allocations: 4 kB / 404.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.003659/0.6555, allocations: 1.59 MB / 405.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.6556, allocations: 106.7 kB / 405.8 MB, free: 8.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.656, allocations: 292.2 kB / 406.1 MB, free: 8.586 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.656, allocations: 33.2 kB / 406.1 MB, free: 8.555 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.6562, allocations: 456.8 kB / 406.5 MB, free: 8.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.6564, allocations: 136.8 kB / 406.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.6564, allocations: 10.75 kB / 406.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.313e-05/0.6565, allocations: 336.7 kB / 407 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.6569, allocations: 125.9 kB / 407.1 MB, free: 7.766 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.6573, allocations: 278.6 kB / 407.4 MB, free: 7.551 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.6578, allocations: 170.6 kB / 407.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.6578, allocations: 3.875 kB / 407.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00118/0.659, allocations: 485.9 kB / 408.1 MB, free: 7.398 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.6591, allocations: 7.562 kB / 408.1 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.6591, allocations: 11.83 kB / 408.1 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.6594, allocations: 35.81 kB / 408.1 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006933/0.6601, allocations: 119.7 kB / 408.2 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003612/0.6604, allocations: 0.5605 MB / 408.8 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.6608, allocations: 30.22 kB / 408.8 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.6609, allocations: 22.67 kB / 408.8 MB, free: 6.812 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (62): * Single equations (assignments): 61 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004796/0.6614, allocations: 221.3 kB / 409.1 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.6615, allocations: 42.84 kB / 409.1 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008938/0.6624, allocations: 318.3 kB / 409.4 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.6625, allocations: 3.969 kB / 409.4 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.6625, allocations: 3.938 kB / 409.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.6625, allocations: 7.859 kB / 409.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.6645, allocations: 1.112 MB / 410.5 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.6646, allocations: 3.969 kB / 410.5 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007529/0.6653, allocations: 86.17 kB / 410.6 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.6655, allocations: 34.86 kB / 410.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.416e-05/0.6656, allocations: 11.22 kB / 410.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003237/0.6659, allocations: 0.5546 MB / 411.2 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6659, allocations: 3.906 kB / 411.2 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.6673, allocations: 0.8442 MB / 412.1 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.269e-05/0.6674, allocations: 112.4 kB / 412.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.383e-05/0.6675, allocations: 11.09 kB / 412.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000374/0.6679, allocations: 15.55 kB / 412.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.668, allocations: 31.25 kB / 412.2 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.668, allocations: 15.39 kB / 412.3 MB, free: 4.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002986/0.6683, allocations: 227.1 kB / 412.5 MB, free: 4.566 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6684, allocations: 4 kB / 412.5 MB, free: 4.562 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008358/0.6692, allocations: 126.2 kB / 412.6 MB, free: 4.559 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * 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 (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001835/0.671, allocations: 1.907 MB / 414.5 MB, free: 3.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.6722, allocations: 347.5 kB / 414.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6722, allocations: 0 / 414.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004998/0.6727, allocations: 169.2 kB / 415 MB, free: 2.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.6734, allocations: 70.84 kB / 415.1 MB, free: 2.887 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008575/0.682, allocations: 6.78 MB / 421.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007903/0.6829, allocations: 0.9563 MB / 422.8 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000484/0.6834, allocations: 259.6 kB / 423.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of SimCode: time 1.744e-06/0.6834, allocations: 0 / 423.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.876/3.559, allocations: 12.78 MB / 435.8 MB, free: 6.207 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat