Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.408/2.408, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00045/0.0004497, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.3985, allocations: 48.7 MB / 331.4 MB, free: 6.398 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.5863, allocations: 91.98 MB / 423.3 MB, free: 2.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5866, allocations: 67.97 kB / 423.4 MB, free: 2.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2435/0.8302, allocations: 44.39 MB / 467.8 MB, free: 5.727 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.13e-06/0.8303, allocations: 7.984 kB / 467.8 MB, free: 5.719 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001671/0.8304, allocations: 44 kB / 467.8 MB, free: 5.676 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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.01106/0.8415, allocations: 2.389 MB / 470.2 MB, free: 3.227 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.8416, allocations: 8.031 kB / 470.2 MB, free: 3.219 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001282/0.8429, allocations: 295 kB / 470.5 MB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001733/0.8446, allocations: 281 kB / 470.8 MB, free: 2.645 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003525/0.8482, allocations: 0.939 MB / 471.7 MB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001212/0.8495, allocations: 414.1 kB / 472.1 MB, free: 1.203 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.8507, allocations: 219.8 kB / 472.4 MB, free: 0.9883 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3311/1.182, allocations: 2.406 MB / 474.8 MB, free: 97.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004961/1.182, allocations: 28.91 kB / 474.8 MB, free: 97.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001149/1.184, allocations: 85.75 kB / 474.9 MB, free: 97.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/1.184, allocations: 49.89 kB / 474.9 MB, free: 97.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/1.201, allocations: 2.506 MB / 477.4 MB, free: 97.08 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03269/1.234, allocations: 6.158 MB / 483.6 MB, free: 96.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/1.246, allocations: 2.301 MB / 485.9 MB, free: 95.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005406/1.247, allocations: 43.25 kB / 485.9 MB, free: 95.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.318e-05/1.247, allocations: 63.25 kB / 486 MB, free: 95.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=260): time 1.039e-05/1.247, allocations: 0 / 486 MB, free: 95.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=315): time 0.07743/1.324, allocations: 12.91 MB / 498.9 MB, free: 89.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/1.324, allocations: 243.1 kB / 499.1 MB, free: 89.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003237/1.328, allocations: 0.9242 MB / 0.4883 GB, free: 89.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001/1.329, allocations: 94.55 kB / 0.4884 GB, free: 89.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008789/1.33, allocations: 0.6361 MB / 0.4891 GB, free: 88.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002314/1.332, allocations: 1.06 MB / 0.4901 GB, free: 87.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000943/1.333, allocations: 61.45 kB / 0.4902 GB, free: 87.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003697/1.333, allocations: 423.9 kB / 0.4906 GB, free: 87.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00701/1.34, allocations: 1.064 MB / 0.4916 GB, free: 87.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007447/1.348, allocations: 1.45 MB / 0.493 GB, free: 86.44 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006779/1.355, allocations: 1.08 MB / 0.4941 GB, free: 86 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.493e-05/1.355, allocations: 4.062 kB / 0.4941 GB, free: 86 MB / 394.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.02114/1.376, allocations: 3.507 MB / 0.4975 GB, free: 84.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.184e-05/1.376, allocations: 10.81 kB / 0.4975 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/1.376, allocations: 9.156 kB / 0.4975 GB, free: 84.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006863/1.383, allocations: 1.236 MB / 0.4987 GB, free: 84.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007826/1.391, allocations: 0.6641 MB / 0.4994 GB, free: 84.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02308/1.414, allocations: 7.644 MB / 0.5068 GB, free: 78.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006418/1.421, allocations: 281 kB / 0.5071 GB, free: 78.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001221/1.422, allocations: 120.7 kB / 0.5072 GB, free: 78.35 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 38 (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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.003362/1.425, allocations: 451 kB / 0.5076 GB, free: 78.03 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/1.427, allocations: 203.8 kB / 0.5078 GB, free: 77.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003762/1.431, allocations: 0.7019 MB / 0.5085 GB, free: 77.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-05/1.431, allocations: 33.45 kB / 0.5086 GB, free: 77.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.431e-05/1.431, allocations: 7.328 kB / 0.5086 GB, free: 77.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001172/1.431, allocations: 16.83 kB / 0.5086 GB, free: 77.56 MB / 394.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.04018/1.471, allocations: 7.474 MB / 0.5159 GB, free: 73.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.723e-05/1.472, allocations: 8 kB / 0.5159 GB, free: 73.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008415/1.48, allocations: 0.6281 MB / 0.5165 GB, free: 73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006708/1.487, allocations: 1.221 MB / 0.5177 GB, free: 72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000991/1.488, allocations: 96.05 kB / 0.5178 GB, free: 71.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/1.511, allocations: 10.28 MB / 0.5278 GB, free: 61.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-05/1.511, allocations: 11.98 kB / 0.5278 GB, free: 61.58 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02965/1.541, allocations: 6.038 MB / 0.5337 GB, free: 55.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002596/1.543, allocations: 0.5239 MB / 0.5342 GB, free: 55.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.544, allocations: 76 kB / 0.5343 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005862/1.55, allocations: 272.6 kB / 0.5346 GB, free: 55.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002272/1.552, allocations: 422.3 kB / 0.535 GB, free: 54.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006513/1.553, allocations: 129.9 kB / 0.5351 GB, free: 54.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002495/1.556, allocations: 0.704 MB / 0.5358 GB, free: 54.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.556, allocations: 0 / 0.5358 GB, free: 54.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006537/1.562, allocations: 0.7145 MB / 0.5365 GB, free: 53.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.03125/1.594, allocations: 8.81 MB / 0.5451 GB, free: 44.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01544/1.609, allocations: 3.268 MB / 0.5483 GB, free: 41.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-05/1.609, allocations: 0 / 0.5483 GB, free: 41.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01247/1.622, allocations: 2.586 MB / 0.5508 GB, free: 39.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00464/1.626, allocations: 288.1 kB / 0.5511 GB, free: 38.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07048/1.697, allocations: 20.99 MB / 0.5716 GB, free: 17.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002561/1.7, allocations: 1.549 MB / 0.5731 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003601/1.703, allocations: 0.8347 MB / 0.5739 GB, free: 14.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.983e-06/1.703, allocations: 4 kB / 0.5739 GB, free: 14.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.75/6.454, allocations: 74.81 MB / 0.647 GB, free: 113.4 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat