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.001675/0.001675, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.002221/0.002221, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.292/2.292, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.002445/0.002445, allocations: 48.16 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1421, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.005055/0.1472, allocations: 2.415 MB / 329.8 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1487, allocations: 0.6202 MB / 330.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002804/0.149, allocations: 4 kB / 330.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.1493, allocations: 39.58 kB / 330.5 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.1496, allocations: 79.27 kB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.1498, allocations: 59.92 kB / 330.6 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.1503, allocations: 294.7 kB / 330.9 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.1506, allocations: 114.7 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.1508, allocations: 111.6 kB / 331.1 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.151, allocations: 123.5 kB / 331.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.1511, allocations: 24 kB / 331.2 MB, free: 496 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.18e-05/0.1511, allocations: 27.94 kB / 331.3 MB, free: 468 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.1512, allocations: 55.83 kB / 331.3 MB, free: 412 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.1515, allocations: 131.3 kB / 331.5 MB, free: 280 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.152, allocations: 295.2 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.152, allocations: 4 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.152, allocations: 4 kB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.1521, allocations: 0 / 331.8 MB, free: 15.97 MB / 286.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.0009883/0.1531, allocations: 0.5265 MB / 332.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.1531, allocations: 12.03 kB / 332.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.76e-05/0.1532, allocations: 58.73 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.616e-05/0.1534, allocations: 32.55 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.1537, allocations: 244.3 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.1537, allocations: 20.94 kB / 332.6 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.1538, allocations: 31.94 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.1543, allocations: 224.9 kB / 332.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1543, allocations: 3.984 kB / 332.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.1543, allocations: 12 kB / 332.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1544, allocations: 8 kB / 332.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.1548, allocations: 178.1 kB / 333.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.1562, allocations: 0.75 MB / 333.8 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.1567, allocations: 222.5 kB / 334.1 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.157, allocations: 108.8 kB / 334.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.157, allocations: 4 kB / 334.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.157, allocations: 38.56 kB / 334.2 MB, free: 13.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 1.954e-06/0.1571, allocations: 0 / 334.2 MB, free: 13.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.00198/0.159, allocations: 0.965 MB / 335.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.1591, allocations: 59.41 kB / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.1593, allocations: 154.7 kB / 335.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1594, allocations: 29.7 kB / 335.4 MB, free: 12.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1595, allocations: 144.6 kB / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.435e-05/0.1596, allocations: 106.4 kB / 335.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-05/0.1597, allocations: 49.7 kB / 335.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1599, allocations: 334.8 kB / 336 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.1601, allocations: 75.95 kB / 336.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.1603, allocations: 115.2 kB / 336.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.1608, allocations: 199.3 kB / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1608, allocations: 0 / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005335/0.1613, allocations: 265.2 kB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1614, allocations: 7.984 kB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.1614, allocations: 7.984 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1614, allocations: 4.094 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.1617, allocations: 71.91 kB / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1617, allocations: 0 / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.1619, allocations: 15.98 kB / 336.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1619, allocations: 12 kB / 336.8 MB, free: 10.6 MB / 286.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.0001919/0.1621, allocations: 137.7 kB / 336.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.1622, allocations: 15.81 kB / 336.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.245e-05/0.1623, allocations: 34.55 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1623, allocations: 4 kB / 337 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.1623, allocations: 0 / 337 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1623, allocations: 0 / 337 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.1636, allocations: 0.6613 MB / 337.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1636, allocations: 0 / 337.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.1639, allocations: 67.97 kB / 337.7 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.164, allocations: 7.984 kB / 337.7 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.164, allocations: 11.94 kB / 337.7 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.164, allocations: 0 / 337.7 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.164, allocations: 3.938 kB / 337.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.1648, allocations: 442.9 kB / 338.2 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.1649, allocations: 92.91 kB / 338.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.165, allocations: 12 kB / 338.3 MB, free: 9.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.1651, allocations: 8 kB / 338.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.1652, allocations: 19.97 kB / 338.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.1652, allocations: 12 kB / 338.3 MB, free: 8.977 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.1654, allocations: 119.5 kB / 338.4 MB, free: 8.859 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.1654, allocations: 0 / 338.4 MB, free: 8.859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003704/0.1658, allocations: 63.94 kB / 338.5 MB, free: 8.797 MB / 286.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.001193/0.167, allocations: 0.9836 MB / 339.5 MB, free: 7.777 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005709/0.1675, allocations: 211.8 kB / 339.7 MB, free: 7.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1676, allocations: 0 / 339.7 MB, free: 7.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002245/0.1678, allocations: 112.2 kB / 339.8 MB, free: 7.461 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005425/0.1683, allocations: 45.09 kB / 339.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005854/0.1742, allocations: 2.654 MB / 342.5 MB, free: 4.645 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005194/0.1748, allocations: 0.7522 MB / 343.2 MB, free: 3.867 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.175, allocations: 13.95 kB / 343.2 MB, free: 3.852 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.1752, allocations: 83.41 kB / 343.3 MB, free: 3.77 MB / 286.1 MB Notification: Performance of SimCode: time 3.536e-06/0.1752, allocations: 0 / 343.3 MB, free: 3.77 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0394/0.2146, allocations: 4.429 MB / 347.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.57, allocations: 3.938 kB / 347.8 MB, free: 15.28 MB / 302.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