Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.108/2.108, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006349/0.0006349, allocations: 19.98 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3909, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.535, allocations: 75.04 MB / 406.4 MB, free: 3.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5353, allocations: 67.97 kB / 406.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01008/0.5454, allocations: 2.335 MB / 408.8 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5455, allocations: 0 / 408.8 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.5455, allocations: 8 kB / 408.8 MB, free: 0.8438 MB / 330.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.0006758/0.5462, allocations: 421.9 kB / 409.2 MB, free: 396 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5463, allocations: 8.031 kB / 409.2 MB, free: 388 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.029e-05/0.5464, allocations: 46.55 kB / 409.3 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.5464, allocations: 11.91 kB / 409.3 MB, free: 320 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.5467, allocations: 206.8 kB / 409.5 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.5467, allocations: 12 kB / 409.5 MB, free: 60 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.5468, allocations: 16 kB / 409.5 MB, free: 44 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.5472, allocations: 125.7 kB / 409.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.5472, allocations: 0 / 409.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.5472, allocations: 4 kB / 409.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.5473, allocations: 4 kB / 409.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.5476, allocations: 87.89 kB / 409.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.5486, allocations: 476 kB / 410.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.549, allocations: 124.3 kB / 410.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.549, allocations: 4 kB / 410.3 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.5491, allocations: 42.55 kB / 410.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.465e-06/0.5491, allocations: 0 / 410.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.002234/0.5513, allocations: 0.8101 MB / 411.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.5514, allocations: 55.41 kB / 411.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.5516, allocations: 131.7 kB / 411.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.5516, allocations: 29.7 kB / 411.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.5518, allocations: 174.8 kB / 411.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.761e-05/0.5519, allocations: 67.09 kB / 411.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.5519, allocations: 3.938 kB / 411.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.552, allocations: 318.8 kB / 411.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.5522, allocations: 48.34 kB / 412 MB, free: 13.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.5524, allocations: 76.16 kB / 412.1 MB, free: 13.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.5527, allocations: 58.17 kB / 412.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5527, allocations: 4 kB / 412.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006209/0.5533, allocations: 202.2 kB / 412.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.5534, allocations: 8 kB / 412.3 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5534, allocations: 4.031 kB / 412.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.5536, allocations: 40.83 kB / 412.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.5539, allocations: 35.92 kB / 412.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002075/0.556, allocations: 1.573 MB / 414 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.5562, allocations: 8 kB / 414 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.5562, allocations: 7.984 kB / 414 MB, free: 11.2 MB / 346.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 () * Number of clocked 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.0001785/0.5564, allocations: 125.9 kB / 414.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.5565, allocations: 15.81 kB / 414.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.526e-05/0.5566, allocations: 25.14 kB / 414.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5566, allocations: 7.938 kB / 414.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5566, allocations: 0 / 414.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5566, allocations: 3.984 kB / 414.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.5579, allocations: 0.5553 MB / 414.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.5579, allocations: 0 / 414.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.5582, allocations: 35.97 kB / 414.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.5584, allocations: 28.89 kB / 414.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.5584, allocations: 7.984 kB / 414.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.5601, allocations: 1.374 MB / 416.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5601, allocations: 3.953 kB / 416.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.5609, allocations: 366.1 kB / 416.5 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.5611, allocations: 101 kB / 416.6 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.5611, allocations: 7.938 kB / 416.6 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.5613, allocations: 12.06 kB / 416.6 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.5613, allocations: 15.97 kB / 416.7 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.5614, allocations: 8 kB / 416.7 MB, free: 8.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.5615, allocations: 105.7 kB / 416.8 MB, free: 8.168 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5615, allocations: 0 / 416.8 MB, free: 8.168 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004884/0.562, allocations: 47.94 kB / 416.8 MB, free: 8.121 MB / 346.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 () * Number of clocked 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.001217/0.5632, allocations: 0.9643 MB / 417.8 MB, free: 7.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007544/0.564, allocations: 270.1 kB / 418 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.564, allocations: 4 kB / 418 MB, free: 6.844 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.5645, allocations: 190.6 kB / 418.2 MB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.5648, allocations: 24.06 kB / 418.3 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.5677, allocations: 1.577 MB / 419.8 MB, free: 4.973 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.5681, allocations: 0.7246 MB / 420.6 MB, free: 4.223 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.5683, allocations: 39.53 kB / 420.6 MB, free: 4.184 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5683, allocations: 3.938 kB / 420.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.75/3.318, allocations: 3.006 MB / 423.6 MB, free: 1.172 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat