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.001282/0.001282, allocations: 103.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.83 kB / 306.4 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07899/0.08011, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003253/0.0834, allocations: 2.471 MB / 359.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008019/0.08421, allocations: 0.6232 MB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.08434, allocations: 4 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.08448, allocations: 27.78 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.08462, allocations: 71.45 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001434/0.08477, allocations: 51.89 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.08501, allocations: 278.7 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.08518, allocations: 100.2 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.08529, allocations: 107.6 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.08541, allocations: 115.5 kB / 360.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.08544, allocations: 20 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.982e-05/0.08549, allocations: 16 kB / 360.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.556e-05/0.08553, allocations: 39.84 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.08564, allocations: 135.3 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.08586, allocations: 275.2 kB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.08587, allocations: 0 / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.08588, allocations: 4 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.08589, allocations: 0 / 361.2 MB, free: 9.883 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.0006702/0.08656, allocations: 0.5403 MB / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.0866, allocations: 8.031 kB / 361.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.254e-05/0.08666, allocations: 58.73 kB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.08671, allocations: 32.64 kB / 361.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.08692, allocations: 247.9 kB / 362.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.08694, allocations: 24.94 kB / 362.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.08699, allocations: 27.94 kB / 362.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.08739, allocations: 224.9 kB / 362.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.08742, allocations: 7.891 kB / 362.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.08744, allocations: 8 kB / 362.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.08746, allocations: 8 kB / 362.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003547/0.08781, allocations: 174.1 kB / 362.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009902/0.08881, allocations: 0.7617 MB / 363.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.08924, allocations: 211.6 kB / 363.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.08945, allocations: 120.7 kB / 363.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.08947, allocations: 4 kB / 363.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.0895, allocations: 38.56 kB / 363.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.0895, allocations: 0 / 363.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001458/0.09096, allocations: 0.9587 MB / 364.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.091, allocations: 55.41 kB / 364.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.09112, allocations: 155.1 kB / 364.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.09115, allocations: 33.7 kB / 364.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.09122, allocations: 144.5 kB / 365 MB, free: 5.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.09129, allocations: 106.5 kB / 365.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.745e-05/0.09136, allocations: 57.56 kB / 365.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.09146, allocations: 334.8 kB / 365.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.09162, allocations: 71.95 kB / 365.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.09181, allocations: 112.3 kB / 365.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.09215, allocations: 199.3 kB / 365.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.09216, allocations: 0 / 365.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004142/0.09258, allocations: 257.4 kB / 366.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.0926, allocations: 7.984 kB / 366.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.09261, allocations: 0 / 366.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.09262, allocations: 4.094 kB / 366.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.09289, allocations: 75.91 kB / 366.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.0929, allocations: 4 kB / 366.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.09303, allocations: 11.98 kB / 366.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.09304, allocations: 8 kB / 366.2 MB, free: 4.5 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.0001033/0.09315, allocations: 149.6 kB / 366.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.0932, allocations: 19.81 kB / 366.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.991e-05/0.09325, allocations: 26.55 kB / 366.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.09326, allocations: 8 kB / 366.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.09327, allocations: 4 kB / 366.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09328, allocations: 0 / 366.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008053/0.09409, allocations: 0.6481 MB / 367.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.0941, allocations: 4.062 kB / 367.1 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.09441, allocations: 75.89 kB / 367.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.09442, allocations: 0 / 367.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.09445, allocations: 15.88 kB / 367.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.09445, allocations: 4 kB / 367.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09446, allocations: 0 / 367.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005973/0.09506, allocations: 448 kB / 367.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.09511, allocations: 96.91 kB / 367.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.09515, allocations: 11.98 kB / 367.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.0953, allocations: 12 kB / 367.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.09535, allocations: 15.97 kB / 367.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.09537, allocations: 8 kB / 367.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.982e-05/0.09544, allocations: 123.2 kB / 367.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09545, allocations: 0 / 367.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.09572, allocations: 56 kB / 367.9 MB, free: 2.688 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.0007903/0.09652, allocations: 0.9805 MB / 368.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.09691, allocations: 209.3 kB / 369.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.09692, allocations: 0 / 369.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.0971, allocations: 112.1 kB / 369.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.09748, allocations: 35.92 kB / 369.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1278/0.2253, allocations: 2.743 MB / 372 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.2255, allocations: 0.752 MB / 372.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.2256, allocations: 25.86 kB / 372.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.844e-05/0.2257, allocations: 75.16 kB / 372.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2257, allocations: 1.031 kB / 372.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4468/0.6726, allocations: 4.181 MB / 377 MB, free: 17.99 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.6728, allocations: 212 kB / 377.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.408, allocations: 0 / 377.2 MB, free: 17.73 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/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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/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