Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01011/0.01011, allocations: 165.4 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.76/1.76, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001919/0.001919, allocations: 115 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4743/0.4743, allocations: 38.06 MB / 303.7 MB, free: 42.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004752, allocations: 12 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1117, allocations: 48.71 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.523/0.6347, allocations: 91.98 MB / 0.4919 GB, free: 11.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.6351, allocations: 63.03 kB / 0.4919 GB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.257/0.8921, allocations: 44.4 MB / 0.5353 GB, free: 4.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.8921, allocations: 0 / 0.5353 GB, free: 4.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001497/0.8923, allocations: 43.98 kB / 0.5353 GB, free: 4.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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.01072/0.903, allocations: 2.385 MB / 0.5376 GB, free: 2.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.9031, allocations: 16.02 kB / 0.5377 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001039/0.9042, allocations: 291 kB / 0.5379 GB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.9056, allocations: 277 kB / 0.5382 GB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003114/0.9088, allocations: 0.9441 MB / 0.5391 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001038/0.9099, allocations: 402.1 kB / 0.5395 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008456/0.9107, allocations: 231.8 kB / 0.5397 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009046/0.9198, allocations: 2.41 MB / 0.5421 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001792/0.92, allocations: 31.7 kB / 0.5421 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003558/0.9204, allocations: 80 kB / 0.5422 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.91e-05/0.9205, allocations: 48 kB / 0.5422 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.9313, allocations: 2.505 MB / 0.5447 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02191/0.9533, allocations: 6.165 MB / 0.5507 GB, free: 4.531 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008163/0.9615, allocations: 2.309 MB / 0.553 GB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003958/0.9619, allocations: 38.27 kB / 0.553 GB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/0.962, allocations: 64.72 kB / 0.5531 GB, free: 2.012 MB / 394.7 MB Notification: Performance of pre-optimization done (n=260): time 5.42e-06/0.962, allocations: 0 / 0.5531 GB, free: 2.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=315): time 0.04916/1.011, allocations: 12.91 MB / 0.5657 GB, free: 4.625 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/1.011, allocations: 239.5 kB / 0.5659 GB, free: 4.344 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002317/1.014, allocations: 0.9209 MB / 0.5668 GB, free: 3.414 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007343/1.015, allocations: 93.7 kB / 0.5669 GB, free: 3.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000765/1.015, allocations: 0.655 MB / 0.5675 GB, free: 2.652 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001587/1.017, allocations: 1.055 MB / 0.5685 GB, free: 1.582 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003715/1.017, allocations: 60 kB / 0.5686 GB, free: 1.523 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000282/1.018, allocations: 428.1 kB / 0.569 GB, free: 1.098 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004481/1.022, allocations: 1.064 MB / 0.5701 GB, free: 32 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005307/1.027, allocations: 1.446 MB / 0.5715 GB, free: 14.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004612/1.032, allocations: 1.091 MB / 0.5725 GB, free: 13.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/1.032, allocations: 0 / 0.5725 GB, free: 13.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.02113/1.053, allocations: 3.573 MB / 0.576 GB, free: 9.781 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/1.053, allocations: 15.92 kB / 0.576 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.445e-05/1.053, allocations: 8 kB / 0.576 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00713/1.061, allocations: 1.229 MB / 0.5772 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008253/1.069, allocations: 0.6709 MB / 0.5779 GB, free: 7.844 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3542/1.423, allocations: 7.63 MB / 0.5854 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005363/1.429, allocations: 272.7 kB / 0.5856 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000767/1.429, allocations: 122.2 kB / 0.5857 GB, free: 102.4 MB / 426.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.002229/1.432, allocations: 461.6 kB / 0.5862 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.433, allocations: 203.7 kB / 0.5864 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003427/1.436, allocations: 0.6962 MB / 0.587 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.374e-05/1.436, allocations: 32.45 kB / 0.5871 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.893e-05/1.436, allocations: 7.375 kB / 0.5871 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.123e-05/1.437, allocations: 16.34 kB / 0.5871 GB, free: 102.2 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.02762/1.464, allocations: 7.477 MB / 0.5944 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.293e-05/1.464, allocations: 6.281 kB / 0.5944 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005446/1.47, allocations: 0.6336 MB / 0.595 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004503/1.474, allocations: 1.206 MB / 0.5962 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007231/1.475, allocations: 103.8 kB / 0.5963 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01548/1.491, allocations: 10.27 MB / 0.6063 GB, free: 94.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/1.491, allocations: 10.16 kB / 0.6063 GB, free: 94.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/1.508, allocations: 6.047 MB / 0.6122 GB, free: 92.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/1.51, allocations: 0.5192 MB / 0.6128 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005356/1.511, allocations: 84.3 kB / 0.6128 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003187/1.514, allocations: 264.7 kB / 0.6131 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/1.515, allocations: 428.7 kB / 0.6135 GB, free: 92.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003121/1.515, allocations: 122.1 kB / 0.6136 GB, free: 92.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001464/1.517, allocations: 0.7139 MB / 0.6143 GB, free: 92.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.517, allocations: 0 / 0.6143 GB, free: 92.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00327/1.52, allocations: 0.7135 MB / 0.615 GB, free: 92.52 MB / 426.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.01879/1.539, allocations: 8.811 MB / 0.6236 GB, free: 87.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01072/1.55, allocations: 3.271 MB / 0.6268 GB, free: 86.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.55, allocations: 0 / 0.6268 GB, free: 86.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008584/1.558, allocations: 2.675 MB / 0.6294 GB, free: 84.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/1.561, allocations: 287.2 kB / 0.6297 GB, free: 84.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06073/1.622, allocations: 20.94 MB / 0.6501 GB, free: 70.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001689/1.624, allocations: 1.546 MB / 0.6517 GB, free: 69.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00239/1.626, allocations: 301.2 kB / 0.6519 GB, free: 69.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/1.629, allocations: 0.8078 MB / 0.6527 GB, free: 69.29 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/1.629, allocations: 0 / 0.6527 GB, free: 69.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1286/1.757, allocations: 50.55 MB / 0.7021 GB, free: 39.53 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002758/1.758, allocations: 197.4 kB / 0.7023 GB, free: 39.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.076/6.834, allocations: 3.938 kB / 0.7023 GB, free: 39.29 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat