Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001248/0.001248, 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.001345/0.001345, 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.498/1.498, 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.2337/0.2337, 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.002444/0.002444, allocations: 85.22 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1407, allocations: 62.45 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004557/0.1453, allocations: 2.365 MB / 482.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1471, allocations: 0.8997 MB / 483.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002277/0.1474, allocations: 7.938 kB / 483.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.1477, allocations: 55.58 kB / 483.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002814/0.148, allocations: 75.33 kB / 483.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.1485, allocations: 143.6 kB / 483.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.1491, allocations: 347.4 kB / 484.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.1493, allocations: 84.91 kB / 484.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.1496, allocations: 151.5 kB / 484.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1499, allocations: 159.4 kB / 484.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.15, allocations: 28 kB / 484.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.1503, allocations: 95.89 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1504, allocations: 71.77 kB / 484.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.1506, allocations: 135.4 kB / 484.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005174/0.1511, allocations: 379.1 kB / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1511, allocations: 0 / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1511, allocations: 0 / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1512, allocations: 0 / 485.2 MB, free: 188 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001125/0.1523, allocations: 0.581 MB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1523, allocations: 8.031 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.953e-05/0.1524, allocations: 62.66 kB / 485.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.1526, allocations: 32.66 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.153, allocations: 256.5 kB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.153, allocations: 16.94 kB / 486.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/0.1531, allocations: 24.38 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/0.1537, allocations: 272.9 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1537, allocations: 4 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.1537, allocations: 11.94 kB / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1537, allocations: 8 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005366/0.1543, allocations: 234 kB / 486.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.1558, allocations: 0.7366 MB / 487.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005943/0.1564, allocations: 254.4 kB / 487.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.1567, allocations: 140.4 kB / 487.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.1567, allocations: 4.062 kB / 487.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.1568, allocations: 38.56 kB / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.1568, allocations: 0 / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003375/0.1602, allocations: 1.427 MB / 489.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.1602, allocations: 55.41 kB / 489.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.1605, allocations: 203.8 kB / 489.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.1605, allocations: 37.7 kB / 489.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.761e-05/0.1606, allocations: 136.6 kB / 489.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.1608, allocations: 122.3 kB / 489.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.1609, allocations: 69.69 kB / 489.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.161, allocations: 334.8 kB / 490.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.1613, allocations: 116 kB / 490.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.1616, allocations: 168.3 kB / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.1621, allocations: 235.2 kB / 490.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1621, allocations: 4 kB / 490.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009155/0.163, allocations: 429.7 kB / 491.1 MB, free: 9.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1631, allocations: 8 kB / 491.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1631, allocations: 8 kB / 491.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005422/0.1636, allocations: 188.7 kB / 491.3 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.1639, allocations: 55.91 kB / 491.4 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008123/0.1647, allocations: 0.7241 MB / 492.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.165, allocations: 39.98 kB / 492.1 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.165, allocations: 11.98 kB / 492.1 MB, free: 8.809 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.1652, allocations: 153.3 kB / 492.3 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.609e-05/0.1653, allocations: 23.72 kB / 492.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-05/0.1654, allocations: 42.7 kB / 492.4 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1654, allocations: 4 kB / 492.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1654, allocations: 0 / 492.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.1654, allocations: 0 / 492.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.1671, allocations: 0.9557 MB / 493.3 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1672, allocations: 0 / 493.3 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000231/0.1674, allocations: 43.92 kB / 493.4 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003842/0.1678, allocations: 176.7 kB / 493.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.1678, allocations: 11.94 kB / 493.5 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006991/0.1685, allocations: 0.685 MB / 494.2 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1685, allocations: 3.984 kB / 494.2 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1697, allocations: 0.6145 MB / 494.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.1699, allocations: 128.8 kB / 495 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.754e-05/0.17, allocations: 8 kB / 495 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.1703, allocations: 31.95 kB / 495 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.1704, allocations: 55.92 kB / 495.1 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.1705, allocations: 15.98 kB / 495.1 MB, free: 5.723 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001691/0.1706, allocations: 149.5 kB / 495.2 MB, free: 5.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1707, allocations: 7.875 kB / 495.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003853/0.171, allocations: 75.94 kB / 495.3 MB, free: 5.496 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00283/0.1739, allocations: 1.391 MB / 496.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008794/0.1748, allocations: 319.7 kB / 497 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1748, allocations: 0 / 497 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003696/0.1752, allocations: 164.4 kB / 497.2 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.1756, allocations: 35.05 kB / 497.2 MB, free: 3.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.181, allocations: 3.101 MB / 0.4886 GB, free: 492 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.1815, allocations: 0.7603 MB / 0.4893 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.1816, allocations: 22.28 kB / 0.4893 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.1818, allocations: 75.41 kB / 0.4894 GB, free: 15.59 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.1818, allocations: 0 / 0.4894 GB, free: 15.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.2191, allocations: 7.694 MB / 0.4969 GB, free: 8.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.03, allocations: 6.719 kB / 0.4969 GB, free: 8.07 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1)