Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBraking.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.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestBraking",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.009759/0.009759, allocations: 173.7 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 2.187/2.187, 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.002927/0.002927, allocations: 116.6 kB / 255.6 MB, free: 10.24 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.2839/0.2839, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005375/0.0005376, allocations: 9.906 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1019, allocations: 54.87 MB / 461.1 MB, free: 3.223 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.2547, allocations: 82.58 MB / 0.531 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.255, allocations: 67.97 kB / 0.531 GB, free: 476 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3139/0.569, allocations: 4.159 MB / 0.5351 GB, free: 83.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5691, allocations: 1.062 kB / 0.5351 GB, free: 83.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.5691, allocations: 4.156 kB / 0.5351 GB, free: 83.31 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008006/0.5699, allocations: 476.9 kB / 0.5355 GB, free: 82.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.57, allocations: 17.28 kB / 0.5356 GB, free: 82.89 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.44e-05/0.57, allocations: 56.41 kB / 0.5356 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.315e-05/0.5701, allocations: 27.36 kB / 0.5356 GB, free: 82.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.5704, allocations: 223.7 kB / 0.5359 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.5704, allocations: 15.44 kB / 0.5359 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.5705, allocations: 27.33 kB / 0.5359 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005116/0.571, allocations: 216.3 kB / 0.5361 GB, free: 82.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.5711, allocations: 3.375 kB / 0.5361 GB, free: 82.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.5711, allocations: 12.44 kB / 0.5361 GB, free: 82.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.5711, allocations: 9.297 kB / 0.5361 GB, free: 82.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003396/0.5715, allocations: 121.5 kB / 0.5362 GB, free: 82.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.5734, allocations: 1.039 MB / 0.5373 GB, free: 81.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.5738, allocations: 159.2 kB / 0.5374 GB, free: 81.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.5738, allocations: 2.75 kB / 0.5374 GB, free: 81.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.5739, allocations: 40.86 kB / 0.5375 GB, free: 81.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.936e-06/0.5739, allocations: 0 / 0.5375 GB, free: 81.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004964/0.5744, allocations: 143.4 kB / 0.5376 GB, free: 81.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.5744, allocations: 135.1 kB / 0.5377 GB, free: 81.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.5747, allocations: 161.9 kB / 0.5379 GB, free: 81.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.5747, allocations: 30.73 kB / 0.5379 GB, free: 81.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.661e-05/0.5748, allocations: 166.4 kB / 0.5381 GB, free: 81.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.5749, allocations: 56.94 kB / 0.5381 GB, free: 81.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.486e-05/0.5749, allocations: 4.656 kB / 0.5381 GB, free: 81.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.802e-05/0.575, allocations: 330.9 kB / 0.5384 GB, free: 80.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.5751, allocations: 44.8 kB / 0.5385 GB, free: 80.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.5753, allocations: 151 kB / 0.5386 GB, free: 80.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.5755, allocations: 66.16 kB / 0.5387 GB, free: 80.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.5756, allocations: 1.469 kB / 0.5387 GB, free: 80.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005583/0.5761, allocations: 237.1 kB / 0.5389 GB, free: 80.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.5762, allocations: 7.766 kB / 0.5389 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5762, allocations: 7.531 kB / 0.5389 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.5762, allocations: 7.188 kB / 0.5389 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.5767, allocations: 60.56 kB / 0.539 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.5767, allocations: 10.61 kB / 0.539 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.5769, allocations: 20.62 kB / 0.539 GB, free: 80.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.5769, allocations: 16.88 kB / 0.539 GB, free: 80.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.5771, allocations: 142.5 kB / 0.5392 GB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.5773, allocations: 17.5 kB / 0.5392 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.5775, allocations: 80.75 kB / 0.5393 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.5775, allocations: 2.797 kB / 0.5393 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5775, allocations: 1.281 kB / 0.5393 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.5776, allocations: 1.844 kB / 0.5393 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006616/0.5782, allocations: 260.2 kB / 0.5395 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.5782, allocations: 0.9688 kB / 0.5395 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.5787, allocations: 47.2 kB / 0.5396 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/0.5787, allocations: 6.578 kB / 0.5396 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.5788, allocations: 5.484 kB / 0.5396 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.5788, allocations: 1.156 kB / 0.5396 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.5788, allocations: 6.578 kB / 0.5396 GB, free: 80.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004969/0.5793, allocations: 0.5134 MB / 0.5401 GB, free: 79.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.5794, allocations: 99.56 kB / 0.5402 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.5794, allocations: 7.312 kB / 0.5402 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002664/0.5797, allocations: 3.562 kB / 0.5402 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.64e-05/0.5798, allocations: 14.38 kB / 0.5402 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.5798, allocations: 10.22 kB / 0.5402 GB, free: 79.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.58, allocations: 127.7 kB / 0.5403 GB, free: 79.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.58, allocations: 0 / 0.5403 GB, free: 79.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006648/0.5806, allocations: 59.91 kB / 0.5404 GB, free: 79.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007296/0.5814, allocations: 1.273 MB / 0.5416 GB, free: 78.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003845/0.5818, allocations: 121.2 kB / 0.5418 GB, free: 78.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.5818, allocations: 3.938 kB / 0.5418 GB, free: 78.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.5819, allocations: 50.78 kB / 0.5418 GB, free: 78.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/0.5826, allocations: 40.92 kB / 0.5418 GB, free: 78.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.5866, allocations: 4.074 MB / 0.5458 GB, free: 74.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.587, allocations: 0.7473 MB / 0.5466 GB, free: 74.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.5872, allocations: 22.16 kB / 0.5466 GB, free: 74.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.5873, allocations: 62.02 kB / 0.5466 GB, free: 74.17 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5873, allocations: 1.438 kB / 0.5466 GB, free: 74.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03033/0.6177, allocations: 3.589 MB / 0.5501 GB, free: 72.98 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002541/0.618, allocations: 172.7 kB / 0.5503 GB, free: 72.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/3.074, allocations: 0 / 0.5503 GB, free: 72.73 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat