Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01023/0.01023, allocations: 177.6 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.975/1.975, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002029/0.002029, allocations: 128.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2538/0.2538, allocations: 40.02 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000469/0.0004691, allocations: 14.31 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1061, allocations: 54.87 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.523/0.6291, allocations: 96.37 MB / 0.5444 GB, free: 21.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.6294, allocations: 65.59 kB / 0.5445 GB, free: 21.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.275/0.9045, allocations: 63.81 MB / 0.6068 GB, free: 3.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.9045, allocations: 0 / 0.6068 GB, free: 3.652 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002241/0.9048, allocations: 71.67 kB / 0.6069 GB, free: 3.586 MB / 378.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.01392/0.9187, allocations: 3.119 MB / 0.6099 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.9188, allocations: 8.031 kB / 0.6099 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001597/0.9204, allocations: 394.5 kB / 0.6103 GB, free: 412 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002801/0.9232, allocations: 412.3 kB / 0.6107 GB, free: 0 / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00485/0.9281, allocations: 1.313 MB / 0.612 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001488/0.9296, allocations: 0.5805 MB / 0.6126 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001505/0.9312, allocations: 310.9 kB / 0.6129 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01523/0.9464, allocations: 3.378 MB / 0.6162 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003461/0.9468, allocations: 35.7 kB / 0.6162 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009762/0.9478, allocations: 112 kB / 0.6163 GB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.871e-05/0.948, allocations: 72 kB / 0.6164 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01481/0.9628, allocations: 3.485 MB / 0.6198 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03198/0.9948, allocations: 9.785 MB / 0.6293 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/1.006, allocations: 3.141 MB / 0.6324 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000832/1.007, allocations: 224.4 kB / 0.6326 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/1.007, allocations: 93.19 kB / 0.6327 GB, free: 10.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=366): time 7.925e-06/1.007, allocations: 4 kB / 0.6327 GB, free: 10.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=429): time 0.07611/1.083, allocations: 21.36 MB / 0.6536 GB, free: 3.855 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003508/1.083, allocations: 0.6084 MB / 0.6542 GB, free: 3.109 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004007/1.087, allocations: 1.318 MB / 0.6554 GB, free: 1.793 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001223/1.089, allocations: 121.7 kB / 0.6556 GB, free: 1.668 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/1.09, allocations: 0.8996 MB / 0.6564 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002831/1.093, allocations: 1.438 MB / 0.6578 GB, free: 15.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001225/1.094, allocations: 95.92 kB / 0.6579 GB, free: 15.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005216/1.095, allocations: 467 kB / 0.6584 GB, free: 14.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006754/1.102, allocations: 1.433 MB / 0.6598 GB, free: 13.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007776/1.109, allocations: 2.161 MB / 0.6619 GB, free: 10.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006813/1.116, allocations: 1.449 MB / 0.6633 GB, free: 9.445 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-05/1.116, allocations: 4 kB / 0.6633 GB, free: 9.441 MB / 442.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0212/1.138, allocations: 4.836 MB / 0.668 GB, free: 4.582 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/1.138, allocations: 15.95 kB / 0.668 GB, free: 4.566 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.532e-05/1.138, allocations: 27.98 kB / 0.6681 GB, free: 4.539 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007727/1.146, allocations: 1.777 MB / 0.6698 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006535/1.152, allocations: 0.8113 MB / 0.6706 GB, free: 1.918 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03491/1.187, allocations: 16.55 MB / 0.6868 GB, free: 496 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006029/1.193, allocations: 383.7 kB / 0.6871 GB, free: 112 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001452/1.195, allocations: 179.9 kB / 0.6873 GB, free: 15.93 MB / 474.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.003787/1.199, allocations: 0.6142 MB / 0.6879 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002142/1.201, allocations: 292.6 kB / 0.6882 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007475/1.208, allocations: 1.59 MB / 0.6897 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.695e-05/1.208, allocations: 44 kB / 0.6898 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.246e-05/1.208, allocations: 8 kB / 0.6898 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001441/1.209, allocations: 23.92 kB / 0.6898 GB, free: 13.32 MB / 474.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.04028/1.249, allocations: 10.42 MB / 0.7 GB, free: 2.777 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.813e-05/1.249, allocations: 8 kB / 0.7 GB, free: 2.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006856/1.256, allocations: 0.7342 MB / 0.7007 GB, free: 2.035 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007373/1.263, allocations: 1.648 MB / 0.7023 GB, free: 364 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001171/1.265, allocations: 135.9 kB / 0.7024 GB, free: 228 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4602/1.725, allocations: 16.02 MB / 0.7181 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/1.725, allocations: 11.28 kB / 0.7181 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02827/1.753, allocations: 8.503 MB / 0.7264 GB, free: 128.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003229/1.756, allocations: 0.6977 MB / 0.7271 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001949/1.758, allocations: 114.5 kB / 0.7272 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006082/1.765, allocations: 351.5 kB / 0.7275 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002717/1.767, allocations: 0.6134 MB / 0.7281 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009569/1.768, allocations: 165.2 kB / 0.7283 GB, free: 128 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003027/1.771, allocations: 1.007 MB / 0.7293 GB, free: 127.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.771, allocations: 1.344 kB / 0.7293 GB, free: 127.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007383/1.779, allocations: 0.9868 MB / 0.7302 GB, free: 127.8 MB / 490.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.02977/1.809, allocations: 11.97 MB / 0.7419 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01555/1.824, allocations: 5.049 MB / 0.7468 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/1.824, allocations: 2.906 kB / 0.7468 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01377/1.838, allocations: 3.984 MB / 0.7507 GB, free: 120.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005164/1.843, allocations: 382.4 kB / 0.7511 GB, free: 120.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06683/1.91, allocations: 34.4 MB / 0.7847 GB, free: 97.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002701/1.913, allocations: 1.896 MB / 0.7866 GB, free: 96.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003619/1.917, allocations: 454.4 kB / 0.787 GB, free: 96.12 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003564/1.92, allocations: 1.144 MB / 0.7881 GB, free: 95.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.462e-06/1.92, allocations: 0 / 0.7881 GB, free: 95.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1711/2.091, allocations: 74.04 MB / 0.8604 GB, free: 36.88 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/2.092, allocations: 202.4 kB / 0.8606 GB, free: 36.64 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.555/8.647, allocations: 0 / 0.8606 GB, free: 36.64 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat