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.001823/0.001823, allocations: 109.4 kB / 17.73 MB, free: 5.32 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.001975/0.001975, allocations: 196.2 kB / 18.67 MB, free: 4.387 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.456/1.456, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001652/0.001652, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09298, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.179/0.272, allocations: 5.409 MB / 380.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003129/0.2752, allocations: 2.112 MB / 382.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006759/0.2759, allocations: 40.75 kB / 382.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004577/0.2764, allocations: 199.5 kB / 382.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004603/0.2769, allocations: 165.2 kB / 382.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009335/0.2778, allocations: 400.9 kB / 383 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.279, allocations: 1.014 MB / 384 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007599/0.2798, allocations: 0.6106 MB / 384.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004112/0.2802, allocations: 335.5 kB / 384.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.2806, allocations: 355.4 kB / 385.3 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.2807, allocations: 100.8 kB / 385.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.281, allocations: 153.3 kB / 385.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.2812, allocations: 198.9 kB / 385.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.2815, allocations: 432.4 kB / 386.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.2829, allocations: 1.18 MB / 387.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2829, allocations: 0 / 387.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2829, allocations: 7.875 kB / 387.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.6e-05/0.2829, allocations: 0 / 387.3 MB, free: 6.66 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.001472/0.2844, allocations: 1.045 MB / 388.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2844, allocations: 9.938 kB / 388.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.2846, allocations: 131.6 kB / 388.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.2847, allocations: 92.45 kB / 388.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007619/0.2855, allocations: 0.5231 MB / 389.1 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.2856, allocations: 68.92 kB / 389.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.2857, allocations: 88.56 kB / 389.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.287, allocations: 0.8066 MB / 390.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/0.2871, allocations: 3.156 kB / 390.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.2872, allocations: 36.56 kB / 390.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.2872, allocations: 23.97 kB / 390.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009217/0.2881, allocations: 0.4948 MB / 390.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002671/0.2908, allocations: 2.862 MB / 393.5 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.2913, allocations: 226.1 kB / 393.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.2915, allocations: 102.6 kB / 393.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.2917, allocations: 249.9 kB / 394 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.2917, allocations: 33.11 kB / 394.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.973e-06/0.2917, allocations: 0 / 394.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002205/0.2939, allocations: 1.273 MB / 395.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.294, allocations: 55.69 kB / 395.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.2943, allocations: 306.7 kB / 395.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2943, allocations: 30.7 kB / 395.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.2945, allocations: 416.4 kB / 396.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.501e-05/0.2946, allocations: 133.7 kB / 396.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.2947, allocations: 94.3 kB / 396.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.2948, allocations: 352.9 kB / 396.7 MB, free: 320 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.295, allocations: 111 kB / 396.8 MB, free: 280 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.2953, allocations: 247.8 kB / 397.1 MB, free: 64 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006124/0.2959, allocations: 389.6 kB / 397.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2959, allocations: 5.125 kB / 397.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007854/0.2967, allocations: 462.9 kB / 397.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2967, allocations: 7.656 kB / 397.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.2968, allocations: 4.656 kB / 397.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.297, allocations: 34.42 kB / 397.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.2974, allocations: 110.7 kB / 398.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005389/0.2979, allocations: 0.5654 MB / 398.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.2981, allocations: 16.88 kB / 398.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.2982, allocations: 25.83 kB / 398.7 MB, free: 14.97 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.0003269/0.2985, allocations: 226.2 kB / 398.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.2986, allocations: 40.8 kB / 398.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006745/0.2993, allocations: 318.8 kB / 399.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.2993, allocations: 7.719 kB / 399.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2993, allocations: 0 / 399.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2993, allocations: 2.891 kB / 399.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.3008, allocations: 1.023 MB / 400.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3009, allocations: 5.531 kB / 400.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.3012, allocations: 76.91 kB / 400.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.3014, allocations: 30.89 kB / 400.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.3014, allocations: 13.64 kB / 400.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003965/0.3018, allocations: 0.5497 MB / 400.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3018, allocations: 1.75 kB / 400.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008349/0.3026, allocations: 0.5521 MB / 401.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3028, allocations: 109.2 kB / 401.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.604e-05/0.3028, allocations: 13.2 kB / 401.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.303, allocations: 11.97 kB / 401.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.303, allocations: 19.72 kB / 401.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.3031, allocations: 17.45 kB / 401.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.3033, allocations: 208.9 kB / 401.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3033, allocations: 1.375 kB / 401.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005327/0.3038, allocations: 115.8 kB / 402 MB, free: 12.79 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.001182/0.305, allocations: 1.105 MB / 403.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006697/0.3057, allocations: 307.3 kB / 403.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3057, allocations: 0.875 kB / 403.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.306, allocations: 140.9 kB / 403.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.3065, allocations: 76.7 kB / 403.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006475/0.313, allocations: 4.411 MB / 408 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.3137, allocations: 0.9223 MB / 408.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.3139, allocations: 47.59 kB / 409 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.3142, allocations: 241.9 kB / 409.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3142, allocations: 0 / 409.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.3512, allocations: 8.314 MB / 417.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.69, allocations: 8.969 kB / 417.5 MB, free: 3.172 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