Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.48/2.48, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.998e-05/4.014e-05, allocations: 0 / 309.8 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.3997, allocations: 54.85 MB / 364.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5581, allocations: 86.42 MB / 451 MB, free: 9.961 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.5584, allocations: 67.59 kB / 451.1 MB, free: 9.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05701/0.6154, allocations: 11.75 MB / 462.8 MB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6155, allocations: 0 / 462.8 MB, free: 14.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.893e-05/0.6156, allocations: 16 kB / 462.9 MB, free: 14.12 MB / 394.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.003403/0.619, allocations: 0.9389 MB / 463.8 MB, free: 13.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.6191, allocations: 8.031 kB / 463.8 MB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002983/0.6194, allocations: 106.5 kB / 463.9 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.6196, allocations: 79.06 kB / 464 MB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009184/0.6206, allocations: 409.6 kB / 464.4 MB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.13e-05/0.6207, allocations: 41.31 kB / 464.4 MB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/0.6209, allocations: 67.95 kB / 464.5 MB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.6229, allocations: 0.7444 MB / 465.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/0.623, allocations: 7.906 kB / 465.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.6231, allocations: 28 kB / 465.3 MB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.6231, allocations: 12 kB / 465.3 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.6251, allocations: 0.6137 MB / 465.9 MB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007356/0.6325, allocations: 2.578 MB / 468.5 MB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.6343, allocations: 0.5739 MB / 469.1 MB, free: 7.645 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009411/0.6353, allocations: 337 kB / 469.4 MB, free: 7.305 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.6354, allocations: 20.05 kB / 469.4 MB, free: 7.285 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.6355, allocations: 42.56 kB / 469.4 MB, free: 7.234 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.358e-06/0.6355, allocations: 0 / 469.4 MB, free: 7.234 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.006863/0.6424, allocations: 2.403 MB / 471.8 MB, free: 4.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.6425, allocations: 136.5 kB / 472 MB, free: 4.469 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005948/0.6431, allocations: 319.2 kB / 472.3 MB, free: 4.145 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.6434, allocations: 53.7 kB / 472.3 MB, free: 4.086 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.6436, allocations: 311 kB / 472.6 MB, free: 3.777 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.644, allocations: 292.1 kB / 472.9 MB, free: 3.488 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.891e-05/0.6441, allocations: 16 kB / 472.9 MB, free: 3.473 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.6443, allocations: 346.8 kB / 473.3 MB, free: 3.125 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009812/0.6453, allocations: 313.9 kB / 473.6 MB, free: 2.816 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.6464, allocations: 470.7 kB / 474.1 MB, free: 2.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008073/0.6472, allocations: 262.8 kB / 474.3 MB, free: 2.051 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.6472, allocations: 8 kB / 474.3 MB, free: 2.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003952/0.6512, allocations: 1.092 MB / 475.4 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.6513, allocations: 11.95 kB / 475.4 MB, free: 0.9258 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.442e-05/0.6514, allocations: 11.98 kB / 475.4 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/0.6534, allocations: 0.5854 MB / 476 MB, free: 324 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.6545, allocations: 151.7 kB / 476.2 MB, free: 172 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.6577, allocations: 2.565 MB / 478.7 MB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.6596, allocations: 199.7 kB / 478.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.6598, allocations: 43.98 kB / 479 MB, free: 13.26 MB / 410.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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003476/0.6601, allocations: 175.8 kB / 479.1 MB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002695/0.6604, allocations: 63.25 kB / 479.2 MB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/0.6641, allocations: 1.025 MB / 480.2 MB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.6642, allocations: 15.98 kB / 480.2 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.6642, allocations: 0 / 480.2 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.6643, allocations: 7.984 kB / 480.3 MB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005915/0.6702, allocations: 2.022 MB / 482.3 MB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.6702, allocations: 4 kB / 482.3 MB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.6714, allocations: 111.9 kB / 482.4 MB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.6734, allocations: 0.5654 MB / 483 MB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001533/0.6735, allocations: 35.91 kB / 483 MB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.6765, allocations: 2.518 MB / 485.5 MB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.096e-06/0.6766, allocations: 4.406 kB / 485.5 MB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004495/0.6811, allocations: 1.641 MB / 487.2 MB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005837/0.6817, allocations: 216.1 kB / 487.4 MB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.682, allocations: 31.98 kB / 487.4 MB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.6836, allocations: 167.8 kB / 487.6 MB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006055/0.6842, allocations: 175.6 kB / 487.7 MB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.6844, allocations: 39.95 kB / 487.8 MB, free: 4.148 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004631/0.6849, allocations: 261.2 kB / 488 MB, free: 3.898 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.405e-06/0.6849, allocations: 112 / 488 MB, free: 3.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001161/0.6861, allocations: 203.9 kB / 488.2 MB, free: 3.699 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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.005219/0.6913, allocations: 2.573 MB / 490.8 MB, free: 1.062 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.6942, allocations: 0.9127 MB / 491.7 MB, free: 132 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.403e-06/0.6943, allocations: 0 / 491.7 MB, free: 132 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.696, allocations: 476.4 kB / 492.2 MB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.6975, allocations: 95.94 kB / 492.3 MB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009211/0.7067, allocations: 2.189 MB / 494.5 MB, free: 13.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/0.7075, allocations: 0.9224 MB / 495.4 MB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005456/0.708, allocations: 215.3 kB / 495.6 MB, free: 12.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/0.708, allocations: 0 / 495.6 MB, free: 12.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.064/3.772, allocations: 18.88 MB / 0.5024 GB, free: 9.262 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat