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.001346/0.001346, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2305/0.2305, allocations: 46.12 MB / 344.2 MB, free: 11.6 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.002304/0.002304, allocations: 79.91 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1201, allocations: 62.46 MB / 480.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006398/0.1266, allocations: 4.099 MB / 484.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.1296, allocations: 1.481 MB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.1299, allocations: 11.94 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.1304, allocations: 130.8 kB / 485.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006885/0.1311, allocations: 285.9 kB / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008739/0.132, allocations: 343.4 kB / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.1332, allocations: 1.093 MB / 487.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.1335, allocations: 194.5 kB / 487.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007289/0.1343, allocations: 474.6 kB / 488.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007121/0.135, allocations: 0.5099 MB / 488.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001715/0.1352, allocations: 84 kB / 488.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/0.1355, allocations: 144 kB / 489 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002824/0.1358, allocations: 231.2 kB / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000502/0.1363, allocations: 425.9 kB / 489.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1375, allocations: 1.001 MB / 490.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1375, allocations: 3.984 kB / 490.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1375, allocations: 4 kB / 490.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.1375, allocations: 0 / 490.7 MB, free: 10.65 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.00255/0.1401, allocations: 1.165 MB / 491.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1401, allocations: 12.03 kB / 491.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.1403, allocations: 98.7 kB / 491.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00053/0.1408, allocations: 123.9 kB / 492.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.1415, allocations: 469.4 kB / 492.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.844e-05/0.1416, allocations: 53.69 kB / 492.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.1418, allocations: 71.83 kB / 492.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.1434, allocations: 0.8145 MB / 493.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.1435, allocations: 8 kB / 493.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/0.1436, allocations: 24 kB / 493.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.1436, allocations: 16 kB / 493.5 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.1453, allocations: 0.7335 MB / 494.2 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004724/0.1501, allocations: 2.613 MB / 496.8 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.1516, allocations: 0.6633 MB / 497.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007853/0.1524, allocations: 378.7 kB / 497.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.276e-05/0.1525, allocations: 15.98 kB / 497.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.1526, allocations: 42.56 kB / 497.9 MB, free: 3.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.445e-06/0.1526, allocations: 0 / 497.9 MB, free: 3.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008813/0.1614, allocations: 3.524 MB / 0.4897 GB, free: 15.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.1615, allocations: 148.5 kB / 0.4899 GB, free: 15.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006106/0.1621, allocations: 477.9 kB / 0.4903 GB, free: 14.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.441e-05/0.1622, allocations: 49.7 kB / 0.4904 GB, free: 14.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002208/0.1625, allocations: 276.6 kB / 0.4906 GB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/0.1628, allocations: 300 kB / 0.4909 GB, free: 14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/0.1631, allocations: 166.5 kB / 0.4911 GB, free: 13.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.1633, allocations: 374.8 kB / 0.4914 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/0.1641, allocations: 361.8 kB / 0.4918 GB, free: 13.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009662/0.1651, allocations: 0.5215 MB / 0.4923 GB, free: 12.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.1665, allocations: 0.7079 MB / 0.493 GB, free: 11.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1665, allocations: 0 / 0.493 GB, free: 11.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002851/0.1694, allocations: 1.193 MB / 0.4941 GB, free: 10.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.1694, allocations: 12.33 kB / 0.4941 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.1695, allocations: 8 kB / 0.4942 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.1709, allocations: 0.5772 MB / 0.4947 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005814/0.1715, allocations: 151.7 kB / 0.4949 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00513/0.1766, allocations: 3.858 MB / 0.4986 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.1782, allocations: 131.7 kB / 0.4988 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.1784, allocations: 44.05 kB / 0.4988 GB, free: 5.555 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.0006625/0.1791, allocations: 222 kB / 0.499 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.1794, allocations: 71.16 kB / 0.4991 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.1797, allocations: 88.83 kB / 0.4992 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.1797, allocations: 15.94 kB / 0.4992 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.1797, allocations: 0 / 0.4992 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.1798, allocations: 7.984 kB / 0.4992 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006322/0.1861, allocations: 2.166 MB / 0.5013 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.1862, allocations: 0 / 0.5013 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009157/0.1871, allocations: 119.9 kB / 0.5014 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/0.189, allocations: 0.5303 MB / 0.5019 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.1891, allocations: 31.91 kB / 0.502 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2243/0.4134, allocations: 3.645 MB / 0.5055 GB, free: 39.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4135, allocations: 1.469 kB / 0.5055 GB, free: 39.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.417, allocations: 1.726 MB / 0.5072 GB, free: 39.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.4173, allocations: 232.4 kB / 0.5074 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4175, allocations: 28.94 kB / 0.5075 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009016/0.4184, allocations: 122.6 kB / 0.5076 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004755/0.4189, allocations: 194 kB / 0.5078 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.129e-05/0.419, allocations: 37.27 kB / 0.5078 GB, free: 39.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004096/0.4194, allocations: 325.3 kB / 0.5081 GB, free: 39.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4194, allocations: 0 / 0.5081 GB, free: 39.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009554/0.4204, allocations: 209.1 kB / 0.5083 GB, free: 39.31 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.004522/0.4249, allocations: 2.566 MB / 0.5108 GB, free: 37.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.4272, allocations: 1.07 MB / 0.5119 GB, free: 37.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4273, allocations: 0 / 0.5119 GB, free: 37.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.4285, allocations: 0.6296 MB / 0.5125 GB, free: 37.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.4296, allocations: 146.7 kB / 0.5126 GB, free: 37.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.4421, allocations: 7.487 MB / 0.5199 GB, free: 32.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.4427, allocations: 0.9235 MB / 0.5208 GB, free: 32.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003959/0.4431, allocations: 80.36 kB / 0.5209 GB, free: 32.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.4434, allocations: 240.2 kB / 0.5211 GB, free: 31.89 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4434, allocations: 0 / 0.5211 GB, free: 31.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07491/0.5183, allocations: 21.7 MB / 0.5423 GB, free: 17.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.74, allocations: 6.188 kB / 0.5423 GB, free: 17.11 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 & 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.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe 2>&1)