Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.615/1.615, allocations: 230.5 MB / 254.7 MB, free: 14.84 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2558/0.2558, allocations: 46.92 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002507/0.002507, allocations: 83.86 kB / 0.4917 GB, free: 7.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1429, allocations: 66.04 MB / 0.5561 GB, free: 5.691 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006571/0.1495, allocations: 4.133 MB / 0.5602 GB, free: 1.527 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003454/0.1529, allocations: 1.485 MB / 0.5616 GB, free: 36 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006188/0.1535, allocations: 19.88 kB / 0.5616 GB, free: 16 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005668/0.1541, allocations: 138.8 kB / 0.5618 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009186/0.155, allocations: 281.9 kB / 0.562 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009468/0.156, allocations: 347.4 kB / 0.5624 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.1574, allocations: 1.096 MB / 0.5634 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.1577, allocations: 138.5 kB / 0.5636 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008558/0.1585, allocations: 490.5 kB / 0.564 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008578/0.1594, allocations: 0.5293 MB / 0.5646 GB, free: 13 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.1596, allocations: 80 kB / 0.5646 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.16, allocations: 140 kB / 0.5648 GB, free: 12.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.1602, allocations: 223.3 kB / 0.565 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004967/0.1607, allocations: 437.8 kB / 0.5654 GB, free: 12.14 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.1622, allocations: 1.023 MB / 0.5664 GB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1622, allocations: 0 / 0.5664 GB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1622, allocations: 0 / 0.5664 GB, free: 11.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.1622, allocations: 0 / 0.5664 GB, free: 11.11 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00299/0.1652, allocations: 1.191 MB / 0.5676 GB, free: 9.871 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.1653, allocations: 8.031 kB / 0.5676 GB, free: 9.863 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001661/0.1655, allocations: 102.7 kB / 0.5677 GB, free: 9.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005597/0.166, allocations: 128.3 kB / 0.5678 GB, free: 9.629 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009711/0.167, allocations: 493.8 kB / 0.5683 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.195e-05/0.1671, allocations: 53.44 kB / 0.5683 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1672, allocations: 63.95 kB / 0.5684 GB, free: 8.988 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.169, allocations: 0.8184 MB / 0.5692 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.1691, allocations: 8 kB / 0.5692 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/0.1692, allocations: 28 kB / 0.5692 GB, free: 8.102 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.1692, allocations: 12 kB / 0.5692 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.1711, allocations: 0.7394 MB / 0.5699 GB, free: 7.352 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.1763, allocations: 2.579 MB / 0.5725 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.1779, allocations: 0.6307 MB / 0.5731 GB, free: 3.984 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008949/0.1788, allocations: 350.4 kB / 0.5734 GB, free: 3.633 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.004e-05/0.1789, allocations: 19.92 kB / 0.5734 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.179, allocations: 46.81 kB / 0.5735 GB, free: 3.559 MB / 430.1 MB Notification: Performance of pre-optimization done (n=79): time 3.256e-06/0.179, allocations: 0 / 0.5735 GB, free: 3.559 MB / 430.1 MB Notification: Performance of matching and sorting (n=83): time 0.0093/0.1883, allocations: 3.548 MB / 0.5769 GB, free: 15.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.1884, allocations: 136.5 kB / 0.5771 GB, free: 15.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007244/0.1891, allocations: 477.9 kB / 0.5775 GB, free: 15.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.1893, allocations: 53.69 kB / 0.5776 GB, free: 15.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.1895, allocations: 285.1 kB / 0.5779 GB, free: 14.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000347/0.1899, allocations: 309.4 kB / 0.5781 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003688/0.1902, allocations: 174.5 kB / 0.5783 GB, free: 14.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.1905, allocations: 378.8 kB / 0.5787 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008428/0.1913, allocations: 357.8 kB / 0.579 GB, free: 13.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.1923, allocations: 0.5137 MB / 0.5795 GB, free: 12.99 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.1938, allocations: 0.6992 MB / 0.5802 GB, free: 12.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.1938, allocations: 0 / 0.5802 GB, free: 12.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003161/0.197, allocations: 1.186 MB / 0.5814 GB, free: 11.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.197, allocations: 8 kB / 0.5814 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.197, allocations: 4.344 kB / 0.5814 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/0.1985, allocations: 0.5889 MB / 0.5819 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.1991, allocations: 147.7 kB / 0.5821 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004496/0.2036, allocations: 3.842 MB / 0.5858 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.2047, allocations: 151.8 kB / 0.586 GB, free: 6.059 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.022e-05/0.2048, allocations: 35.98 kB / 0.586 GB, free: 6.023 MB / 446.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004163/0.2052, allocations: 220.2 kB / 0.5862 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.2055, allocations: 75.53 kB / 0.5863 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.2057, allocations: 96.83 kB / 0.5864 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.2057, allocations: 11.94 kB / 0.5864 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2057, allocations: 0 / 0.5864 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.2057, allocations: 11.92 kB / 0.5864 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.21, allocations: 2.139 MB / 0.5885 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.21, allocations: 4 kB / 0.5885 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006053/0.2106, allocations: 111.9 kB / 0.5886 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.2119, allocations: 0.5382 MB / 0.5891 GB, free: 2.734 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.212, allocations: 35.89 kB / 0.5892 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2728/0.4848, allocations: 3.64 MB / 0.5927 GB, free: 33.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4848, allocations: 3.5 kB / 0.5927 GB, free: 33.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.4885, allocations: 1.714 MB / 0.5944 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005264/0.489, allocations: 224 kB / 0.5946 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.4892, allocations: 32.44 kB / 0.5946 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009986/0.4902, allocations: 123.5 kB / 0.5948 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005578/0.4908, allocations: 195.2 kB / 0.595 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.449e-05/0.4908, allocations: 34.73 kB / 0.595 GB, free: 33.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004152/0.4913, allocations: 326.5 kB / 0.5953 GB, free: 32.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4913, allocations: 0 / 0.5953 GB, free: 32.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001012/0.4923, allocations: 212.3 kB / 0.5955 GB, free: 32.95 MB / 446.1 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005102/0.4974, allocations: 2.554 MB / 0.598 GB, free: 31.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.5002, allocations: 0.9859 MB / 0.599 GB, free: 31.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5002, allocations: 1 kB / 0.599 GB, free: 31.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.5018, allocations: 0.61 MB / 0.5996 GB, free: 31.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.503, allocations: 140.7 kB / 0.5997 GB, free: 31.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.5184, allocations: 7.374 MB / 0.6069 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.5191, allocations: 0.9244 MB / 0.6078 GB, free: 26.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000445/0.5195, allocations: 75.22 kB / 0.6079 GB, free: 26.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003452/0.5199, allocations: 242.6 kB / 0.6081 GB, free: 26.48 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5199, allocations: 0 / 0.6081 GB, free: 26.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06453/0.5844, allocations: 22.18 MB / 0.6298 GB, free: 14.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.07, allocations: 8.875 kB / 0.6298 GB, free: 14.7 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219124 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.471275649033487] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'inertia.phi', 'inertia.w', 'inertia1.phi', 'inertia1.w', 'inertia2.phi', 'inertia2.w', 'inertia5.phi', 'inertia5.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward', 'oneWayClutch.startForward', 'oneWayClutch.stuck'] 14.22576324408874 14.235985687 14.071406411 Calling exit ...