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.001251/0.001251, allocations: 108.3 kB / 17.06 MB, free: 5.957 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.001165/0.001165, allocations: 200 kB / 18.01 MB, free: 5.039 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2454, allocations: 49.44 MB / 400.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004251/0.2497, allocations: 2.42 MB / 402.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.2511, allocations: 0.5765 MB / 403.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.2513, allocations: 7.938 kB / 403.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.2516, allocations: 35.59 kB / 403.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.2518, allocations: 79.33 kB / 403.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.2521, allocations: 71.78 kB / 403.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.2525, allocations: 294.6 kB / 403.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.2527, allocations: 106.9 kB / 403.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.2529, allocations: 119.6 kB / 403.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.2531, allocations: 123.5 kB / 404 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.231e-05/0.2531, allocations: 24 kB / 404.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.2532, allocations: 24 kB / 404.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.952e-05/0.2532, allocations: 55.83 kB / 404.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.2534, allocations: 131.3 kB / 404.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.2538, allocations: 294.8 kB / 404.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2538, allocations: 7.938 kB / 404.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2538, allocations: 0 / 404.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2538, allocations: 0 / 404.6 MB, free: 4.629 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.0008572/0.2547, allocations: 0.5496 MB / 405.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2547, allocations: 8.031 kB / 405.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.979e-05/0.2548, allocations: 58.73 kB / 405.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.152e-05/0.2549, allocations: 28.75 kB / 405.2 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.2552, allocations: 246.2 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.2553, allocations: 20.94 kB / 405.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.2553, allocations: 35.94 kB / 405.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.2558, allocations: 220.9 kB / 405.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.2558, allocations: 4 kB / 405.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.2559, allocations: 8 kB / 405.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.2559, allocations: 8 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003937/0.2563, allocations: 182.1 kB / 405.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.2575, allocations: 0.758 MB / 406.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.258, allocations: 218.4 kB / 406.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.2582, allocations: 112.8 kB / 407 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.2582, allocations: 8 kB / 407 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.2583, allocations: 30.56 kB / 407 MB, free: 1.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.744e-06/0.2583, allocations: 0 / 407 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001735/0.26, allocations: 0.9702 MB / 408 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.2601, allocations: 55.41 kB / 408.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2602, allocations: 150.7 kB / 408.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.2602, allocations: 33.7 kB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2604, allocations: 144.7 kB / 408.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.346e-05/0.2604, allocations: 107.1 kB / 408.5 MB, free: 416 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.2605, allocations: 53.7 kB / 408.5 MB, free: 356 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.2606, allocations: 330.8 kB / 408.9 MB, free: 16 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.2609, allocations: 75.95 kB / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.2611, allocations: 123 kB / 409.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.2615, allocations: 203.3 kB / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.2615, allocations: 0 / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004808/0.262, allocations: 265.4 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.262, allocations: 4 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.262, allocations: 8.078 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.262, allocations: 4 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.2623, allocations: 71.91 kB / 409.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2623, allocations: 4 kB / 409.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.2625, allocations: 11.98 kB / 409.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.2625, allocations: 11.94 kB / 409.6 MB, free: 15.22 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.0001334/0.2626, allocations: 141.7 kB / 409.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.2627, allocations: 19.91 kB / 409.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.2627, allocations: 34.48 kB / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2627, allocations: 4 kB / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2628, allocations: 0 / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2628, allocations: 0 / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009278/0.2637, allocations: 0.6508 MB / 410.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2637, allocations: 4.031 kB / 410.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.264, allocations: 71.91 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.2641, allocations: 0 / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.2641, allocations: 15.92 kB / 410.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.168e-05/0.2641, allocations: 4 kB / 410.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2641, allocations: 0 / 410.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007001/0.2648, allocations: 443.9 kB / 411 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/0.2649, allocations: 96.97 kB / 411.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/0.2649, allocations: 15.98 kB / 411.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.2651, allocations: 12 kB / 411.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.2651, allocations: 15.97 kB / 411.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.2652, allocations: 12 kB / 411.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.082e-05/0.2653, allocations: 123.5 kB / 411.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2653, allocations: 0 / 411.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.2656, allocations: 56 kB / 411.3 MB, free: 13.41 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.0009644/0.2665, allocations: 0.9812 MB / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.267, allocations: 199.9 kB / 412.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.267, allocations: 0 / 412.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.2672, allocations: 124.2 kB / 412.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.2677, allocations: 42.3 kB / 412.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.2711, allocations: 2.658 MB / 415.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.2714, allocations: 0.7599 MB / 416.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.971e-05/0.2715, allocations: 21.94 kB / 416.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2716, allocations: 75.41 kB / 416.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2716, allocations: 0 / 416.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.2962, allocations: 4.516 MB / 420.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.879/8.175, allocations: 11.92 kB / 420.7 MB, free: 3.977 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