Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.00126, allocations: 104.1 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.001326/0.001326, 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 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001953/0.001953, allocations: 68.27 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1307, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004969/0.1357, allocations: 2.419 MB / 360.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1373, allocations: 0.6232 MB / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.1376, allocations: 8 kB / 360.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.1378, allocations: 35.59 kB / 361 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.1381, allocations: 79.27 kB / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.1384, allocations: 67.84 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.1388, allocations: 286.7 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1391, allocations: 114.9 kB / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1393, allocations: 103.6 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.1395, allocations: 127.5 kB / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.1395, allocations: 20 kB / 361.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.547e-05/0.1396, allocations: 24 kB / 361.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.1397, allocations: 55.78 kB / 361.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.1399, allocations: 135.3 kB / 362 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.1403, allocations: 287.2 kB / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.1403, allocations: 0 / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1403, allocations: 0 / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.1404, allocations: 4 kB / 362.2 MB, free: 9.449 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.000928/0.1413, allocations: 0.5343 MB / 362.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1413, allocations: 8.031 kB / 362.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.97e-05/0.1414, allocations: 62.72 kB / 362.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.477e-05/0.1415, allocations: 28.66 kB / 362.9 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003223/0.1418, allocations: 247 kB / 363.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1419, allocations: 20.94 kB / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/0.1419, allocations: 35.94 kB / 363.2 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.1424, allocations: 220.9 kB / 363.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.1424, allocations: 11.84 kB / 363.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.1425, allocations: 4 kB / 363.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1425, allocations: 11.94 kB / 363.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.1429, allocations: 178.1 kB / 363.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.1442, allocations: 0.7617 MB / 364.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.1448, allocations: 220.9 kB / 364.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.145, allocations: 116.2 kB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.145, allocations: 7.984 kB / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.1451, allocations: 34.56 kB / 364.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.764e-06/0.1451, allocations: 4 kB / 364.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001902/0.147, allocations: 0.9593 MB / 365.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.147, allocations: 55.41 kB / 365.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.1472, allocations: 154.7 kB / 365.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1473, allocations: 29.7 kB / 365.9 MB, free: 5.477 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1474, allocations: 140.6 kB / 366 MB, free: 5.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.86e-05/0.1475, allocations: 98.47 kB / 366.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.1476, allocations: 53.56 kB / 366.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1478, allocations: 338.8 kB / 366.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.148, allocations: 75.97 kB / 366.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.1482, allocations: 112.1 kB / 366.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.1486, allocations: 207.3 kB / 366.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1486, allocations: 0 / 366.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005419/0.1492, allocations: 257.3 kB / 367.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.1492, allocations: 8 kB / 367.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1492, allocations: 0 / 367.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.1492, allocations: 4 kB / 367.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/0.1495, allocations: 79.98 kB / 367.3 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1496, allocations: 4 kB / 367.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.1497, allocations: 8 kB / 367.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.1497, allocations: 15.98 kB / 367.3 MB, free: 4.051 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.1499, allocations: 149.9 kB / 367.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.15, allocations: 15.81 kB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.042e-05/0.1501, allocations: 26.56 kB / 367.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1501, allocations: 3.938 kB / 367.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1501, allocations: 8 kB / 367.5 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1501, allocations: 3.984 kB / 367.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.1513, allocations: 0.652 MB / 368.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.1513, allocations: 0 / 368.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003392/0.1517, allocations: 72.02 kB / 368.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.1517, allocations: 0 / 368.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.1517, allocations: 11.94 kB / 368.2 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.1517, allocations: 7.938 kB / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/0.1518, allocations: 3.984 kB / 368.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000794/0.1526, allocations: 438.8 kB / 368.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1527, allocations: 100.8 kB / 368.8 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.1527, allocations: 8 kB / 368.8 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.1529, allocations: 15.98 kB / 368.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.927e-05/0.153, allocations: 15.98 kB / 368.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.153, allocations: 4.125 kB / 368.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1531, allocations: 131.4 kB / 368.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1531, allocations: 0 / 368.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.1535, allocations: 56 kB / 369 MB, free: 2.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001247/0.1547, allocations: 0.9798 MB / 370 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006638/0.1554, allocations: 215.8 kB / 370.2 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1554, allocations: 0 / 370.2 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.1557, allocations: 104.1 kB / 370.3 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005417/0.1562, allocations: 43.97 kB / 370.3 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1786/0.3348, allocations: 2.644 MB / 373 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.3351, allocations: 0.7507 MB / 373.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.3352, allocations: 22.22 kB / 373.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.3353, allocations: 77.41 kB / 373.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3354, allocations: 0 / 373.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03475/0.3701, allocations: 4.435 MB / 378.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.302, allocations: 3.875 kB / 378.2 MB, free: 17.75 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1)