Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_AllComponents",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.01019/0.01019, 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 2.019/2.019, allocations: 194.5 MB / 210.3 MB, free: 7.812 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.001988/0.001988, allocations: 108.7 kB / 255.6 MB, free: 10.43 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.2577/0.2577, allocations: 40.01 MB / 340.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004748/0.0004749, allocations: 10.56 kB / 406.3 MB, free: 52.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1069, allocations: 54.87 MB / 461.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5619/0.6688, allocations: 99.62 MB / 0.5476 GB, free: 21.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.6692, allocations: 67.42 kB / 0.5477 GB, free: 21.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2195/0.8887, allocations: 47.93 MB / 0.5945 GB, free: 9.637 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.8887, allocations: 0 / 0.5945 GB, free: 9.637 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002008/0.8889, allocations: 46.75 kB / 0.5945 GB, free: 9.633 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01504/0.904, allocations: 2.53 MB / 0.597 GB, free: 8.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.9041, allocations: 7.531 kB / 0.597 GB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001604/0.9057, allocations: 313.8 kB / 0.5973 GB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002639/0.9084, allocations: 297.6 kB / 0.5976 GB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004561/0.913, allocations: 0.9835 MB / 0.5985 GB, free: 7.336 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001784/0.9148, allocations: 468.2 kB / 0.599 GB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.9162, allocations: 240.6 kB / 0.5992 GB, free: 7.051 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0139/0.9302, allocations: 2.583 MB / 0.6017 GB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003299/0.9305, allocations: 34.39 kB / 0.6018 GB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008866/0.9314, allocations: 89.27 kB / 0.6019 GB, free: 6.211 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.156e-05/0.9315, allocations: 50.44 kB / 0.6019 GB, free: 6.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/0.9471, allocations: 2.673 MB / 0.6045 GB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02494/0.9721, allocations: 6.77 MB / 0.6111 GB, free: 172 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009347/0.9815, allocations: 2.513 MB / 0.6136 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006824/0.9822, allocations: 126.8 kB / 0.6137 GB, free: 13.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.184e-05/0.9823, allocations: 68.38 kB / 0.6138 GB, free: 13.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 6.722e-06/0.9824, allocations: 0 / 0.6138 GB, free: 13.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.06405/1.046, allocations: 14.54 MB / 0.628 GB, free: 14.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002225/1.047, allocations: 321.3 kB / 0.6283 GB, free: 14.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002422/1.049, allocations: 0.9299 MB / 0.6292 GB, free: 13.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009411/1.05, allocations: 93.7 kB / 0.6293 GB, free: 13.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009407/1.051, allocations: 0.6867 MB / 0.63 GB, free: 12.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002297/1.053, allocations: 1.129 MB / 0.6311 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007051/1.054, allocations: 71.98 kB / 0.6311 GB, free: 11.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003777/1.055, allocations: 420.7 kB / 0.6315 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005302/1.06, allocations: 1.096 MB / 0.6326 GB, free: 10.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005927/1.066, allocations: 1.511 MB / 0.6341 GB, free: 8.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005061/1.071, allocations: 1.124 MB / 0.6352 GB, free: 7.258 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.961e-05/1.071, allocations: 0 / 0.6352 GB, free: 7.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01528/1.086, allocations: 3.493 MB / 0.6386 GB, free: 3.734 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/1.086, allocations: 8 kB / 0.6386 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.024e-05/1.086, allocations: 12.12 kB / 0.6386 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004327/1.091, allocations: 1.049 MB / 0.6396 GB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006224/1.097, allocations: 0.7529 MB / 0.6404 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/1.113, allocations: 7.543 MB / 0.6477 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004439/1.118, allocations: 295.9 kB / 0.648 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009353/1.119, allocations: 132 kB / 0.6481 GB, free: 9.609 MB / 426.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.002197/1.121, allocations: 477.1 kB / 0.6486 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009313/1.122, allocations: 213.4 kB / 0.6488 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/1.133, allocations: 2.503 MB / 0.6512 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.059e-05/1.133, allocations: 43.89 kB / 0.6513 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.471e-05/1.133, allocations: 4 kB / 0.6513 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.551e-05/1.133, allocations: 19.92 kB / 0.6513 GB, free: 6.32 MB / 426.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.03082/1.164, allocations: 7.776 MB / 0.6589 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-05/1.164, allocations: 12 kB / 0.6589 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006789/1.171, allocations: 0.7337 MB / 0.6596 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004437/1.175, allocations: 1.04 MB / 0.6606 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008683/1.176, allocations: 103.9 kB / 0.6607 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/1.194, allocations: 10.18 MB / 0.6707 GB, free: 1.734 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.221e-05/1.195, allocations: 15.92 kB / 0.6707 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02514/1.22, allocations: 6.517 MB / 0.6771 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002718/1.222, allocations: 0.5294 MB / 0.6776 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/1.224, allocations: 87.94 kB / 0.6777 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004691/1.228, allocations: 303.8 kB / 0.6779 GB, free: 9.945 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002084/1.231, allocations: 457 kB / 0.6784 GB, free: 9.496 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005105/1.231, allocations: 127.9 kB / 0.6785 GB, free: 9.371 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001936/1.233, allocations: 0.7189 MB / 0.6792 GB, free: 8.648 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.233, allocations: 0 / 0.6792 GB, free: 8.648 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00457/1.238, allocations: 0.7266 MB / 0.6799 GB, free: 7.922 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) * 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.026/1.264, allocations: 9.609 MB / 0.6893 GB, free: 13.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01389/1.278, allocations: 3.511 MB / 0.6927 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/1.278, allocations: 4 kB / 0.6927 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01169/1.289, allocations: 2.921 MB / 0.6956 GB, free: 7.414 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003784/1.293, allocations: 310.6 kB / 0.6959 GB, free: 7.117 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3891/1.682, allocations: 22.19 MB / 0.7175 GB, free: 143.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002382/1.685, allocations: 1.596 MB / 0.7191 GB, free: 143.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002586/1.687, allocations: 306.9 kB / 0.7194 GB, free: 143.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002594/1.69, allocations: 0.8632 MB / 0.7202 GB, free: 143.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/1.69, allocations: 0 / 0.7202 GB, free: 143.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1586/1.849, allocations: 53.45 MB / 0.7724 GB, free: 128.7 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002392/1.849, allocations: 205.3 kB / 0.7726 GB, free: 128.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.278/7.127, allocations: 3.938 kB / 0.7726 GB, free: 128.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat