Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3267, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004401/0.3311, allocations: 2.433 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.3326, allocations: 0.6116 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002737/0.3329, allocations: 4 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000249/0.3332, allocations: 35.59 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003441/0.3336, allocations: 87.25 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.3339, allocations: 59.92 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005093/0.3344, allocations: 294.6 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.3347, allocations: 110.9 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.335, allocations: 119.6 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.3352, allocations: 123.5 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.491e-05/0.3353, allocations: 24 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.299e-05/0.3354, allocations: 24 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.887e-05/0.3354, allocations: 51.84 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.3356, allocations: 143.2 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004618/0.3361, allocations: 289.8 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3361, allocations: 0 / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3361, allocations: 0 / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.3361, allocations: 4 kB / 413.1 MB, free: 13.14 MB / 334.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.001012/0.3371, allocations: 0.5379 MB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3372, allocations: 12.03 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.407e-05/0.3373, allocations: 62.72 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.3374, allocations: 28.75 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.3378, allocations: 247.9 kB / 414 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.3379, allocations: 20.88 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.098e-05/0.3379, allocations: 31.94 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/0.3385, allocations: 224.9 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.3386, allocations: 7.953 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.3386, allocations: 8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.3386, allocations: 8 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.3391, allocations: 178.1 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.3405, allocations: 0.7542 MB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/0.3411, allocations: 224.6 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.3414, allocations: 116.8 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3414, allocations: 0 / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.3414, allocations: 42.56 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.874e-06/0.3415, allocations: 0 / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002151/0.3436, allocations: 0.9671 MB / 416.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.3437, allocations: 51.41 kB / 416.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.3439, allocations: 155.8 kB / 416.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.3439, allocations: 29.7 kB / 416.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3441, allocations: 144.8 kB / 417 MB, free: 9.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.731e-05/0.3442, allocations: 115 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.651e-05/0.3443, allocations: 49.7 kB / 417.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3444, allocations: 334.8 kB / 417.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.3446, allocations: 71.95 kB / 417.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.3448, allocations: 116.3 kB / 417.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.3453, allocations: 203.3 kB / 417.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3453, allocations: 0 / 417.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005368/0.3458, allocations: 257.4 kB / 418.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.3458, allocations: 8 kB / 418.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3459, allocations: 0 / 418.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3459, allocations: 8.094 kB / 418.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003335/0.3462, allocations: 75.89 kB / 418.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3462, allocations: 7.984 kB / 418.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.3464, allocations: 11.98 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.3465, allocations: 8 kB / 418.2 MB, free: 7.734 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.000194/0.3467, allocations: 153.6 kB / 418.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.3467, allocations: 19.86 kB / 418.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.09e-05/0.3468, allocations: 34.55 kB / 418.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3468, allocations: 4 kB / 418.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.3468, allocations: 0 / 418.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.3469, allocations: 4 kB / 418.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.348, allocations: 0.6415 MB / 419 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.3481, allocations: 7.969 kB / 419.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.3484, allocations: 72.03 kB / 419.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.3485, allocations: 0 / 419.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.3485, allocations: 11.94 kB / 419.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3485, allocations: 0 / 419.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.3485, allocations: 11.92 kB / 419.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000751/0.3493, allocations: 446.8 kB / 419.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.279e-05/0.3494, allocations: 89.02 kB / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.3494, allocations: 15.94 kB / 419.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3496, allocations: 11.98 kB / 419.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.3497, allocations: 19.97 kB / 419.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3497, allocations: 8 kB / 419.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.3498, allocations: 119.2 kB / 419.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.3498, allocations: 0 / 419.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.3502, allocations: 63.94 kB / 419.9 MB, free: 5.914 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.001112/0.3513, allocations: 0.9739 MB / 420.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005225/0.3518, allocations: 200 kB / 421.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.3519, allocations: 0 / 421.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.3521, allocations: 108.2 kB / 421.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.3526, allocations: 35.98 kB / 421.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00422/0.3569, allocations: 2.678 MB / 423.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.3574, allocations: 0.7522 MB / 424.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.3575, allocations: 17.94 kB / 424.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3577, allocations: 79.41 kB / 424.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3577, allocations: 0 / 424.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.3874, allocations: 4.513 MB / 429.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.311, allocations: 12.28 kB / 429.3 MB, free: 12.48 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches