Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_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.001638/0.001638, allocations: 114.1 kB / 17.07 MB, free: 6.016 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.001885/0.001885, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 47.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.268, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003986/0.272, allocations: 2.42 MB / 402.6 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.2732, allocations: 0.5804 MB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.2734, allocations: 4 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.2736, allocations: 35.59 kB / 403.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.2739, allocations: 83.27 kB / 403.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.2741, allocations: 63.91 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.2744, allocations: 290.6 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.2747, allocations: 106.9 kB / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.2748, allocations: 115.6 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.275, allocations: 123.5 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.2751, allocations: 24 kB / 404.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.2751, allocations: 24 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.65e-05/0.2752, allocations: 51.84 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.2754, allocations: 135.3 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.2758, allocations: 297.7 kB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2758, allocations: 0 / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2758, allocations: 0 / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.036e-06/0.2758, allocations: 0 / 404.6 MB, free: 4.48 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.0009329/0.2768, allocations: 0.5525 MB / 405.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2768, allocations: 12.03 kB / 405.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.985e-05/0.2769, allocations: 62.72 kB / 405.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.426e-05/0.277, allocations: 28.75 kB / 405.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.2774, allocations: 241.8 kB / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.2774, allocations: 20.94 kB / 405.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.2775, allocations: 31.94 kB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.278, allocations: 228.9 kB / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.278, allocations: 0 / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.278, allocations: 15.94 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2781, allocations: 4 kB / 405.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004332/0.2785, allocations: 182.1 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.2798, allocations: 0.7542 MB / 406.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.2804, allocations: 218.5 kB / 406.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.2806, allocations: 116.3 kB / 407 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.2807, allocations: 4 kB / 407 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.2807, allocations: 38.56 kB / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 2.335e-06/0.2807, allocations: 0 / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001907/0.2826, allocations: 0.9624 MB / 408 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.2827, allocations: 55.41 kB / 408.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.2829, allocations: 154.7 kB / 408.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.2829, allocations: 29.7 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.283, allocations: 148.8 kB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.663e-05/0.2831, allocations: 107 kB / 408.5 MB, free: 260 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.2832, allocations: 53.7 kB / 408.5 MB, free: 200 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2834, allocations: 330.8 kB / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.2836, allocations: 71.95 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.2838, allocations: 123.1 kB / 409 MB, free: 15.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/0.2842, allocations: 211.3 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2842, allocations: 0 / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005099/0.2847, allocations: 257.4 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.2848, allocations: 8 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2848, allocations: 8.031 kB / 409.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2848, allocations: 0 / 409.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.2851, allocations: 75.95 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.2852, allocations: 11.92 kB / 409.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.2853, allocations: 11.98 kB / 409.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.2853, allocations: 12 kB / 409.6 MB, free: 15.06 MB / 334.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.0001413/0.2855, allocations: 137.7 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.2855, allocations: 23.91 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.2856, allocations: 34.48 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.2856, allocations: 4 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.2856, allocations: 3.938 kB / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2856, allocations: 0 / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.2867, allocations: 0.643 MB / 410.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.2867, allocations: 8.016 kB / 410.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/0.2871, allocations: 75.91 kB / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.2871, allocations: 0 / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.2871, allocations: 11.94 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2871, allocations: 0 / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.2871, allocations: 3.984 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007528/0.2879, allocations: 447.8 kB / 411 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-05/0.288, allocations: 92.97 kB / 411.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.288, allocations: 12 kB / 411.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.2882, allocations: 11.98 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.2883, allocations: 19.97 kB / 411.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.2883, allocations: 12 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.975e-05/0.2884, allocations: 119.5 kB / 411.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2884, allocations: 0 / 411.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.2887, allocations: 60 kB / 411.3 MB, free: 13.25 MB / 334.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.001155/0.2899, allocations: 0.9812 MB / 412.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005149/0.2904, allocations: 199.9 kB / 412.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2905, allocations: 0 / 412.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.2907, allocations: 120.2 kB / 412.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.2912, allocations: 38.67 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00393/0.2951, allocations: 2.67 MB / 415.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2956, allocations: 0.7483 MB / 416.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.2957, allocations: 21.94 kB / 416.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.2958, allocations: 75.41 kB / 416.2 MB, free: 8.227 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2958, allocations: 4 kB / 416.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.3265, allocations: 4.522 MB / 420.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.591, allocations: 7.984 kB / 420.7 MB, free: 3.809 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches