Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008324/0.0008324, allocations: 175.9 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.254/1.254, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007911/0.000791, allocations: 92.98 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2826/0.2826, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003276, allocations: 15.98 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09349, allocations: 58.85 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.004742/0.09827, allocations: 4.972 MB / 495.9 MB, free: 5.574 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003248/0.1016, allocations: 2.164 MB / 498 MB, free: 3.402 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005923/0.1022, allocations: 39.75 kB / 498.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003628/0.1025, allocations: 158.7 kB / 498.2 MB, free: 3.207 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.1029, allocations: 150.8 kB / 498.4 MB, free: 3.059 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007241/0.1036, allocations: 307.3 kB / 498.7 MB, free: 2.758 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000904/0.1045, allocations: 1.017 MB / 499.7 MB, free: 1.734 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00071/0.1053, allocations: 0.5556 MB / 0.4885 GB, free: 1.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003237/0.1056, allocations: 254.8 kB / 0.4888 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.1059, allocations: 290.4 kB / 0.4891 GB, free: 0.625 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.106, allocations: 36 kB / 0.4891 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.1061, allocations: 79.97 kB / 0.4892 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.1063, allocations: 127.4 kB / 0.4893 GB, free: 396 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1742/0.2804, allocations: 397.2 kB / 0.4897 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.282, allocations: 0.9207 MB / 0.4906 GB, free: 35.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.282, allocations: 0 / 0.4906 GB, free: 35.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.282, allocations: 0.9688 kB / 0.4906 GB, free: 35.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.85e-05/0.2821, allocations: 0 / 0.4906 GB, free: 35.92 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00208/0.2842, allocations: 0.9671 MB / 0.4915 GB, free: 35.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2842, allocations: 10.12 kB / 0.4915 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003002/0.2845, allocations: 138.2 kB / 0.4917 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.2847, allocations: 106 kB / 0.4918 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009323/0.2857, allocations: 0.5623 MB / 0.4923 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.2857, allocations: 72.81 kB / 0.4924 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.2859, allocations: 89.55 kB / 0.4925 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.2877, allocations: 0.884 MB / 0.4933 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/0.2878, allocations: 12.53 kB / 0.4933 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.2879, allocations: 36 kB / 0.4934 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.2879, allocations: 24.42 kB / 0.4934 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.2891, allocations: 0.5194 MB / 0.4939 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.2928, allocations: 3.648 MB / 0.4975 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.2933, allocations: 222.6 kB / 0.4977 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.2935, allocations: 114.3 kB / 0.4978 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001862/0.2937, allocations: 249.2 kB / 0.498 GB, free: 32.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.2937, allocations: 37.3 kB / 0.4981 GB, free: 32.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.485e-06/0.2938, allocations: 0 / 0.4981 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002401/0.2962, allocations: 1.309 MB / 0.4993 GB, free: 31.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.2962, allocations: 54.78 kB / 0.4994 GB, free: 31.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004488/0.2967, allocations: 391.2 kB / 0.4998 GB, free: 31.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.2967, allocations: 39.14 kB / 0.4998 GB, free: 31.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.2969, allocations: 473.5 kB / 0.5002 GB, free: 31.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.297, allocations: 136.6 kB / 0.5004 GB, free: 31.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-05/0.297, allocations: 9.562 kB / 0.5004 GB, free: 31.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.318e-05/0.2971, allocations: 363.9 kB / 0.5007 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.2973, allocations: 114.8 kB / 0.5008 GB, free: 30.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.2976, allocations: 304.4 kB / 0.5011 GB, free: 30.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.2981, allocations: 457.5 kB / 0.5016 GB, free: 30.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2981, allocations: 5.375 kB / 0.5016 GB, free: 30.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008216/0.2989, allocations: 0.5131 MB / 0.5021 GB, free: 30.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.299, allocations: 5.375 kB / 0.5021 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.299, allocations: 8.219 kB / 0.5021 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000195/0.2992, allocations: 41.97 kB / 0.5021 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.2995, allocations: 127 kB / 0.5023 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002838/0.2998, allocations: 0.5623 MB / 0.5028 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.3001, allocations: 18.75 kB / 0.5028 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.3001, allocations: 27.19 kB / 0.5028 GB, free: 29.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003369/0.3005, allocations: 228.9 kB / 0.5031 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.463e-05/0.3006, allocations: 54.52 kB / 0.5031 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005622/0.3011, allocations: 333.8 kB / 0.5034 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3011, allocations: 2.969 kB / 0.5034 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3012, allocations: 0 / 0.5034 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3012, allocations: 0 / 0.5034 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.3025, allocations: 1.062 MB / 0.5045 GB, free: 29.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3025, allocations: 6.328 kB / 0.5045 GB, free: 29.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.3028, allocations: 80.36 kB / 0.5046 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.303, allocations: 33.41 kB / 0.5046 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.303, allocations: 15.36 kB / 0.5046 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002066/0.3032, allocations: 0.5444 MB / 0.5051 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3032, allocations: 0 / 0.5051 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.3039, allocations: 0.5716 MB / 0.5057 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.219e-05/0.304, allocations: 120.9 kB / 0.5058 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.304, allocations: 6.438 kB / 0.5058 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.3042, allocations: 10.5 kB / 0.5058 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.3042, allocations: 27.03 kB / 0.5058 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.3043, allocations: 15.56 kB / 0.5059 GB, free: 28.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002253/0.3045, allocations: 262.1 kB / 0.5061 GB, free: 28.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3045, allocations: 0 / 0.5061 GB, free: 28.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005278/0.305, allocations: 133.6 kB / 0.5062 GB, free: 28.18 MB / 378.7 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.y,inertia2b.w,torqueToAngle2b.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009024/0.3059, allocations: 1.106 MB / 0.5073 GB, free: 27.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005786/0.3065, allocations: 333.5 kB / 0.5076 GB, free: 27.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3065, allocations: 2.438 kB / 0.5076 GB, free: 27.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.3068, allocations: 149.6 kB / 0.5078 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.3073, allocations: 75.03 kB / 0.5079 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005063/0.3124, allocations: 3.834 MB / 0.5116 GB, free: 25.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3128, allocations: 0.9542 MB / 0.5125 GB, free: 24.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.3131, allocations: 299.4 kB / 0.5128 GB, free: 24.71 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3131, allocations: 0 / 0.5128 GB, free: 24.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.484/3.797, allocations: 13.77 MB / 0.5263 GB, free: 23.38 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches