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.001018/0.001018, allocations: 88.16 kB / 16.31 MB, free: 5.617 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.001089/0.001089, allocations: 177.9 kB / 17.2 MB, free: 5.535 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.352/1.352, allocations: 223.2 MB / 241.2 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002727/0.0002728, allocations: 4.781 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002458/0.1106, allocations: 2.036 MB / 353.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008748/0.1115, allocations: 0.5496 MB / 353.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1116, allocations: 7.938 kB / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.1118, allocations: 27.77 kB / 354 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.1119, allocations: 67.47 kB / 354 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001601/0.1121, allocations: 47.89 kB / 354.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.1124, allocations: 266.7 kB / 354.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.1126, allocations: 90.62 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1127, allocations: 91.64 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.1128, allocations: 111.5 kB / 354.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.1129, allocations: 12 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.752e-05/0.1129, allocations: 15.94 kB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.027e-05/0.113, allocations: 39.84 kB / 354.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.122e-05/0.1131, allocations: 69.58 kB / 354.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.1133, allocations: 215.6 kB / 355 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/0.1133, allocations: 3.984 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1133, allocations: 0 / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1133, allocations: 0 / 355 MB, free: 268 kB / 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.0007376/0.1141, allocations: 0.4991 MB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1141, allocations: 12.03 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.499e-05/0.1142, allocations: 62.53 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/0.1143, allocations: 27.67 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.1145, allocations: 239.2 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1146, allocations: 20.56 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.1146, allocations: 28 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.1151, allocations: 228.8 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.1151, allocations: 7.906 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1151, allocations: 8 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1152, allocations: 11.95 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1155, allocations: 194.1 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1167, allocations: 0.7655 MB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.1172, allocations: 218.7 kB / 357.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.1174, allocations: 116.8 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.1174, allocations: 4 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.1174, allocations: 34.56 kB / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.422e-06/0.1174, allocations: 0 / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001691/0.1191, allocations: 0.9987 MB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1192, allocations: 55.41 kB / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.1194, allocations: 159.8 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1194, allocations: 29.7 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.953e-05/0.1195, allocations: 140.6 kB / 358.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.457e-05/0.1196, allocations: 102.5 kB / 358.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.1196, allocations: 4 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1197, allocations: 330.8 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.1199, allocations: 79.95 kB / 359.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.1201, allocations: 115.2 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.1203, allocations: 99.91 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1203, allocations: 4 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004719/0.1208, allocations: 261.4 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.1208, allocations: 4 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1208, allocations: 0 / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1208, allocations: 4 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.1211, allocations: 79.89 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1211, allocations: 4 kB / 359.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.1213, allocations: 19.97 kB / 359.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.1213, allocations: 19.98 kB / 359.9 MB, free: 11 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.1214, allocations: 134 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.851e-05/0.1214, allocations: 15.81 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.04e-05/0.1215, allocations: 26.56 kB / 360.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1215, allocations: 4 kB / 360.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1215, allocations: 0 / 360.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.1216, allocations: 3.984 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009338/0.1225, allocations: 0.6637 MB / 360.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1225, allocations: 4 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.1228, allocations: 79.95 kB / 360.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1228, allocations: 7.938 kB / 360.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1229, allocations: 4 kB / 360.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.1229, allocations: 7.953 kB / 360.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1229, allocations: 0 / 360.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006525/0.1235, allocations: 469.5 kB / 361.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.1236, allocations: 88.92 kB / 361.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.1236, allocations: 8.062 kB / 361.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1238, allocations: 23.92 kB / 361.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.1238, allocations: 19.94 kB / 361.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1239, allocations: 4 kB / 361.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.687e-05/0.1239, allocations: 119.2 kB / 361.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1239, allocations: 0 / 361.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.1242, allocations: 56 kB / 361.6 MB, free: 9.164 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 (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.0009246/0.1252, allocations: 0.9885 MB / 362.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.1256, allocations: 209.4 kB / 362.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1256, allocations: 4.062 kB / 362.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.1258, allocations: 115.8 kB / 362.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.1262, allocations: 42.67 kB / 363 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.1287, allocations: 1.739 MB / 364.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.129, allocations: 0.7525 MB / 365.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.861e-05/0.1291, allocations: 17.95 kB / 365.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1292, allocations: 83.34 kB / 365.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1292, allocations: 0 / 365.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.1434, allocations: 4.012 MB / 369.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.1436, allocations: 196.4 kB / 369.8 MB, free: 1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/1.991, allocations: 3.938 kB / 369.8 MB, free: 0.9961 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