Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.524/2.524, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006499/0.00065, allocations: 12 kB / 314.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3974, allocations: 54.86 MB / 369.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1763/0.5737, allocations: 96.39 MB / 465.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.5741, allocations: 67.97 kB / 465.8 MB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5883/1.162, allocations: 63.79 MB / 0.5172 GB, free: 55.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.163, allocations: 0 / 0.5172 GB, free: 55.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000235/1.163, allocations: 67.98 kB / 0.5172 GB, free: 55.22 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.0143/1.177, allocations: 3.127 MB / 0.5203 GB, free: 52.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/1.177, allocations: 8.031 kB / 0.5203 GB, free: 52.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001734/1.179, allocations: 396.3 kB / 0.5207 GB, free: 51.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003061/1.182, allocations: 407.8 kB / 0.5211 GB, free: 51.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004584/1.187, allocations: 1.302 MB / 0.5223 GB, free: 49.87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/1.188, allocations: 0.5806 MB / 0.5229 GB, free: 49.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001471/1.19, allocations: 311.7 kB / 0.5232 GB, free: 48.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/1.203, allocations: 3.368 MB / 0.5265 GB, free: 45.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/1.204, allocations: 43.55 kB / 0.5265 GB, free: 45.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000919/1.205, allocations: 116 kB / 0.5266 GB, free: 45.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-05/1.205, allocations: 72 kB / 0.5267 GB, free: 45.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/1.218, allocations: 3.489 MB / 0.5301 GB, free: 41.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02803/1.246, allocations: 9.791 MB / 0.5397 GB, free: 31.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009714/1.256, allocations: 3.131 MB / 0.5427 GB, free: 28.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007742/1.257, allocations: 232.2 kB / 0.543 GB, free: 28.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.821e-05/1.257, allocations: 97.8 kB / 0.5431 GB, free: 28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 8.005e-06/1.257, allocations: 0 / 0.5431 GB, free: 28 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.06424/1.321, allocations: 21.37 MB / 0.5639 GB, free: 5.406 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/1.322, allocations: 0.6045 MB / 0.5645 GB, free: 4.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003091/1.325, allocations: 1.322 MB / 0.5658 GB, free: 3.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.326, allocations: 125.7 kB / 0.5659 GB, free: 3.211 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008128/1.327, allocations: 0.8455 MB / 0.5668 GB, free: 2.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00229/1.329, allocations: 1.433 MB / 0.5682 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/1.33, allocations: 93.02 kB / 0.5682 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003217/1.33, allocations: 467.9 kB / 0.5687 GB, free: 352 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006177/1.337, allocations: 1.437 MB / 0.5701 GB, free: 14.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008796/1.345, allocations: 2.161 MB / 0.5722 GB, free: 12.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008558/1.354, allocations: 1.473 MB / 0.5736 GB, free: 10.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-05/1.354, allocations: 11.94 kB / 0.5737 GB, free: 10.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0194/1.374, allocations: 4.726 MB / 0.5783 GB, free: 6.219 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/1.374, allocations: 12 kB / 0.5783 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.687e-05/1.374, allocations: 20 kB / 0.5783 GB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007369/1.381, allocations: 1.773 MB / 0.58 GB, free: 4.383 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006275/1.388, allocations: 0.8074 MB / 0.5808 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03147/1.419, allocations: 16.54 MB / 0.597 GB, free: 2.117 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005888/1.425, allocations: 387.6 kB / 0.5973 GB, free: 1.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009972/1.426, allocations: 179.9 kB / 0.5975 GB, free: 1.562 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$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,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002587/1.429, allocations: 0.6106 MB / 0.5981 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.43, allocations: 296.5 kB / 0.5984 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006265/1.436, allocations: 1.589 MB / 0.5999 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.65e-05/1.436, allocations: 44 kB / 0.6 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.781e-05/1.436, allocations: 11.98 kB / 0.6 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001211/1.437, allocations: 23.92 kB / 0.6 GB, free: 14.95 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03721/1.474, allocations: 10.4 MB / 0.6102 GB, free: 4.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.919e-05/1.474, allocations: 12 kB / 0.6102 GB, free: 4.309 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006598/1.481, allocations: 0.7335 MB / 0.6109 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006961/1.488, allocations: 1.636 MB / 0.6125 GB, free: 1.906 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001115/1.489, allocations: 143.8 kB / 0.6126 GB, free: 1.766 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03098/1.52, allocations: 16.04 MB / 0.6283 GB, free: 0.8281 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.986e-05/1.52, allocations: 15.94 kB / 0.6283 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0285/1.548, allocations: 8.506 MB / 0.6366 GB, free: 7.891 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003037/1.551, allocations: 0.7002 MB / 0.6373 GB, free: 7.168 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/1.553, allocations: 124 kB / 0.6374 GB, free: 7.047 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006034/1.559, allocations: 343.7 kB / 0.6378 GB, free: 6.711 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002696/1.562, allocations: 0.6174 MB / 0.6384 GB, free: 6.094 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001004/1.563, allocations: 163.9 kB / 0.6385 GB, free: 5.934 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002826/1.566, allocations: 1.008 MB / 0.6395 GB, free: 4.934 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.566, allocations: 0 / 0.6395 GB, free: 4.934 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007214/1.573, allocations: 0.9804 MB / 0.6405 GB, free: 3.953 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.3559/1.929, allocations: 11.96 MB / 0.6521 GB, free: 124.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0151/1.944, allocations: 5.043 MB / 0.6571 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/1.944, allocations: 0 / 0.6571 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0115/1.956, allocations: 3.771 MB / 0.6607 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004552/1.96, allocations: 387 kB / 0.6611 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06337/2.024, allocations: 34.48 MB / 0.6948 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001893/2.026, allocations: 1.897 MB / 0.6966 GB, free: 100 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002985/2.029, allocations: 1.163 MB / 0.6978 GB, free: 99.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/2.029, allocations: 0 / 0.6978 GB, free: 99.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.926/6.954, allocations: 140.3 MB / 0.8348 GB, free: 144.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat