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.001639, allocations: 106.2 kB / 16.92 MB, free: 5.773 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.001841/0.001841, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.06/2.06, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 43.52 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1547, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.006811/0.1616, allocations: 2.407 MB / 352.6 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1635, allocations: 0.5765 MB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004257/0.1639, allocations: 7.938 kB / 353.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.1643, allocations: 39.58 kB / 353.2 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004616/0.1648, allocations: 79.33 kB / 353.3 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003683/0.1652, allocations: 63.86 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007503/0.166, allocations: 290.7 kB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.1664, allocations: 118.8 kB / 353.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.1668, allocations: 111.6 kB / 353.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.1671, allocations: 127.5 kB / 354 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.769e-05/0.1672, allocations: 24 kB / 354 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.517e-05/0.1673, allocations: 24 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.1673, allocations: 47.84 kB / 354.1 MB, free: 408 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/0.1676, allocations: 135.3 kB / 354.2 MB, free: 272 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005283/0.1681, allocations: 287.2 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.122e-05/0.1681, allocations: 0 / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.177e-06/0.1682, allocations: 0 / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.1682, allocations: 0 / 354.5 MB, free: 15.98 MB / 302.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.001436/0.1696, allocations: 0.5459 MB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.561e-05/0.1697, allocations: 12.03 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.1699, allocations: 58.73 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.17, allocations: 28.64 kB / 355.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.1704, allocations: 240.4 kB / 355.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.1705, allocations: 20.94 kB / 355.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.1706, allocations: 27.94 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007223/0.1713, allocations: 228.9 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.1714, allocations: 3.906 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.1714, allocations: 12 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1715, allocations: 4 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006299/0.1721, allocations: 178.1 kB / 355.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.174, allocations: 0.7577 MB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.1748, allocations: 229.2 kB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.1752, allocations: 112.8 kB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.1752, allocations: 4 kB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.1753, allocations: 34.56 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 3.717e-06/0.1753, allocations: 0 / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002647/0.1779, allocations: 0.9614 MB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.178, allocations: 59.34 kB / 358 MB, free: 12.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.1782, allocations: 158.9 kB / 358.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1783, allocations: 33.7 kB / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.1784, allocations: 144.6 kB / 358.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1785, allocations: 94.56 kB / 358.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1787, allocations: 53.7 kB / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1789, allocations: 330.8 kB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.1792, allocations: 71.95 kB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.1795, allocations: 119.2 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005824/0.1801, allocations: 199.3 kB / 359.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1801, allocations: 7.938 kB / 359.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007347/0.1809, allocations: 261.3 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.1809, allocations: 6.812 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1809, allocations: 0 / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.181, allocations: 4 kB / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004206/0.1814, allocations: 75.89 kB / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1814, allocations: 4 kB / 359.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.1817, allocations: 20.08 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1817, allocations: 8 kB / 359.5 MB, free: 10.59 MB / 302.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.0001969/0.1819, allocations: 145.9 kB / 359.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.182, allocations: 15.81 kB / 359.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.674e-05/0.1821, allocations: 30.55 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1821, allocations: 4 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1821, allocations: 0 / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.1821, allocations: 0 / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.1837, allocations: 0.6559 MB / 360.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.1837, allocations: 0 / 360.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/0.1842, allocations: 71.91 kB / 360.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.1842, allocations: 4.062 kB / 360.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.1843, allocations: 19.86 kB / 360.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.1843, allocations: 4 kB / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1843, allocations: 0 / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.1853, allocations: 441.3 kB / 360.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.809e-05/0.1855, allocations: 96.91 kB / 361 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.318e-05/0.1855, allocations: 11.98 kB / 361 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.1858, allocations: 12 kB / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/0.1858, allocations: 19.97 kB / 361 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.1859, allocations: 4 kB / 361 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.186, allocations: 124.4 kB / 361.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.186, allocations: 0 / 361.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005028/0.1865, allocations: 56 kB / 361.2 MB, free: 8.781 MB / 302.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.001463/0.188, allocations: 0.985 MB / 362.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007151/0.1887, allocations: 220 kB / 362.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.1888, allocations: 0 / 362.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.1891, allocations: 107.8 kB / 362.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007447/0.1898, allocations: 51.98 kB / 362.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005705/0.1956, allocations: 2.655 MB / 365.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.1961, allocations: 0.7522 MB / 366 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.1963, allocations: 17.95 kB / 366 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.1965, allocations: 75.41 kB / 366.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of SimCode: time 1.433e-06/0.1965, allocations: 0 / 366.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2887/0.4852, allocations: 4.411 MB / 370.5 MB, free: 25.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.09, allocations: 6.125 kB / 370.5 MB, free: 25.19 MB / 302.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