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.001553/0.001553, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001381, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.274, allocations: 50.52 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004316/0.2784, allocations: 2.433 MB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.2798, allocations: 0.6194 MB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002788/0.2801, allocations: 4 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.2804, allocations: 39.59 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.2807, allocations: 75.27 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.2809, allocations: 55.92 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004746/0.2814, allocations: 310.6 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.2817, allocations: 110.9 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2819, allocations: 103.6 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/0.2821, allocations: 127.4 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.775e-05/0.2822, allocations: 24 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.591e-05/0.2823, allocations: 24 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.741e-05/0.2823, allocations: 55.83 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.2825, allocations: 131.3 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.2829, allocations: 297.8 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2829, allocations: 0 / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2829, allocations: 4 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.283, allocations: 0 / 413.1 MB, free: 13.12 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.0009443/0.2839, allocations: 0.5417 MB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.2839, allocations: 8.031 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.2841, allocations: 58.73 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.798e-05/0.2842, allocations: 32.75 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.2846, allocations: 248.1 kB / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.2846, allocations: 24.88 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.2847, allocations: 35.92 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005712/0.2852, allocations: 224.8 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.2853, allocations: 7.938 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.2853, allocations: 8 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2853, allocations: 8 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004157/0.2857, allocations: 182.1 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.2871, allocations: 0.7541 MB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/0.2876, allocations: 210.5 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.2878, allocations: 120.7 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.2879, allocations: 4 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.2879, allocations: 38.48 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.2879, allocations: 0 / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001906/0.2898, allocations: 0.9633 MB / 416.6 MB, free: 9.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.2899, allocations: 59.39 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.29, allocations: 151.8 kB / 416.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2901, allocations: 33.7 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.2902, allocations: 140.8 kB / 416.9 MB, free: 9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.2903, allocations: 115 kB / 417.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.2904, allocations: 49.7 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.2906, allocations: 334.8 kB / 417.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2907, allocations: 75.91 kB / 417.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.291, allocations: 112.3 kB / 417.6 MB, free: 8.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.2914, allocations: 203.3 kB / 417.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2914, allocations: 0 / 417.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000515/0.2919, allocations: 265.5 kB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2919, allocations: 6.969 kB / 418.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2919, allocations: 0 / 418.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.292, allocations: 4 kB / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.2923, allocations: 71.89 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.2923, allocations: 4 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.2924, allocations: 16 kB / 418.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.2924, allocations: 4 kB / 418.2 MB, free: 7.723 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.0001543/0.2926, allocations: 153.7 kB / 418.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.2927, allocations: 19.86 kB / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.2927, allocations: 26.56 kB / 418.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2927, allocations: 4 kB / 418.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2927, allocations: 0 / 418.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2928, allocations: 3.984 kB / 418.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.2938, allocations: 0.6532 MB / 419 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2939, allocations: 0 / 419 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003345/0.2942, allocations: 71.89 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.787e-05/0.2942, allocations: 4 kB / 419.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.2942, allocations: 7.938 kB / 419.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2943, allocations: 4 kB / 419.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2943, allocations: 0 / 419.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007306/0.295, allocations: 454.7 kB / 419.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-05/0.2951, allocations: 105.2 kB / 419.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.2951, allocations: 11.94 kB / 419.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2953, allocations: 19.98 kB / 419.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.2953, allocations: 11.98 kB / 419.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.2954, allocations: 8 kB / 419.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001043/0.2955, allocations: 115.2 kB / 419.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2955, allocations: 0 / 419.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.2958, allocations: 56 kB / 419.9 MB, free: 5.906 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.001081/0.2969, allocations: 0.9778 MB / 420.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000497/0.2974, allocations: 208.1 kB / 421.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2974, allocations: 0 / 421.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.2976, allocations: 107.8 kB / 421.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00042/0.2981, allocations: 41.41 kB / 421.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.3019, allocations: 2.674 MB / 423.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.3023, allocations: 0.7522 MB / 424.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.502e-05/0.3024, allocations: 17.95 kB / 424.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.3025, allocations: 79.41 kB / 424.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3026, allocations: 0 / 424.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03156/0.3341, allocations: 4.513 MB / 429.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.697, allocations: 9.781 kB / 429.3 MB, free: 12.46 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.1.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