Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01016/0.01016, allocations: 168.4 kB / 15.11 MB, free: 5.934 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.851/1.851, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.002064/0.002064, allocations: 107 kB / 226.2 MB, free: 10.1 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.4818/0.4818, allocations: 38.05 MB / 303.7 MB, free: 42.35 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005069/0.000507, allocations: 8 kB / 363 MB, free: 5.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 48.71 MB / 411.7 MB, free: 4.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5531, allocations: 80.1 MB / 491.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.5535, allocations: 65.59 kB / 491.8 MB, free: 7.711 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05342/0.6069, allocations: 11.54 MB / 0.4916 GB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.919e-06/0.607, allocations: 0 / 0.4916 GB, free: 13.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.698e-05/0.607, allocations: 19.94 kB / 0.4916 GB, free: 13.8 MB / 346.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.003624/0.6107, allocations: 1.013 MB / 0.4926 GB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.6107, allocations: 12.03 kB / 0.4926 GB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002744/0.611, allocations: 104.4 kB / 0.4927 GB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.6113, allocations: 86.23 kB / 0.4928 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008734/0.6122, allocations: 416.5 kB / 0.4932 GB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-05/0.6123, allocations: 42.62 kB / 0.4932 GB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.6125, allocations: 66.09 kB / 0.4933 GB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002683/0.6152, allocations: 0.8327 MB / 0.4941 GB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.537e-05/0.6153, allocations: 8.922 kB / 0.4941 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.6155, allocations: 28.5 kB / 0.4941 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.6155, allocations: 16 kB / 0.4942 GB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003045/0.6186, allocations: 0.7879 MB / 0.4949 GB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007453/0.6261, allocations: 2.604 MB / 0.4975 GB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.6285, allocations: 0.6413 MB / 0.4981 GB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.6286, allocations: 8.375 kB / 0.4981 GB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.6287, allocations: 49.62 kB / 0.4981 GB, free: 8.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.447e-06/0.6287, allocations: 0 / 0.4981 GB, free: 8.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.01447/0.6432, allocations: 3.854 MB / 0.5019 GB, free: 4.441 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.6433, allocations: 136.5 kB / 0.502 GB, free: 4.277 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.6441, allocations: 368.7 kB / 0.5024 GB, free: 3.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002431/0.6443, allocations: 57.56 kB / 0.5024 GB, free: 3.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.6446, allocations: 282.9 kB / 0.5027 GB, free: 3.703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003879/0.645, allocations: 261 kB / 0.503 GB, free: 3.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.6451, allocations: 17.19 kB / 0.503 GB, free: 3.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.6454, allocations: 377.2 kB / 0.5033 GB, free: 3.133 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.6468, allocations: 395.4 kB / 0.5037 GB, free: 2.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.6485, allocations: 0.5524 MB / 0.5043 GB, free: 2.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.6498, allocations: 349.1 kB / 0.5046 GB, free: 2.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.6499, allocations: 4 kB / 0.5046 GB, free: 2.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005159/0.655, allocations: 1.39 MB / 0.506 GB, free: 1.105 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.6551, allocations: 4 kB / 0.506 GB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.6551, allocations: 4 kB / 0.506 GB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/0.6577, allocations: 0.8015 MB / 0.5067 GB, free: 448 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.6589, allocations: 163.2 kB / 0.5069 GB, free: 292 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.6627, allocations: 2.671 MB / 0.5095 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.6647, allocations: 194.3 kB / 0.5097 GB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/0.665, allocations: 47.3 kB / 0.5097 GB, free: 13.53 MB / 362.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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006055/0.6656, allocations: 205.5 kB / 0.5099 GB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.6659, allocations: 67.2 kB / 0.51 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.6662, allocations: 96.2 kB / 0.5101 GB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.6662, allocations: 8 kB / 0.5101 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.6662, allocations: 3.938 kB / 0.5101 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.6662, allocations: 3.984 kB / 0.5101 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007582/0.6738, allocations: 2.344 MB / 0.5124 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.6739, allocations: 0 / 0.5124 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.6751, allocations: 119 kB / 0.5125 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/0.6775, allocations: 0.7714 MB / 0.5133 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/0.6778, allocations: 27.97 kB / 0.5133 GB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003741/0.6815, allocations: 2.631 MB / 0.5159 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.6816, allocations: 0 / 0.5159 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006506/0.6881, allocations: 1.952 MB / 0.5178 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006558/0.6888, allocations: 220.2 kB / 0.518 GB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.6891, allocations: 28 kB / 0.518 GB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/0.6909, allocations: 175.8 kB / 0.5182 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006394/0.6916, allocations: 171.6 kB / 0.5183 GB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.6917, allocations: 39.95 kB / 0.5184 GB, free: 5.023 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000547/0.6923, allocations: 287.1 kB / 0.5186 GB, free: 4.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6923, allocations: 3.938 kB / 0.5186 GB, free: 4.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001272/0.6936, allocations: 192 kB / 0.5188 GB, free: 4.551 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.006914/0.7005, allocations: 2.757 MB / 0.5215 GB, free: 1.746 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003693/0.7043, allocations: 0.9469 MB / 0.5224 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.7043, allocations: 0 / 0.5224 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.7064, allocations: 0.5074 MB / 0.5229 GB, free: 300 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.7077, allocations: 86.69 kB / 0.523 GB, free: 212 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/0.7269, allocations: 8.298 MB / 0.5311 GB, free: 7.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006532/0.7276, allocations: 0.9221 MB / 0.532 GB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005631/0.7282, allocations: 64.81 kB / 0.5321 GB, free: 6.734 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005137/0.7287, allocations: 215.3 kB / 0.5323 GB, free: 6.527 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7288, allocations: 0 / 0.5323 GB, free: 6.527 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06868/0.7974, allocations: 17.79 MB / 0.5497 GB, free: 4.809 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003284/0.7978, allocations: 188.7 kB / 0.5498 GB, free: 4.574 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.353/4.151, allocations: 0 / 0.5498 GB, free: 4.574 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat