Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.534/2.534, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007617/0.0007617, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3635, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2227/0.5862, allocations: 99.62 MB / 469 MB, free: 6.941 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.5866, allocations: 71.97 kB / 469 MB, free: 6.871 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5603/1.147, allocations: 47.9 MB / 0.5048 GB, free: 68.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.787e-06/1.147, allocations: 0 / 0.5048 GB, free: 68.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001269/1.147, allocations: 52 kB / 0.5049 GB, free: 68.34 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01072/1.158, allocations: 2.538 MB / 0.5074 GB, free: 65.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/1.158, allocations: 12.03 kB / 0.5074 GB, free: 65.72 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001287/1.159, allocations: 307.8 kB / 0.5077 GB, free: 65.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/1.161, allocations: 296.9 kB / 0.5079 GB, free: 65.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003315/1.164, allocations: 0.9823 MB / 0.5089 GB, free: 64.08 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001238/1.165, allocations: 464.1 kB / 0.5093 GB, free: 63.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009162/1.166, allocations: 243.7 kB / 0.5096 GB, free: 63.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009224/1.176, allocations: 2.588 MB / 0.5121 GB, free: 60.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001965/1.176, allocations: 27.7 kB / 0.5121 GB, free: 60.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003525/1.176, allocations: 99.88 kB / 0.5122 GB, free: 60.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-05/1.176, allocations: 52 kB / 0.5123 GB, free: 60.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/1.187, allocations: 2.668 MB / 0.5149 GB, free: 57.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01985/1.207, allocations: 6.772 MB / 0.5215 GB, free: 50.94 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007902/1.215, allocations: 2.518 MB / 0.524 GB, free: 48.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005389/1.215, allocations: 123.1 kB / 0.5241 GB, free: 48.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/1.215, allocations: 72.97 kB / 0.5241 GB, free: 48.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 6.652e-06/1.215, allocations: 0 / 0.5241 GB, free: 48.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.05184/1.267, allocations: 14.54 MB / 0.5383 GB, free: 32.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/1.267, allocations: 317.4 kB / 0.5386 GB, free: 32.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/1.269, allocations: 0.9222 MB / 0.5395 GB, free: 31.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008688/1.27, allocations: 93.7 kB / 0.5396 GB, free: 31.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006011/1.271, allocations: 0.6693 MB / 0.5403 GB, free: 30.87 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00175/1.273, allocations: 1.136 MB / 0.5414 GB, free: 29.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006223/1.273, allocations: 64 kB / 0.5415 GB, free: 29.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002592/1.274, allocations: 429.5 kB / 0.5419 GB, free: 29.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.278, allocations: 1.099 MB / 0.5429 GB, free: 28.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005214/1.284, allocations: 1.508 MB / 0.5444 GB, free: 26.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004617/1.288, allocations: 1.123 MB / 0.5455 GB, free: 25.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.608e-05/1.288, allocations: 192 / 0.5455 GB, free: 25.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01352/1.302, allocations: 3.419 MB / 0.5488 GB, free: 21.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/1.302, allocations: 11.94 kB / 0.5489 GB, free: 21.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.589e-05/1.302, allocations: 12.12 kB / 0.5489 GB, free: 21.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003887/1.306, allocations: 1.061 MB / 0.5499 GB, free: 20.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005692/1.312, allocations: 0.7412 MB / 0.5506 GB, free: 20.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/1.325, allocations: 7.535 MB / 0.558 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/1.329, allocations: 299.7 kB / 0.5583 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008385/1.33, allocations: 128 kB / 0.5584 GB, free: 11.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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,$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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002019/1.332, allocations: 473.2 kB / 0.5588 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008487/1.333, allocations: 221.5 kB / 0.5591 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009382/1.343, allocations: 2.499 MB / 0.5615 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.565e-05/1.343, allocations: 39.95 kB / 0.5615 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/1.343, allocations: 4 kB / 0.5615 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-05/1.343, allocations: 15.94 kB / 0.5616 GB, free: 8.52 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.02715/1.37, allocations: 7.776 MB / 0.5692 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-05/1.37, allocations: 12.03 kB / 0.5692 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006313/1.376, allocations: 0.7334 MB / 0.5699 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004327/1.381, allocations: 1.04 MB / 0.5709 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008588/1.382, allocations: 111.9 kB / 0.571 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01838/1.4, allocations: 10.18 MB / 0.5809 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/1.4, allocations: 11.94 kB / 0.581 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02347/1.424, allocations: 6.521 MB / 0.5873 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.426, allocations: 0.5371 MB / 0.5878 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008928/1.427, allocations: 87.98 kB / 0.5879 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004502/1.431, allocations: 295.8 kB / 0.5882 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001989/1.433, allocations: 456.9 kB / 0.5886 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006579/1.434, allocations: 131.9 kB / 0.5888 GB, free: 11.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001897/1.436, allocations: 0.715 MB / 0.5895 GB, free: 10.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.436, allocations: 0 / 0.5895 GB, free: 10.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005064/1.441, allocations: 0.7267 MB / 0.5902 GB, free: 10.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,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 (270): * Single equations (assignments): 263 * 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.02628/1.468, allocations: 9.629 MB / 0.5996 GB, free: 36 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01347/1.481, allocations: 3.516 MB / 0.603 GB, free: 12.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/1.481, allocations: 4.25 kB / 0.603 GB, free: 12.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01077/1.492, allocations: 2.816 MB / 0.6058 GB, free: 9.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00406/1.496, allocations: 302.9 kB / 0.6061 GB, free: 9.297 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06115/1.557, allocations: 22.25 MB / 0.6278 GB, free: 1.996 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00283/1.56, allocations: 1.592 MB / 0.6293 GB, free: 376 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002757/1.563, allocations: 0.882 MB / 0.6302 GB, free: 15.48 MB / 474.7 MB Notification: Performance of SimCode: time 1.242e-06/1.563, allocations: 0 / 0.6302 GB, free: 15.48 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.526/6.089, allocations: 79.86 MB / 0.7082 GB, free: 100.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat