Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 170.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008712/0.0008714, allocations: 92.39 kB / 281.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1818/0.1818, allocations: 44.15 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.984e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1412, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.6138, allocations: 92.03 MB / 0.5846 GB, free: 4.391 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.6141, allocations: 67.97 kB / 0.5847 GB, free: 4.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03627/0.6503, allocations: 12.06 MB / 0.5965 GB, free: 8.242 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6504, allocations: 0 / 0.5965 GB, free: 8.242 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.543e-05/0.6505, allocations: 12 kB / 0.5965 GB, free: 8.23 MB / 410.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.001993/0.6525, allocations: 0.9311 MB / 0.5974 GB, free: 7.254 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.6525, allocations: 15.97 kB / 0.5974 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.6527, allocations: 83.06 kB / 0.5975 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005964/0.6533, allocations: 410.8 kB / 0.5979 GB, free: 6.711 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.6534, allocations: 23.98 kB / 0.5979 GB, free: 6.688 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.6535, allocations: 43.98 kB / 0.5979 GB, free: 6.645 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001003/0.6545, allocations: 0.5688 MB / 0.5985 GB, free: 6.074 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.6556, allocations: 0.6593 MB / 0.5991 GB, free: 5.383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.6557, allocations: 11.83 kB / 0.5992 GB, free: 5.371 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.6558, allocations: 4 kB / 0.5992 GB, free: 5.367 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.6558, allocations: 12 kB / 0.5992 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.6601, allocations: 2.481 MB / 0.6016 GB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009995/0.6612, allocations: 0.5336 MB / 0.6021 GB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.6617, allocations: 307.4 kB / 0.6024 GB, free: 1.883 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.514e-05/0.6618, allocations: 12 kB / 0.6024 GB, free: 1.871 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.6618, allocations: 46.5 kB / 0.6025 GB, free: 1.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 4.198e-06/0.6618, allocations: 0 / 0.6025 GB, free: 1.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.004621/0.6664, allocations: 2.327 MB / 0.6047 GB, free: 15.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.6665, allocations: 136.5 kB / 0.6049 GB, free: 15.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.667, allocations: 305.1 kB / 0.6052 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.768e-05/0.667, allocations: 45.62 kB / 0.6052 GB, free: 14.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.6673, allocations: 256.7 kB / 0.6054 GB, free: 14.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.6675, allocations: 284 kB / 0.6057 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.6676, allocations: 3.984 kB / 0.6057 GB, free: 14.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.6678, allocations: 362.8 kB / 0.6061 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/0.6683, allocations: 298.6 kB / 0.6063 GB, free: 13.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006289/0.6689, allocations: 455.6 kB / 0.6068 GB, free: 13.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006439/0.6696, allocations: 265.7 kB / 0.607 GB, free: 12.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.6696, allocations: 4 kB / 0.607 GB, free: 12.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002417/0.672, allocations: 1.053 MB / 0.6081 GB, free: 11.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.6721, allocations: 8.344 kB / 0.6081 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.887e-05/0.6721, allocations: 8 kB / 0.6081 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.6734, allocations: 0.585 MB / 0.6087 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.674, allocations: 151.8 kB / 0.6088 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002429/0.6764, allocations: 2.647 MB / 0.6114 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.6774, allocations: 183.8 kB / 0.6116 GB, free: 8.066 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.6775, allocations: 43.98 kB / 0.6116 GB, free: 8.023 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0003318/0.6779, allocations: 130.6 kB / 0.6117 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002054/0.6799, allocations: 0.8775 MB / 0.6126 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.6801, allocations: 59.25 kB / 0.6126 GB, free: 6.938 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.6823, allocations: 0.984 MB / 0.6136 GB, free: 5.926 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.6823, allocations: 8 kB / 0.6136 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.6823, allocations: 0 / 0.6136 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.6823, allocations: 7.984 kB / 0.6136 GB, free: 5.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.6858, allocations: 1.892 MB / 0.6155 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.6858, allocations: 4 kB / 0.6155 GB, free: 3.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.6864, allocations: 119.9 kB / 0.6156 GB, free: 3.832 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.6874, allocations: 0.5537 MB / 0.6161 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.451e-05/0.6875, allocations: 31.91 kB / 0.6162 GB, free: 3.234 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.69, allocations: 2.585 MB / 0.6187 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.69, allocations: 4.031 kB / 0.6187 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.6929, allocations: 1.591 MB / 0.6202 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004419/0.6933, allocations: 216.2 kB / 0.6204 GB, free: 14.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.6935, allocations: 16 kB / 0.6205 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008918/0.6944, allocations: 163.8 kB / 0.6206 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003422/0.6947, allocations: 171.6 kB / 0.6208 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.6948, allocations: 39.95 kB / 0.6208 GB, free: 14.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002863/0.6951, allocations: 243 kB / 0.621 GB, free: 14.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6951, allocations: 0 / 0.621 GB, free: 14.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008603/0.696, allocations: 171.9 kB / 0.6212 GB, free: 13.86 MB / 442.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) * 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.003085/0.6991, allocations: 2.53 MB / 0.6237 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.7008, allocations: 0.8714 MB / 0.6245 GB, free: 10.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.7008, allocations: 0 / 0.6245 GB, free: 10.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009298/0.7017, allocations: 453 kB / 0.625 GB, free: 9.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008247/0.7026, allocations: 84.03 kB / 0.625 GB, free: 9.852 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/0.708, allocations: 2.081 MB / 0.6271 GB, free: 7.707 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005578/0.7086, allocations: 0.9186 MB / 0.628 GB, free: 6.758 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003104/0.7089, allocations: 60.81 kB / 0.628 GB, free: 6.699 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.7092, allocations: 207.4 kB / 0.6282 GB, free: 6.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/0.7092, allocations: 0 / 0.6282 GB, free: 6.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04466/0.7539, allocations: 17.48 MB / 0.6453 GB, free: 5.098 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/0.7542, allocations: 133.5 kB / 0.6454 GB, free: 4.898 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/3.281, allocations: 4 kB / 0.6454 GB, free: 4.895 MB / 458.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat