Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.063/2.063, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004528, allocations: 8 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3859, allocations: 48.7 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.5348, allocations: 80.1 MB / 411.5 MB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5352, allocations: 67.97 kB / 411.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06086/0.5961, allocations: 11.55 MB / 423.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.5961, allocations: 0 / 423.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.239e-05/0.5962, allocations: 19.98 kB / 423.1 MB, free: 2.531 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003649/0.5998, allocations: 1.016 MB / 424.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.5999, allocations: 8.031 kB / 424.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003074/0.6002, allocations: 98.52 kB / 424.2 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.6005, allocations: 90.91 kB / 424.3 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009514/0.6014, allocations: 404.7 kB / 424.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.32e-05/0.6016, allocations: 53.31 kB / 424.7 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/0.6018, allocations: 71.83 kB / 424.8 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.6046, allocations: 0.8179 MB / 425.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.018e-05/0.6047, allocations: 15.84 kB / 425.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.6048, allocations: 24 kB / 425.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.6048, allocations: 12 kB / 425.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003003/0.6078, allocations: 0.7932 MB / 426.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007679/0.6156, allocations: 2.607 MB / 429.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.6181, allocations: 0.6437 MB / 429.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/0.6182, allocations: 12.36 kB / 429.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.6183, allocations: 42.94 kB / 429.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 3.496e-06/0.6183, allocations: 0 / 429.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.01466/0.633, allocations: 3.845 MB / 433.6 MB, free: 7.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.6331, allocations: 148.4 kB / 433.8 MB, free: 7.262 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007417/0.6339, allocations: 369 kB / 434.1 MB, free: 6.891 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002561/0.6342, allocations: 49.7 kB / 434.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.6344, allocations: 326.8 kB / 434.5 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004645/0.6349, allocations: 272.5 kB / 434.8 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.895e-05/0.635, allocations: 20 kB / 434.8 MB, free: 6.223 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.6352, allocations: 350.8 kB / 435.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.6368, allocations: 397.8 kB / 435.5 MB, free: 5.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.6384, allocations: 0.5413 MB / 436.1 MB, free: 4.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.6399, allocations: 356.5 kB / 436.4 MB, free: 4.539 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.64, allocations: 0 / 436.4 MB, free: 4.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005303/0.6453, allocations: 1.365 MB / 437.8 MB, free: 3.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.6454, allocations: 8 kB / 437.8 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.6454, allocations: 4 kB / 437.8 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.6479, allocations: 0.7957 MB / 438.6 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.6492, allocations: 167.7 kB / 438.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/0.6529, allocations: 2.674 MB / 441.4 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/0.6549, allocations: 195.9 kB / 441.6 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.6552, allocations: 43.98 kB / 441.7 MB, free: 15.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006092/0.6558, allocations: 216.2 kB / 441.9 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/0.6562, allocations: 67.2 kB / 441.9 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.6564, allocations: 87.97 kB / 442 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.6565, allocations: 8 kB / 442 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.6565, allocations: 4 kB / 442 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.6565, allocations: 7.984 kB / 442 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007784/0.6643, allocations: 2.332 MB / 444.4 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.6644, allocations: 0 / 444.4 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.6656, allocations: 131.7 kB / 444.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/0.6679, allocations: 0.7605 MB / 445.3 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/0.6681, allocations: 31.97 kB / 445.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00347/0.6716, allocations: 2.635 MB / 447.9 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.6717, allocations: 0 / 447.9 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006455/0.6782, allocations: 1.947 MB / 449.9 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/0.6789, allocations: 224.2 kB / 450.1 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/0.6791, allocations: 28 kB / 450.1 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.6808, allocations: 175.8 kB / 450.3 MB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006019/0.6814, allocations: 175.5 kB / 450.5 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.6816, allocations: 39.95 kB / 450.5 MB, free: 6.055 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005421/0.6821, allocations: 287.1 kB / 450.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6821, allocations: 0 / 450.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001289/0.6834, allocations: 196 kB / 451 MB, free: 5.582 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007013/0.6905, allocations: 2.754 MB / 453.7 MB, free: 2.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.6943, allocations: 0.9497 MB / 454.7 MB, free: 1.832 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.6943, allocations: 0 / 454.7 MB, free: 1.832 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/0.6965, allocations: 0.493 MB / 455.2 MB, free: 1.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.6978, allocations: 92.88 kB / 455.3 MB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/0.7179, allocations: 8.326 MB / 463.6 MB, free: 8.742 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007386/0.7187, allocations: 0.926 MB / 464.5 MB, free: 7.789 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006379/0.7193, allocations: 215.3 kB / 464.7 MB, free: 7.578 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/0.7193, allocations: 0 / 464.7 MB, free: 7.578 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.453/4.172, allocations: 18.23 MB / 482.9 MB, free: 5.344 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat