Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_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.0007259/0.0007262, allocations: 91.61 kB / 17.3 MB, free: 6.391 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.0008333/0.0008333, allocations: 175.5 kB / 18.21 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.152/1.152, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004136, allocations: 16 kB / 281.5 MB, free: 3.305 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07369/0.07412, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002122/0.07627, allocations: 2.106 MB / 331.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007611/0.07705, allocations: 0.6087 MB / 331.8 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.785e-05/0.07716, allocations: 7.938 kB / 331.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.07727, allocations: 23.78 kB / 331.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.07741, allocations: 71.45 kB / 331.9 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001359/0.07755, allocations: 47.95 kB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.0778, allocations: 282.7 kB / 332.2 MB, free: 500 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.07798, allocations: 99.48 kB / 332.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.501e-05/0.07808, allocations: 95.58 kB / 332.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.0782, allocations: 111.4 kB / 332.5 MB, free: 196 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.07824, allocations: 12 kB / 332.5 MB, free: 184 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.052e-05/0.07828, allocations: 12 kB / 332.5 MB, free: 172 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.07832, allocations: 43.77 kB / 332.6 MB, free: 128 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.07843, allocations: 145.1 kB / 332.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.07865, allocations: 271.2 kB / 333 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.07867, allocations: 4 kB / 333 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.07867, allocations: 0 / 333 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.07869, allocations: 7.938 kB / 333 MB, free: 15.7 MB / 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.0006003/0.07929, allocations: 0.4914 MB / 333.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.07933, allocations: 19.97 kB / 333.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/0.07939, allocations: 62.72 kB / 333.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.07944, allocations: 32.56 kB / 333.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.07965, allocations: 244.4 kB / 333.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.07967, allocations: 16.94 kB / 333.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.07972, allocations: 31.94 kB / 333.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.08013, allocations: 232.8 kB / 334.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.08016, allocations: 4 kB / 334.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.08019, allocations: 16 kB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.0802, allocations: 8 kB / 334.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003723/0.08058, allocations: 186.1 kB / 334.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009773/0.08156, allocations: 0.7656 MB / 335.1 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.08198, allocations: 218.5 kB / 335.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.08219, allocations: 124.8 kB / 335.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.08221, allocations: 0 / 335.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.08224, allocations: 34.56 kB / 335.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 9.72e-07/0.08224, allocations: 0 / 335.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.001482/0.08373, allocations: 0.9963 MB / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.08377, allocations: 59.41 kB / 336.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.08389, allocations: 155.1 kB / 336.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.08391, allocations: 33.7 kB / 336.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.628e-05/0.08399, allocations: 136.6 kB / 336.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.08405, allocations: 110.5 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.0841, allocations: 29.7 kB / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.08419, allocations: 334.8 kB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.08437, allocations: 75.95 kB / 337.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.08457, allocations: 127.2 kB / 337.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.08492, allocations: 211.4 kB / 337.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.08493, allocations: 0 / 337.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004331/0.08537, allocations: 269.2 kB / 337.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.08539, allocations: 12.09 kB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.0854, allocations: 3.938 kB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.08542, allocations: 4 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.08568, allocations: 79.89 kB / 338 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.08569, allocations: 0 / 338 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.08581, allocations: 16 kB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.08583, allocations: 8 kB / 338.1 MB, free: 10.26 MB / 286.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 9.949e-05/0.08594, allocations: 149.7 kB / 338.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.08598, allocations: 15.81 kB / 338.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.08604, allocations: 26.56 kB / 338.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.08605, allocations: 4 kB / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.08606, allocations: 0 / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.08607, allocations: 3.984 kB / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008029/0.08688, allocations: 0.6691 MB / 338.9 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.08689, allocations: 4 kB / 338.9 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.08719, allocations: 79.95 kB / 339 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.0872, allocations: 4 kB / 339 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.08722, allocations: 7.938 kB / 339 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.08723, allocations: 4 kB / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.08723, allocations: 0 / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.08784, allocations: 453.4 kB / 339.5 MB, free: 8.766 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.08789, allocations: 92.92 kB / 339.6 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.08793, allocations: 8 kB / 339.6 MB, free: 8.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.08807, allocations: 19.98 kB / 339.6 MB, free: 8.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.08812, allocations: 19.92 kB / 339.6 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.08814, allocations: 8 kB / 339.6 MB, free: 8.602 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.669e-05/0.08821, allocations: 115.2 kB / 339.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08821, allocations: 0 / 339.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002712/0.08849, allocations: 60 kB / 339.8 MB, free: 8.43 MB / 286.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.0007999/0.0893, allocations: 0.9896 MB / 340.8 MB, free: 7.406 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.08969, allocations: 211.8 kB / 341 MB, free: 7.199 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.0897, allocations: 192 / 341 MB, free: 7.199 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.08989, allocations: 116 kB / 341.1 MB, free: 7.086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.09029, allocations: 43.25 kB / 341.1 MB, free: 7.047 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.09318, allocations: 2.901 MB / 344 MB, free: 4.035 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.09342, allocations: 0.7522 MB / 344.8 MB, free: 3.258 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.092e-05/0.0935, allocations: 13.95 kB / 344.8 MB, free: 3.242 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.09361, allocations: 75.41 kB / 344.9 MB, free: 3.168 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.09362, allocations: 7.938 kB / 344.9 MB, free: 3.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3008/0.3945, allocations: 4.089 MB / 349 MB, free: 15.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/0.3948, allocations: 206.2 kB / 349.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.203, allocations: 0 / 349.2 MB, free: 14.81 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches