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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001799/0.001799, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002291/0.002291, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2351/0.2351, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB 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.003291/0.003291, allocations: 80.61 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1475, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006378/0.1539, allocations: 4.11 MB / 484.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003063/0.157, allocations: 1.477 MB / 485.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003108/0.1573, allocations: 15.94 kB / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004596/0.1578, allocations: 138.7 kB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000637/0.1585, allocations: 273.9 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007494/0.1592, allocations: 355.4 kB / 486.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.1604, allocations: 1.081 MB / 487.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003415/0.1607, allocations: 194.4 kB / 487.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006474/0.1614, allocations: 478.5 kB / 488.3 MB, free: 13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00068/0.1621, allocations: 0.5098 MB / 488.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.1622, allocations: 84 kB / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.1625, allocations: 140 kB / 489 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002655/0.1628, allocations: 227.3 kB / 489.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004113/0.1632, allocations: 425.9 kB / 489.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.1643, allocations: 1.013 MB / 490.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1643, allocations: 0 / 490.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1644, allocations: 0 / 490.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1644, allocations: 0 / 490.7 MB, free: 10.62 MB / 366.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.00249/0.1669, allocations: 1.157 MB / 491.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.1669, allocations: 12.03 kB / 491.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.1671, allocations: 106.7 kB / 491.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005367/0.1677, allocations: 119.9 kB / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007513/0.1684, allocations: 473.4 kB / 492.5 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.1685, allocations: 53.69 kB / 492.6 MB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.1687, allocations: 71.84 kB / 492.6 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.1703, allocations: 0.8145 MB / 493.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.1704, allocations: 4 kB / 493.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.067e-05/0.1705, allocations: 32 kB / 493.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.1705, allocations: 16 kB / 493.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.1722, allocations: 0.7374 MB / 494.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.1771, allocations: 2.601 MB / 496.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.1787, allocations: 0.6752 MB / 497.5 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000778/0.1795, allocations: 371.3 kB / 497.9 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.82e-05/0.1795, allocations: 8 kB / 497.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1796, allocations: 46.5 kB / 497.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.575e-06/0.1796, allocations: 4 kB / 497.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.00853/0.1881, allocations: 3.527 MB / 0.4897 GB, free: 15.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1883, allocations: 140.5 kB / 0.4899 GB, free: 15.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/0.1889, allocations: 473.9 kB / 0.4903 GB, free: 14.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.454e-05/0.189, allocations: 53.69 kB / 0.4904 GB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.1893, allocations: 288.5 kB / 0.4906 GB, free: 14.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.1896, allocations: 288 kB / 0.4909 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003239/0.1899, allocations: 174.5 kB / 0.4911 GB, free: 13.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1901, allocations: 374.8 kB / 0.4914 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008524/0.191, allocations: 357.8 kB / 0.4918 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009612/0.192, allocations: 0.5177 MB / 0.4923 GB, free: 12.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.1934, allocations: 0.7003 MB / 0.493 GB, free: 11.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1934, allocations: 0 / 0.493 GB, free: 11.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002908/0.1963, allocations: 1.212 MB / 0.4941 GB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1964, allocations: 8 kB / 0.4942 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1964, allocations: 4.344 kB / 0.4942 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.1978, allocations: 0.5811 MB / 0.4947 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.1984, allocations: 143.7 kB / 0.4949 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/0.203, allocations: 3.846 MB / 0.4986 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.2041, allocations: 147.9 kB / 0.4988 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.2043, allocations: 35.98 kB / 0.4988 GB, free: 5.527 MB / 382.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.0005114/0.2048, allocations: 230 kB / 0.499 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/0.2051, allocations: 67.16 kB / 0.4991 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.2053, allocations: 92.83 kB / 0.4992 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.2053, allocations: 12.03 kB / 0.4992 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.2054, allocations: 3.938 kB / 0.4992 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.2054, allocations: 7.984 kB / 0.4992 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004909/0.2103, allocations: 2.162 MB / 0.5013 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.2103, allocations: 0 / 0.5013 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.2109, allocations: 115.8 kB / 0.5014 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.2123, allocations: 0.5384 MB / 0.5019 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.2125, allocations: 39.89 kB / 0.502 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.202/0.4145, allocations: 3.64 MB / 0.5055 GB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4146, allocations: 3.375 kB / 0.5055 GB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.4181, allocations: 1.723 MB / 0.5072 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003978/0.4186, allocations: 226.1 kB / 0.5074 GB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.4187, allocations: 28.59 kB / 0.5075 GB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.4196, allocations: 122.8 kB / 0.5076 GB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00049/0.4201, allocations: 188.3 kB / 0.5078 GB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.41e-05/0.4202, allocations: 41.09 kB / 0.5078 GB, free: 39.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000385/0.4206, allocations: 326.7 kB / 0.5081 GB, free: 39.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4206, allocations: 0 / 0.5081 GB, free: 39.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000848/0.4215, allocations: 211.2 kB / 0.5083 GB, free: 39.27 MB / 382.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.004564/0.426, allocations: 2.563 MB / 0.5108 GB, free: 37.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002404/0.4285, allocations: 1.067 MB / 0.5118 GB, free: 37.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4285, allocations: 0 / 0.5118 GB, free: 37.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.4298, allocations: 0.6364 MB / 0.5125 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.4311, allocations: 140 kB / 0.5126 GB, free: 37.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.4449, allocations: 7.48 MB / 0.5199 GB, free: 32.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005648/0.4455, allocations: 0.9281 MB / 0.5208 GB, free: 32.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003835/0.4459, allocations: 80.12 kB / 0.5209 GB, free: 32.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.4462, allocations: 240 kB / 0.5211 GB, free: 31.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.193e-06/0.4463, allocations: 0 / 0.5211 GB, free: 31.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05048/0.4967, allocations: 21.71 MB / 0.5423 GB, free: 17.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.71, allocations: 4 kB / 0.5423 GB, free: 17.07 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe 2>&1)