Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestFriction",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.01034/0.01034, allocations: 176 kB / 15.12 MB, free: 5.93 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.893/1.893, allocations: 194.5 MB / 210.3 MB, free: 7.602 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.002103/0.002102, allocations: 120.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.2885/0.2885, allocations: 40 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009069/0.000907, allocations: 10.62 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09946/0.1004, allocations: 54.88 MB / 461.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5043/0.6048, allocations: 86.5 MB / 0.5348 GB, free: 27.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.6051, allocations: 63.03 kB / 0.5349 GB, free: 27.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05989/0.665, allocations: 11.77 MB / 0.5464 GB, free: 26 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.6651, allocations: 0.5312 kB / 0.5464 GB, free: 26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001003/0.6652, allocations: 13.38 kB / 0.5464 GB, free: 26 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004506/0.6697, allocations: 1.009 MB / 0.5474 GB, free: 25.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.6698, allocations: 9.656 kB / 0.5474 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004678/0.6703, allocations: 99.59 kB / 0.5475 GB, free: 25.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000318/0.6706, allocations: 83.06 kB / 0.5475 GB, free: 25.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.6717, allocations: 396.4 kB / 0.5479 GB, free: 25.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.595e-05/0.6718, allocations: 52.97 kB / 0.548 GB, free: 25.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/0.6721, allocations: 67.2 kB / 0.548 GB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/0.6752, allocations: 0.7943 MB / 0.5488 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.523e-05/0.6753, allocations: 7.156 kB / 0.5488 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.6754, allocations: 23.38 kB / 0.5488 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/0.6755, allocations: 19.09 kB / 0.5488 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.6785, allocations: 0.7206 MB / 0.5496 GB, free: 24.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008254/0.6868, allocations: 2.579 MB / 0.5521 GB, free: 23.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.6891, allocations: 0.6254 MB / 0.5527 GB, free: 23.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002336/0.6894, allocations: 17.95 kB / 0.5527 GB, free: 23.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.6895, allocations: 55.95 kB / 0.5528 GB, free: 23.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 4.548e-06/0.6895, allocations: 0 / 0.5528 GB, free: 23.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.01399/0.7035, allocations: 3.696 MB / 0.5564 GB, free: 21.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.7036, allocations: 136.3 kB / 0.5565 GB, free: 21.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.7041, allocations: 322.3 kB / 0.5568 GB, free: 21.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003231/0.7045, allocations: 51.38 kB / 0.5568 GB, free: 21.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.7047, allocations: 263.9 kB / 0.5571 GB, free: 21.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004107/0.7051, allocations: 289.2 kB / 0.5574 GB, free: 21.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.7053, allocations: 18.47 kB / 0.5574 GB, free: 21.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.7054, allocations: 370.1 kB / 0.5577 GB, free: 20.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.7069, allocations: 359 kB / 0.5581 GB, free: 20.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.7085, allocations: 0.5231 MB / 0.5586 GB, free: 20.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.7099, allocations: 309.6 kB / 0.5589 GB, free: 20.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.7099, allocations: 0 / 0.5589 GB, free: 20.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005142/0.7151, allocations: 1.226 MB / 0.5601 GB, free: 20.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.7152, allocations: 14.16 kB / 0.5601 GB, free: 20.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.721e-05/0.7152, allocations: 15.38 kB / 0.5601 GB, free: 20.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001988/0.7172, allocations: 0.6137 MB / 0.5607 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.7184, allocations: 143.5 kB / 0.5609 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.7216, allocations: 2.578 MB / 0.5634 GB, free: 18.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/0.7237, allocations: 194.5 kB / 0.5636 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003042/0.7241, allocations: 42.97 kB / 0.5636 GB, free: 18.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($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,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0007569/0.7249, allocations: 214.2 kB / 0.5638 GB, free: 18.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003986/0.7253, allocations: 62.53 kB / 0.5639 GB, free: 18.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004946/0.7302, allocations: 1.141 MB / 0.565 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/0.7303, allocations: 9.031 kB / 0.565 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.7304, allocations: 5.469 kB / 0.565 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-05/0.7304, allocations: 4.594 kB / 0.565 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007183/0.7376, allocations: 2.113 MB / 0.5671 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.7377, allocations: 3.906 kB / 0.5671 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.7389, allocations: 129 kB / 0.5672 GB, free: 17.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/0.7407, allocations: 0.5641 MB / 0.5677 GB, free: 17.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/0.741, allocations: 35.41 kB / 0.5678 GB, free: 17.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003808/0.7448, allocations: 2.528 MB / 0.5702 GB, free: 31.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.7449, allocations: 3.906 kB / 0.5702 GB, free: 31.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005861/0.7508, allocations: 1.775 MB / 0.572 GB, free: 30.69 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007262/0.7516, allocations: 210.9 kB / 0.5722 GB, free: 30.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/0.7518, allocations: 33.91 kB / 0.5722 GB, free: 30.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/0.7537, allocations: 184.7 kB / 0.5724 GB, free: 30.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006842/0.7544, allocations: 171.3 kB / 0.5726 GB, free: 30.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.7546, allocations: 43.64 kB / 0.5726 GB, free: 30.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004959/0.7551, allocations: 261.3 kB / 0.5728 GB, free: 30.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.22e-07/0.7551, allocations: 0 / 0.5728 GB, free: 30.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001473/0.7566, allocations: 196.8 kB / 0.573 GB, free: 30.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006618/0.7633, allocations: 2.728 MB / 0.5757 GB, free: 28.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003743/0.7671, allocations: 1.011 MB / 0.5767 GB, free: 28.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.7671, allocations: 0 / 0.5767 GB, free: 28.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002285/0.7694, allocations: 0.5268 MB / 0.5772 GB, free: 28.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.7709, allocations: 96.11 kB / 0.5773 GB, free: 28.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/0.7897, allocations: 7.97 MB / 0.5851 GB, free: 24.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.7904, allocations: 0.9288 MB / 0.586 GB, free: 23.33 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005468/0.791, allocations: 53.48 kB / 0.586 GB, free: 23.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/0.7914, allocations: 214 kB / 0.5862 GB, free: 23.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7914, allocations: 3.938 kB / 0.5862 GB, free: 23.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05535/0.8468, allocations: 18.27 MB / 0.6041 GB, free: 15.45 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003309/0.8472, allocations: 196.6 kB / 0.6043 GB, free: 15.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.359/4.206, allocations: 0 / 0.6043 GB, free: 15.21 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat