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.371/2.371, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.478e-05, allocations: 4 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4027, allocations: 54.85 MB / 364.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1832/0.5859, allocations: 99.54 MB / 464.2 MB, free: 12.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.5862, allocations: 63.97 kB / 464.2 MB, free: 12.85 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2287/0.815, allocations: 47.94 MB / 0.5001 GB, free: 12.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.815, allocations: 0 / 0.5001 GB, free: 12.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001786/0.8152, allocations: 48 kB / 0.5002 GB, free: 12.77 MB / 442.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.01108/0.8263, allocations: 2.352 MB / 0.5025 GB, free: 10.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.8264, allocations: 8.031 kB / 0.5025 GB, free: 10.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001126/0.8275, allocations: 303.9 kB / 0.5028 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/0.8294, allocations: 292.9 kB / 0.5031 GB, free: 9.758 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.8328, allocations: 0.9785 MB / 0.504 GB, free: 8.723 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001445/0.8343, allocations: 464.1 kB / 0.5045 GB, free: 8.223 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.8355, allocations: 239.7 kB / 0.5047 GB, free: 7.988 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008591/0.8441, allocations: 2.343 MB / 0.507 GB, free: 5.559 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/0.8444, allocations: 31.7 kB / 0.507 GB, free: 5.527 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005375/0.8449, allocations: 95.95 kB / 0.5071 GB, free: 5.434 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.051e-05/0.845, allocations: 55.98 kB / 0.5072 GB, free: 5.379 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007686/0.8527, allocations: 2.196 MB / 0.5093 GB, free: 3.176 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02313/0.8759, allocations: 6.767 MB / 0.5159 GB, free: 12.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006604/0.8825, allocations: 2.249 MB / 0.5181 GB, free: 9.918 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004196/0.8868, allocations: 1.208 MB / 0.5193 GB, free: 8.695 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005056/0.8873, allocations: 127.6 kB / 0.5194 GB, free: 8.555 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.169e-05/0.8874, allocations: 72.92 kB / 0.5195 GB, free: 8.473 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 6.782e-06/0.8875, allocations: 3.938 kB / 0.5195 GB, free: 8.469 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.3419/1.229, allocations: 11.09 MB / 0.5303 GB, free: 121.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/1.23, allocations: 333.4 kB / 0.5306 GB, free: 121.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002118/1.232, allocations: 0.9072 MB / 0.5315 GB, free: 121.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007916/1.233, allocations: 98.44 kB / 0.5316 GB, free: 121.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006813/1.233, allocations: 0.6569 MB / 0.5323 GB, free: 120.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001774/1.235, allocations: 1.134 MB / 0.5334 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006253/1.236, allocations: 65.73 kB / 0.5334 GB, free: 120.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002892/1.236, allocations: 434.6 kB / 0.5338 GB, free: 119.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003569/1.24, allocations: 1.014 MB / 0.5348 GB, free: 119.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004237/1.244, allocations: 1.42 MB / 0.5362 GB, free: 119.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003691/1.248, allocations: 1.017 MB / 0.5372 GB, free: 119.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-05/1.248, allocations: 3.219 kB / 0.5372 GB, free: 119.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01198/1.26, allocations: 3.202 MB / 0.5403 GB, free: 119.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/1.26, allocations: 11.61 kB / 0.5403 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.138e-05/1.26, allocations: 10.56 kB / 0.5404 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003986/1.264, allocations: 1.021 MB / 0.5414 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00607/1.27, allocations: 0.7523 MB / 0.5421 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.283, allocations: 7.394 MB / 0.5493 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004273/1.288, allocations: 291.9 kB / 0.5496 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007899/1.289, allocations: 128.9 kB / 0.5497 GB, free: 114.4 MB / 458.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 () * 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.001046/1.29, allocations: 288.5 kB / 0.55 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000932/1.291, allocations: 220 kB / 0.5502 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007223/1.298, allocations: 2.295 MB / 0.5524 GB, free: 113.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.343e-05/1.298, allocations: 34.38 kB / 0.5525 GB, free: 113.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-05/1.298, allocations: 7.906 kB / 0.5525 GB, free: 113.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-05/1.298, allocations: 22.56 kB / 0.5525 GB, free: 113.1 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02208/1.32, allocations: 7.347 MB / 0.5597 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-05/1.32, allocations: 8.688 kB / 0.5597 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006293/1.326, allocations: 0.7389 MB / 0.5604 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003765/1.33, allocations: 1.011 MB / 0.5614 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007676/1.331, allocations: 107.5 kB / 0.5615 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01366/1.345, allocations: 10.01 MB / 0.5713 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/1.345, allocations: 11.62 kB / 0.5713 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/1.359, allocations: 5.753 MB / 0.5769 GB, free: 97.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/1.361, allocations: 0.5318 MB / 0.5774 GB, free: 97.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008065/1.362, allocations: 89.8 kB / 0.5775 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004364/1.367, allocations: 297.4 kB / 0.5778 GB, free: 97.15 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001794/1.369, allocations: 458.6 kB / 0.5782 GB, free: 97.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00051/1.369, allocations: 128.5 kB / 0.5784 GB, free: 97.04 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001463/1.371, allocations: 0.7042 MB / 0.579 GB, free: 96.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.371, allocations: 3.828 kB / 0.579 GB, free: 96.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004666/1.375, allocations: 0.7312 MB / 0.5798 GB, free: 96.64 MB / 458.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) * 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.0158/1.391, allocations: 8.842 MB / 0.5884 GB, free: 90.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00861/1.4, allocations: 3.09 MB / 0.5914 GB, free: 88.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.4, allocations: 7.625 kB / 0.5914 GB, free: 88.87 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00738/1.407, allocations: 2.544 MB / 0.5939 GB, free: 87.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/1.411, allocations: 310 kB / 0.5942 GB, free: 87.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01911/1.43, allocations: 6.234 MB / 0.6003 GB, free: 82.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/1.432, allocations: 1.594 MB / 0.6018 GB, free: 80.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002331/1.434, allocations: 0.8848 MB / 0.6027 GB, free: 80 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/1.434, allocations: 0 / 0.6027 GB, free: 80 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.919/5.353, allocations: 80.17 MB / 0.681 GB, free: 5.195 MB / 458.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