Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.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.RollingWheel,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 64.12 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2939, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.RollingWheel): time 0.003689/0.2976, allocations: 2.124 MB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.299, allocations: 0.5727 MB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002315/0.2993, allocations: 11.88 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.2995, allocations: 31.66 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.2997, allocations: 55.55 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.2999, allocations: 47.94 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002833/0.3002, allocations: 199.1 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.3004, allocations: 81.14 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.3006, allocations: 83.66 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.3008, allocations: 83.61 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.3008, allocations: 16 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.582e-05/0.3009, allocations: 16 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.564e-05/0.3009, allocations: 31.92 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.301, allocations: 99.53 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.3014, allocations: 210.1 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3014, allocations: 0 / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3014, allocations: 0 / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.3014, allocations: 0 / 412.4 MB, free: 13.88 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007593/0.3022, allocations: 474.7 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3022, allocations: 8.031 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.469e-05/0.3023, allocations: 58.73 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.064e-05/0.3023, allocations: 16.84 kB / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.3027, allocations: 238.9 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.3027, allocations: 12.16 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.3028, allocations: 16.38 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.3032, allocations: 149.8 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3032, allocations: 7.984 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.3032, allocations: 4 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.3032, allocations: 11.94 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002753/0.3035, allocations: 111.7 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.3047, allocations: 0.5966 MB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.305, allocations: 110.6 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3051, allocations: 52.83 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.3051, allocations: 4 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.3052, allocations: 34.56 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.783e-06/0.3052, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001915/0.3071, allocations: 0.7908 MB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.3072, allocations: 55.34 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.3074, allocations: 162.2 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.3075, allocations: 29.7 kB / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.3076, allocations: 132.4 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.989e-05/0.3077, allocations: 71.42 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.3078, allocations: 37.7 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.308, allocations: 326.8 kB / 415.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.3081, allocations: 47.97 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3083, allocations: 74.97 kB / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.3086, allocations: 131.3 kB / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3086, allocations: 0 / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004343/0.309, allocations: 206.2 kB / 416.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.309, allocations: 8 kB / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3091, allocations: 0 / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.3093, allocations: 44.89 kB / 416.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3094, allocations: 27.98 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.3109, allocations: 1.54 MB / 417.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.45e-05/0.311, allocations: 4.031 kB / 417.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.311, allocations: 11.94 kB / 417.9 MB, free: 7.836 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.3112, allocations: 137.7 kB / 418.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.3112, allocations: 15.89 kB / 418.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.205e-05/0.3113, allocations: 25.25 kB / 418.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3113, allocations: 4 kB / 418.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3113, allocations: 3.938 kB / 418.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3113, allocations: 0 / 418.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008534/0.3122, allocations: 0.5839 MB / 418.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3122, allocations: 0 / 418.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.3123, allocations: 31.98 kB / 418.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.3125, allocations: 32.84 kB / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.3125, allocations: 0 / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.3137, allocations: 1.477 MB / 420.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3137, allocations: 7.938 kB / 420.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000506/0.3142, allocations: 353.1 kB / 420.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.029e-05/0.3143, allocations: 97.03 kB / 420.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.3143, allocations: 0 / 420.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.3144, allocations: 11.98 kB / 420.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.3145, allocations: 7.984 kB / 420.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3145, allocations: 4 kB / 420.7 MB, free: 4.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.688e-05/0.3146, allocations: 124.1 kB / 420.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3146, allocations: 0 / 420.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.3149, allocations: 43.94 kB / 420.9 MB, free: 4.641 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.phi,inertia.w) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008241/0.3158, allocations: 0.8693 MB / 421.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005138/0.3163, allocations: 256.5 kB / 422 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3163, allocations: 0 / 422 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.3166, allocations: 198.5 kB / 422.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.317, allocations: 31.39 kB / 422.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3196, allocations: 2.123 MB / 424.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.32, allocations: 0.7359 MB / 425.1 MB, free: 268 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.514e-05/0.3201, allocations: 17.53 kB / 425.1 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.812e-05/0.3202, allocations: 55.36 kB / 425.1 MB, free: 196 kB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3202, allocations: 0 / 425.1 MB, free: 196 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.346, allocations: 3.754 MB / 428.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.439/9.785, allocations: 4.672 kB / 428.9 MB, free: 12.56 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_RollingWheel.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/RollingWheel/RollingWheel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches