Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_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.001/0.001001, allocations: 96.95 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 194.2 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002489, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1068, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002682/0.1096, allocations: 2.049 MB / 360.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1107, allocations: 0.5769 MB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1109, allocations: 7.938 kB / 360.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.111, allocations: 27.77 kB / 361 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.1112, allocations: 75.44 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.1114, allocations: 31.97 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.1117, allocations: 274.7 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.1119, allocations: 93.64 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.1121, allocations: 87.66 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.1122, allocations: 111.5 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/0.1123, allocations: 12 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.851e-05/0.1123, allocations: 16 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.283e-05/0.1124, allocations: 35.84 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.306e-05/0.1125, allocations: 73.58 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.1127, allocations: 215.6 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1127, allocations: 4 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1127, allocations: 4 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1127, allocations: 3.938 kB / 362 MB, free: 10.29 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.000739/0.1135, allocations: 0.4952 MB / 362.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.195e-05/0.1135, allocations: 15.97 kB / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.645e-05/0.1136, allocations: 62.53 kB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.1137, allocations: 27.72 kB / 362.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.1139, allocations: 235.2 kB / 362.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.114, allocations: 16.56 kB / 362.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.108e-05/0.114, allocations: 31.95 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.1145, allocations: 228.8 kB / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.1145, allocations: 11.91 kB / 363.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.1146, allocations: 12 kB / 363.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.1146, allocations: 8 kB / 363.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.115, allocations: 186.1 kB / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.1163, allocations: 0.7695 MB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/0.1168, allocations: 214.6 kB / 364.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.1171, allocations: 127.2 kB / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.1171, allocations: 0 / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1172, allocations: 38.5 kB / 364.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.1172, allocations: 0 / 364.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001906/0.1191, allocations: 0.9999 MB / 365.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.1191, allocations: 55.41 kB / 365.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.1193, allocations: 155.1 kB / 365.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.1194, allocations: 33.7 kB / 365.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1195, allocations: 136.6 kB / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.509e-05/0.1196, allocations: 110.5 kB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.35e-05/0.1196, allocations: 8 kB / 365.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1198, allocations: 330.8 kB / 366.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.1199, allocations: 79.81 kB / 366.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.1201, allocations: 119.3 kB / 366.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.1204, allocations: 91.97 kB / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1204, allocations: 0 / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004473/0.1208, allocations: 261.4 kB / 366.8 MB, free: 5.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.1208, allocations: 14.45 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1209, allocations: 3.938 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1209, allocations: 4 kB / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.1212, allocations: 83.98 kB / 366.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.1212, allocations: 0 / 366.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1213, allocations: 19.98 kB / 366.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.1213, allocations: 8 kB / 366.9 MB, free: 5.023 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.0001364/0.1215, allocations: 137.8 kB / 367.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.897e-05/0.1215, allocations: 15.81 kB / 367.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.326e-05/0.1216, allocations: 30.52 kB / 367.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1216, allocations: 8 kB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.1217, allocations: 0 / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1217, allocations: 3.984 kB / 367.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009617/0.1226, allocations: 0.6598 MB / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1226, allocations: 0 / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.123, allocations: 79.89 kB / 367.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.123, allocations: 4 kB / 367.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.123, allocations: 4 kB / 367.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.123, allocations: 4 kB / 367.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.123, allocations: 64 / 367.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007313/0.1238, allocations: 463.1 kB / 368.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/0.1239, allocations: 96.88 kB / 368.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.1239, allocations: 4.062 kB / 368.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.124, allocations: 15.98 kB / 368.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.1241, allocations: 19.98 kB / 368.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.1241, allocations: 7.984 kB / 368.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.904e-05/0.1242, allocations: 120.4 kB / 368.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1242, allocations: 3.938 kB / 368.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.1245, allocations: 60 kB / 368.6 MB, free: 3.199 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.001115/0.1257, allocations: 0.9854 MB / 369.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004338/0.1261, allocations: 219.8 kB / 369.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1261, allocations: 0 / 369.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.1263, allocations: 112.1 kB / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.1267, allocations: 43.95 kB / 370 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1292, allocations: 1.739 MB / 371.7 MB, free: 12 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1701/0.2993, allocations: 0.7455 MB / 372.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.2995, allocations: 19.53 kB / 372.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.2997, allocations: 74.47 kB / 372.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.745e-06/0.2997, allocations: 0 / 372.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.3162, allocations: 4.018 MB / 376.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.3164, allocations: 192.6 kB / 376.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.21, allocations: 4.875 kB / 376.8 MB, free: 18.58 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat