Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008913/0.0008913, allocations: 98.69 kB / 16.3 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000893/0.0008931, allocations: 178.8 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.000316, allocations: 7.938 kB / 300.8 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1338, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002958/0.1368, allocations: 1.941 MB / 353.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008773/0.1377, allocations: 0.5653 MB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1378, allocations: 8 kB / 353.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.221e-05/0.1379, allocations: 27.78 kB / 353.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.1382, allocations: 87.73 kB / 353.9 MB, free: 9.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.1384, allocations: 47.94 kB / 353.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002622/0.1386, allocations: 199.6 kB / 354.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.1388, allocations: 85.73 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.139, allocations: 95.64 kB / 354.3 MB, free: 8.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.1391, allocations: 103.5 kB / 354.4 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.1391, allocations: 12 kB / 354.4 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.227e-05/0.1392, allocations: 12 kB / 354.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.88e-05/0.1392, allocations: 39.84 kB / 354.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.1393, allocations: 69.58 kB / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.1395, allocations: 211.4 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1395, allocations: 0 / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1395, allocations: 0 / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1395, allocations: 0 / 354.7 MB, free: 8.152 MB / 286.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.0006995/0.1402, allocations: 0.5068 MB / 355.2 MB, free: 7.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1403, allocations: 8.031 kB / 355.2 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.1403, allocations: 62.47 kB / 355.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.874e-05/0.1404, allocations: 35.67 kB / 355.3 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.1408, allocations: 236.7 kB / 355.6 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.1408, allocations: 20.56 kB / 355.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.1409, allocations: 24 kB / 355.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/0.1414, allocations: 224.9 kB / 355.8 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.1414, allocations: 7.844 kB / 355.8 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.1415, allocations: 12 kB / 355.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1415, allocations: 7.953 kB / 355.8 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/0.1419, allocations: 190.1 kB / 356 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.1431, allocations: 0.7771 MB / 356.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.1436, allocations: 214.8 kB / 357 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.1436, allocations: 7.984 kB / 357 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.27e-05/0.1437, allocations: 34.5 kB / 357.1 MB, free: 5.633 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 1.363e-06/0.1437, allocations: 4 kB / 357.1 MB, free: 5.629 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.001958/0.1457, allocations: 0.9791 MB / 358 MB, free: 4.559 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.1457, allocations: 55.41 kB / 358.1 MB, free: 4.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.1459, allocations: 155.1 kB / 358.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1459, allocations: 33.7 kB / 358.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.146, allocations: 140.6 kB / 358.4 MB, free: 4.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.313e-05/0.1461, allocations: 110.3 kB / 358.5 MB, free: 4.035 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.1461, allocations: 8 kB / 358.5 MB, free: 4.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1462, allocations: 334.8 kB / 358.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.1464, allocations: 79.97 kB / 358.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.1466, allocations: 115.2 kB / 359.1 MB, free: 3.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.1468, allocations: 95.92 kB / 359.1 MB, free: 3.395 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1468, allocations: 0 / 359.1 MB, free: 3.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004961/0.1473, allocations: 261.4 kB / 359.4 MB, free: 3.133 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1474, allocations: 12.09 kB / 359.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1474, allocations: 0 / 359.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1474, allocations: 0 / 359.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.1477, allocations: 79.91 kB / 359.5 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1477, allocations: 3.984 kB / 359.5 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.1479, allocations: 12 kB / 359.5 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1479, allocations: 15.98 kB / 359.5 MB, free: 3.012 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.148, allocations: 145.7 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.1481, allocations: 19.8 kB / 359.7 MB, free: 2.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.909e-05/0.1482, allocations: 26.56 kB / 359.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1482, allocations: 0 / 359.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.1482, allocations: 4 kB / 359.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1482, allocations: 0 / 359.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009414/0.1491, allocations: 0.6719 MB / 360.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1492, allocations: 4 kB / 360.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.1495, allocations: 75.89 kB / 360.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1495, allocations: 4.062 kB / 360.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1495, allocations: 8 kB / 360.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1495, allocations: 0 / 360.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1495, allocations: 7.953 kB / 360.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007331/0.1503, allocations: 481.7 kB / 361 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/0.1504, allocations: 100.9 kB / 361.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.1504, allocations: 4.062 kB / 361.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.1505, allocations: 16 kB / 361.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.1506, allocations: 15.97 kB / 361.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.1506, allocations: 12 kB / 361.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001525/0.1508, allocations: 115.2 kB / 361.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.1508, allocations: 3.938 kB / 361.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1511, allocations: 59.94 kB / 361.3 MB, free: 1.133 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.1521, allocations: 1.152 MB / 362.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004478/0.1526, allocations: 217.3 kB / 362.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1526, allocations: 0 / 362.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.1528, allocations: 111.8 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.1531, allocations: 24.23 kB / 362.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.1558, allocations: 2.187 MB / 365 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.1562, allocations: 0.7602 MB / 365.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.321e-05/0.1563, allocations: 21.94 kB / 365.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1564, allocations: 75.41 kB / 365.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1564, allocations: 0 / 365.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/0.1705, allocations: 3.993 MB / 369.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.1707, allocations: 189.8 kB / 370 MB, free: 8.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.01, allocations: 0 / 370 MB, free: 8.375 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat