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.001735/0.001735, allocations: 105.3 kB / 17.73 MB, free: 5.32 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.001744/0.001744, allocations: 188.2 kB / 18.67 MB, free: 4.387 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.461/1.461, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.0017/0.0017, allocations: 47.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.09092, allocations: 46.63 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003798/0.09476, allocations: 2.411 MB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.09611, allocations: 0.6279 MB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.09633, allocations: 4 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.09655, allocations: 35.59 kB / 377.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.09676, allocations: 83.27 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.09699, allocations: 63.91 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.09737, allocations: 294.6 kB / 378.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.09764, allocations: 110.9 kB / 378.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.09782, allocations: 107.6 kB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.09801, allocations: 127.4 kB / 378.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.09806, allocations: 27.98 kB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.984e-05/0.09811, allocations: 24 kB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.165e-05/0.09818, allocations: 55.78 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.09833, allocations: 127.4 kB / 378.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.09874, allocations: 298.7 kB / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.09875, allocations: 0 / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.09876, allocations: 0 / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.09877, allocations: 0 / 379 MB, free: 0.6758 MB / 318.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.0009367/0.09971, allocations: 0.5495 MB / 379.6 MB, free: 80 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.09977, allocations: 12.03 kB / 379.6 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1821/0.2819, allocations: 59.41 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2821, allocations: 23.56 kB / 379.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.2825, allocations: 241.2 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.2825, allocations: 20.03 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.2826, allocations: 30.3 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005252/0.2831, allocations: 232 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.2832, allocations: 5.312 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.2832, allocations: 8.688 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2832, allocations: 6.875 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.2836, allocations: 177.6 kB / 380.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.2848, allocations: 0.7536 MB / 381.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004777/0.2853, allocations: 219.1 kB / 381.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.2855, allocations: 116.5 kB / 381.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2855, allocations: 5.125 kB / 381.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.2855, allocations: 39.08 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 2.504e-06/0.2855, allocations: 2.656 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001807/0.2874, allocations: 0.9604 MB / 382.4 MB, free: 11.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.2874, allocations: 54.38 kB / 382.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.2876, allocations: 153.7 kB / 382.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.2876, allocations: 32.75 kB / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.778e-05/0.2877, allocations: 144.6 kB / 382.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.533e-05/0.2878, allocations: 110.1 kB / 382.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.2878, allocations: 54.66 kB / 383 MB, free: 11.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.2879, allocations: 332.8 kB / 383.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.2881, allocations: 75.06 kB / 383.4 MB, free: 11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.2883, allocations: 123.1 kB / 383.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.2887, allocations: 191.2 kB / 383.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2887, allocations: 0 / 383.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004915/0.2892, allocations: 272.6 kB / 384 MB, free: 10.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.2892, allocations: 8.828 kB / 384 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2892, allocations: 1.828 kB / 384 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.2893, allocations: 3.531 kB / 384 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.2896, allocations: 73.45 kB / 384 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2896, allocations: 2.344 kB / 384 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.2897, allocations: 17.72 kB / 384.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.2898, allocations: 8.156 kB / 384.1 MB, free: 10.71 MB / 318.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.0001073/0.2899, allocations: 141 kB / 384.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.2899, allocations: 21.22 kB / 384.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.414e-05/0.29, allocations: 29.59 kB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.29, allocations: 4.016 kB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.088e-06/0.29, allocations: 4.094 kB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.29, allocations: 3.266 kB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.2911, allocations: 0.6581 MB / 384.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2911, allocations: 0 / 384.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.2914, allocations: 74.91 kB / 385 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.2915, allocations: 6.469 kB / 385 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.2915, allocations: 7.531 kB / 385 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.2915, allocations: 5.875 kB / 385 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2915, allocations: 1 kB / 385 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/0.2922, allocations: 446.5 kB / 385.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.2922, allocations: 95.77 kB / 385.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.2923, allocations: 7.016 kB / 385.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.2924, allocations: 16.36 kB / 385.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.2925, allocations: 18.73 kB / 385.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.2925, allocations: 12.95 kB / 385.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.542e-05/0.2926, allocations: 117.4 kB / 385.7 MB, free: 9.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2926, allocations: 0 / 385.7 MB, free: 9.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.293, allocations: 61.88 kB / 385.8 MB, free: 9.578 MB / 318.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.0008559/0.2938, allocations: 0.9709 MB / 386.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005033/0.2943, allocations: 208 kB / 387 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2943, allocations: 0 / 387 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.2946, allocations: 107.3 kB / 387.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.295, allocations: 39.31 kB / 387.1 MB, free: 8.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.2982, allocations: 2.663 MB / 389.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.2984, allocations: 0.7527 MB / 390.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2985, allocations: 21.88 kB / 390.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2986, allocations: 75.23 kB / 390.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2986, allocations: 0 / 390.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.3292, allocations: 4.545 MB / 395.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.703, allocations: 1.406 kB / 395.2 MB, free: 5.195 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches