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.001271/0.001271, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.17 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004182/0.1166, allocations: 2.42 MB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1179, allocations: 0.6232 MB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002257/0.1182, allocations: 8 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.1184, allocations: 39.53 kB / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.1187, allocations: 79.27 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.1189, allocations: 59.91 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.1192, allocations: 286.7 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.1195, allocations: 118.9 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.1196, allocations: 103.6 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.1198, allocations: 119.5 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.009e-05/0.1198, allocations: 27.98 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.856e-05/0.1199, allocations: 24 kB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.815e-05/0.1199, allocations: 55.78 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1201, allocations: 139.3 kB / 361.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.1204, allocations: 287.2 kB / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1204, allocations: 0 / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1204, allocations: 0 / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1204, allocations: 0 / 361.9 MB, free: 9.625 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.0008169/0.1212, allocations: 0.5343 MB / 362.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1213, allocations: 11.97 kB / 362.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.328e-05/0.1214, allocations: 66.72 kB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.753e-05/0.1214, allocations: 28.66 kB / 362.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.1217, allocations: 247.8 kB / 362.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.1217, allocations: 16.94 kB / 362.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.1218, allocations: 35.88 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004616/0.1222, allocations: 220.9 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.1223, allocations: 7.906 kB / 363.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.1223, allocations: 8 kB / 363.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1223, allocations: 8 kB / 363.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.1227, allocations: 186.1 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.1239, allocations: 0.75 MB / 364 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004688/0.1244, allocations: 222.2 kB / 364.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1246, allocations: 120.8 kB / 364.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.1246, allocations: 0 / 364.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1247, allocations: 38.56 kB / 364.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.252e-06/0.1247, allocations: 0 / 364.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001685/0.1264, allocations: 0.9625 MB / 365.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.1264, allocations: 51.41 kB / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.1266, allocations: 158.7 kB / 365.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1266, allocations: 25.7 kB / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1267, allocations: 144.6 kB / 365.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/0.1268, allocations: 98.47 kB / 365.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-05/0.1269, allocations: 53.7 kB / 365.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.127, allocations: 334.8 kB / 366.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.1272, allocations: 75.81 kB / 366.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1274, allocations: 111.4 kB / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.1278, allocations: 207.3 kB / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1278, allocations: 0 / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004721/0.1283, allocations: 257.3 kB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1283, allocations: 12.09 kB / 366.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1283, allocations: 3.984 kB / 366.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1283, allocations: 4 kB / 366.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.1286, allocations: 75.89 kB / 367 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1286, allocations: 4 kB / 367 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.1288, allocations: 8 kB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.1288, allocations: 15.98 kB / 367 MB, free: 4.227 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.0001285/0.1289, allocations: 149.6 kB / 367.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.129, allocations: 23.75 kB / 367.2 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.953e-05/0.129, allocations: 26.56 kB / 367.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.129, allocations: 3.938 kB / 367.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.129, allocations: 4 kB / 367.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1291, allocations: 7.984 kB / 367.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008966/0.13, allocations: 0.6481 MB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.13, allocations: 0 / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.1303, allocations: 71.95 kB / 367.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1303, allocations: 0 / 367.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.1303, allocations: 11.94 kB / 367.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1303, allocations: 0 / 367.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.1303, allocations: 7.938 kB / 367.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.131, allocations: 444.6 kB / 368.4 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1311, allocations: 88.92 kB / 368.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.1311, allocations: 12 kB / 368.5 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.1313, allocations: 11.98 kB / 368.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.1313, allocations: 23.98 kB / 368.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.1313, allocations: 4 kB / 368.5 MB, free: 2.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.88e-05/0.1314, allocations: 119.5 kB / 368.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.222e-06/0.1314, allocations: 4 kB / 368.6 MB, free: 2.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002824/0.1317, allocations: 59.94 kB / 368.7 MB, free: 2.418 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.00087/0.1326, allocations: 0.9767 MB / 369.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004531/0.133, allocations: 216 kB / 369.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1331, allocations: 0 / 369.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.1333, allocations: 107.8 kB / 370 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.1337, allocations: 42.92 kB / 370 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1647/0.2984, allocations: 2.655 MB / 372.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.2987, allocations: 0.7524 MB / 373.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.2988, allocations: 19.56 kB / 373.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2989, allocations: 75.2 kB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2989, allocations: 0.625 kB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.3241, allocations: 4.429 MB / 377.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.209, allocations: 11.25 kB / 378 MB, free: 17.97 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches