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.0009072/0.0009073, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009341/0.0009342, allocations: 204.4 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002329, allocations: 12 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.09989, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002499/0.1024, allocations: 1.955 MB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.1035, allocations: 0.6043 MB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1036, allocations: 4 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.963e-05/0.1037, allocations: 23.78 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.1038, allocations: 91.73 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.104, allocations: 47.95 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.1042, allocations: 195.6 kB / 361.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.1044, allocations: 93.62 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1045, allocations: 95.64 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.1047, allocations: 99.55 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.1047, allocations: 12 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.13e-05/0.1047, allocations: 12 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.54e-05/0.1048, allocations: 47.83 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.1048, allocations: 73.58 kB / 361.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.105, allocations: 207.6 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.105, allocations: 0 / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.105, allocations: 0 / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1051, allocations: 0 / 361.7 MB, free: 10.23 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.0006422/0.1057, allocations: 0.503 MB / 362.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1057, allocations: 12.03 kB / 362.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.677e-05/0.1058, allocations: 62.48 kB / 362.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.1059, allocations: 27.7 kB / 362.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.1061, allocations: 234.2 kB / 362.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.1061, allocations: 20.56 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.1062, allocations: 27.95 kB / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004096/0.1066, allocations: 228.9 kB / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.1066, allocations: 11.83 kB / 362.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.1066, allocations: 12 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.1067, allocations: 8 kB / 362.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.107, allocations: 178.1 kB / 363 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.1081, allocations: 0.7696 MB / 363.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.1085, allocations: 227.8 kB / 364 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.1086, allocations: 4 kB / 364 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.1086, allocations: 30.56 kB / 364.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.272e-06/0.1086, allocations: 0 / 364.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001571/0.1102, allocations: 1.004 MB / 365.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.1102, allocations: 55.41 kB / 365.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.1103, allocations: 159.1 kB / 365.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.1104, allocations: 29.7 kB / 365.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.1104, allocations: 140.6 kB / 365.5 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.1105, allocations: 110.4 kB / 365.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-06/0.1105, allocations: 8 kB / 365.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1107, allocations: 326.8 kB / 365.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.1108, allocations: 79.81 kB / 366 MB, free: 5.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.111, allocations: 119.4 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.1112, allocations: 91.92 kB / 366.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1112, allocations: 0 / 366.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004315/0.1117, allocations: 261.4 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1117, allocations: 8 kB / 366.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1117, allocations: 0 / 366.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1117, allocations: 7.953 kB / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.112, allocations: 79.89 kB / 366.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.112, allocations: 4.094 kB / 366.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.1121, allocations: 19.98 kB / 366.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.1121, allocations: 4 kB / 366.5 MB, free: 5.09 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.0001063/0.1123, allocations: 145.7 kB / 366.7 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.1123, allocations: 15.81 kB / 366.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.1124, allocations: 34.53 kB / 366.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1124, allocations: 7.953 kB / 366.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1124, allocations: 4 kB / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1124, allocations: 0 / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008803/0.1133, allocations: 0.6521 MB / 367.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1133, allocations: 11.94 kB / 367.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.1136, allocations: 75.91 kB / 367.5 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.1136, allocations: 4 kB / 367.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.1136, allocations: 4 kB / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1137, allocations: 4 kB / 367.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1137, allocations: 3.984 kB / 367.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.1143, allocations: 484.8 kB / 368 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.1144, allocations: 88.92 kB / 368.1 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1144, allocations: 8.062 kB / 368.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1146, allocations: 15.98 kB / 368.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.1147, allocations: 19.97 kB / 368.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.1147, allocations: 4 kB / 368.1 MB, free: 3.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.275e-05/0.1148, allocations: 120.4 kB / 368.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1148, allocations: 0 / 368.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1151, allocations: 60 kB / 368.3 MB, free: 3.227 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.0009127/0.116, allocations: 1.157 MB / 369.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.1164, allocations: 211.8 kB / 369.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1164, allocations: 0 / 369.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.1166, allocations: 121.2 kB / 369.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1169, allocations: 27.94 kB / 369.8 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1991/0.3161, allocations: 2.177 MB / 372 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.3164, allocations: 0.7618 MB / 372.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.3165, allocations: 18.75 kB / 372.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3166, allocations: 76.66 kB / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3166, allocations: 0 / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.333, allocations: 3.999 MB / 376.8 MB, free: 18.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.3332, allocations: 180 kB / 377 MB, free: 18.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/1.983, allocations: 1.188 kB / 377 MB, free: 18.17 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