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.001342/0.001342, allocations: 110.3 kB / 17.73 MB, free: 5.34 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.001297/0.001297, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.349/1.349, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001432/0.001432, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.0894, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003895/0.09335, allocations: 2.423 MB / 377.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.09457, allocations: 0.6318 MB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.09481, allocations: 4 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.09508, allocations: 35.59 kB / 377.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002476/0.09533, allocations: 83.27 kB / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.09557, allocations: 63.91 kB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.09594, allocations: 290.7 kB / 378.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.09617, allocations: 110.8 kB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.09636, allocations: 115.6 kB / 378.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.09654, allocations: 119.5 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.09659, allocations: 24 kB / 378.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.075e-05/0.09665, allocations: 27.94 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.09671, allocations: 59.77 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.09688, allocations: 131.4 kB / 378.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003742/0.09726, allocations: 294.7 kB / 379 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09727, allocations: 4 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09728, allocations: 0 / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.0973, allocations: 0 / 379 MB, free: 0.6836 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.0008697/0.09817, allocations: 0.5495 MB / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.09822, allocations: 8.031 kB / 379.6 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.039e-05/0.0983, allocations: 62.72 kB / 379.6 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1772/0.2755, allocations: 26.67 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.276, allocations: 238.7 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.276, allocations: 17.25 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.2761, allocations: 27.16 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.2766, allocations: 229.5 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.2766, allocations: 7.891 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.2767, allocations: 8.719 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2767, allocations: 7.266 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004568/0.2772, allocations: 173.9 kB / 380.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2784, allocations: 0.763 MB / 381.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.2789, allocations: 220.2 kB / 381.3 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.2792, allocations: 115.7 kB / 381.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.2792, allocations: 4.094 kB / 381.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2792, allocations: 34.73 kB / 381.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 2.414e-06/0.2792, allocations: 0 / 381.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001827/0.2811, allocations: 0.9666 MB / 382.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.2811, allocations: 54.5 kB / 382.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.2813, allocations: 154 kB / 382.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.2813, allocations: 31.78 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.2814, allocations: 140 kB / 382.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.449e-05/0.2814, allocations: 111.7 kB / 382.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.2815, allocations: 52.27 kB / 383 MB, free: 11.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.956e-05/0.2816, allocations: 337.8 kB / 383.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.2818, allocations: 74.08 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.282, allocations: 114.5 kB / 383.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.2824, allocations: 198.5 kB / 383.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2824, allocations: 3.188 kB / 383.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000467/0.2829, allocations: 273.4 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2829, allocations: 5.969 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2829, allocations: 2.406 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.2829, allocations: 2.203 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.2832, allocations: 79.92 kB / 384.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2832, allocations: 2.188 kB / 384.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.2834, allocations: 13.52 kB / 384.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2834, allocations: 6.719 kB / 384.1 MB, free: 10.81 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.0001031/0.2835, allocations: 140.8 kB / 384.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.2835, allocations: 18.53 kB / 384.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.2836, allocations: 30.83 kB / 384.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2836, allocations: 2.875 kB / 384.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.2836, allocations: 1.406 kB / 384.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2836, allocations: 6.25 kB / 384.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009323/0.2846, allocations: 0.6576 MB / 384.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2846, allocations: 0 / 384.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.285, allocations: 72.11 kB / 385 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.285, allocations: 5.859 kB / 385 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.285, allocations: 11.56 kB / 385 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.285, allocations: 11.97 kB / 385 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.285, allocations: 1.562 kB / 385 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/0.2856, allocations: 446.3 kB / 385.5 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.2857, allocations: 92.06 kB / 385.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.2857, allocations: 7.188 kB / 385.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.2859, allocations: 15.95 kB / 385.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.286, allocations: 14.56 kB / 385.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.286, allocations: 14.02 kB / 385.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.544e-05/0.2861, allocations: 116.5 kB / 385.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2861, allocations: 1.125 kB / 385.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000322/0.2864, allocations: 58.34 kB / 385.8 MB, free: 9.691 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.0008138/0.2872, allocations: 0.9778 MB / 386.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.2877, allocations: 207.9 kB / 387 MB, free: 8.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2877, allocations: 0 / 387 MB, free: 8.828 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.2879, allocations: 103 kB / 387.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.2884, allocations: 40.14 kB / 387.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.2914, allocations: 2.663 MB / 389.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.2916, allocations: 0.7529 MB / 390.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.2917, allocations: 23.5 kB / 390.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2918, allocations: 77.34 kB / 390.6 MB, free: 6.094 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2918, allocations: 1.062 kB / 390.6 MB, free: 6.094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.3146, allocations: 4.535 MB / 395.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/8.135, allocations: 5.562 kB / 395.2 MB, free: 5.301 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