Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",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.001434/0.001434, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001604/0.001604, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001311/0.001311, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08874, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1948/0.2836, allocations: 5.401 MB / 380 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003367/0.287, allocations: 2.121 MB / 382.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006528/0.2877, allocations: 40.5 kB / 382.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004525/0.2882, allocations: 200.2 kB / 382.4 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.2886, allocations: 177.1 kB / 382.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000903/0.2895, allocations: 388.3 kB / 383 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.2908, allocations: 1.016 MB / 384 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008288/0.2916, allocations: 0.6062 MB / 384.6 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.2921, allocations: 341.3 kB / 384.9 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.2925, allocations: 357.2 kB / 385.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.2926, allocations: 92.97 kB / 385.4 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000297/0.2929, allocations: 152 kB / 385.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.2931, allocations: 204.3 kB / 385.7 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.2935, allocations: 431.1 kB / 386.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.2949, allocations: 1.184 MB / 387.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2949, allocations: 1.219 kB / 387.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2949, allocations: 0 / 387.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.295, allocations: 4 kB / 387.3 MB, free: 6.789 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001338/0.2963, allocations: 1.048 MB / 388.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2964, allocations: 8.906 kB / 388.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.2965, allocations: 135.7 kB / 388.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.2966, allocations: 92.73 kB / 388.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.2974, allocations: 0.5179 MB / 389.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.2975, allocations: 68.03 kB / 389.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2976, allocations: 88.56 kB / 389.3 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.299, allocations: 0.8057 MB / 390.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.456e-05/0.299, allocations: 4.016 kB / 390.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.699e-05/0.2991, allocations: 40.36 kB / 390.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.2991, allocations: 24.64 kB / 390.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009164/0.3, allocations: 0.4964 MB / 390.6 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.3028, allocations: 2.863 MB / 393.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005223/0.3033, allocations: 227.2 kB / 393.7 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.3035, allocations: 102.2 kB / 393.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.3037, allocations: 246.4 kB / 394.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.3037, allocations: 36.7 kB / 394.1 MB, free: 2.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.3037, allocations: 1.469 kB / 394.1 MB, free: 2.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002105/0.3058, allocations: 1.279 MB / 395.4 MB, free: 1.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.3059, allocations: 55.53 kB / 395.4 MB, free: 1.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.3061, allocations: 302.8 kB / 395.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3062, allocations: 35.08 kB / 395.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.3063, allocations: 411 kB / 396.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.294e-05/0.3064, allocations: 138.4 kB / 396.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3065, allocations: 87.27 kB / 396.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.3066, allocations: 352.4 kB / 396.7 MB, free: 444 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3068, allocations: 105.2 kB / 396.8 MB, free: 408 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.3071, allocations: 249.4 kB / 397.1 MB, free: 192 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/0.3076, allocations: 393.5 kB / 397.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3076, allocations: 1.188 kB / 397.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007553/0.3083, allocations: 462.5 kB / 397.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3084, allocations: 7.219 kB / 397.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3084, allocations: 5.875 kB / 397.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/0.3086, allocations: 33.98 kB / 398 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.309, allocations: 110.8 kB / 398.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004037/0.3094, allocations: 0.5625 MB / 398.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.3096, allocations: 16.33 kB / 398.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.3096, allocations: 21.55 kB / 398.7 MB, free: 15.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002943/0.3099, allocations: 222 kB / 398.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.969e-05/0.31, allocations: 45.73 kB / 398.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006204/0.3106, allocations: 321.1 kB / 399.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3106, allocations: 7.906 kB / 399.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3106, allocations: 0 / 399.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.3107, allocations: 2.062 kB / 399.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.3122, allocations: 1.023 MB / 400.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3122, allocations: 1.5 kB / 400.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003542/0.3125, allocations: 80.61 kB / 400.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001289/0.3127, allocations: 33.36 kB / 400.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.3127, allocations: 10.44 kB / 400.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000343/0.3131, allocations: 0.5534 MB / 400.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3131, allocations: 1.75 kB / 400.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/0.3138, allocations: 0.5532 MB / 401.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.515e-05/0.3139, allocations: 112.1 kB / 401.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.314, allocations: 12.64 kB / 401.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3142, allocations: 9.156 kB / 401.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.3142, allocations: 27.66 kB / 401.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.3143, allocations: 14.09 kB / 401.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.3145, allocations: 216.8 kB / 401.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3145, allocations: 0 / 401.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005616/0.3151, allocations: 117.4 kB / 402 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001161/0.3162, allocations: 1.099 MB / 403.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006115/0.3169, allocations: 307 kB / 403.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3169, allocations: 0 / 403.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.3172, allocations: 137.8 kB / 403.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.3177, allocations: 66.3 kB / 403.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006177/0.3239, allocations: 4.42 MB / 408 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.3246, allocations: 0.9193 MB / 408.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.3248, allocations: 43.39 kB / 409 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.3251, allocations: 245 kB / 409.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3251, allocations: 0 / 409.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.3591, allocations: 8.319 MB / 417.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.13, allocations: 14.34 kB / 417.5 MB, free: 3.262 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches