Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.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.InitializationConversion.Inertia,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_InitializationConversion_Inertia",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.Inertia,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_InitializationConversion_Inertia",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.00143/0.00143, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.251/1.251, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007199/0.0007199, allocations: 85.03 kB / 271.2 MB, free: 8.254 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.3017/0.3017, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003532, allocations: 15.98 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1026, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.Inertia): time 0.002548/0.1052, allocations: 2.608 MB / 493.5 MB, free: 7.941 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006876/0.1059, allocations: 410.5 kB / 493.9 MB, free: 7.539 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.1061, allocations: 11.94 kB / 493.9 MB, free: 7.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.03e-05/0.1062, allocations: 51.61 kB / 494 MB, free: 7.477 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003145/0.1065, allocations: 138.8 kB / 494.1 MB, free: 7.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.1067, allocations: 75.86 kB / 494.2 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005122/0.1072, allocations: 0.5053 MB / 494.7 MB, free: 6.758 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.1075, allocations: 129.2 kB / 494.8 MB, free: 6.625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.1078, allocations: 179.3 kB / 495 MB, free: 6.449 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.1081, allocations: 187.2 kB / 495.2 MB, free: 6.266 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.1082, allocations: 24 kB / 495.2 MB, free: 6.242 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.361e-05/0.1083, allocations: 27.94 kB / 495.2 MB, free: 6.215 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.1084, allocations: 75.75 kB / 495.3 MB, free: 6.141 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.1086, allocations: 248.7 kB / 495.6 MB, free: 5.891 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003426/0.109, allocations: 379.2 kB / 495.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.109, allocations: 0 / 495.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.109, allocations: 0 / 495.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.109, allocations: 0 / 495.9 MB, free: 5.52 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0009384/0.11, allocations: 0.6472 MB / 496.6 MB, free: 4.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.11, allocations: 12.03 kB / 496.6 MB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.1101, allocations: 86.7 kB / 496.7 MB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.418e-05/0.1102, allocations: 52.28 kB / 496.7 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.1105, allocations: 299.3 kB / 497 MB, free: 4.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.1106, allocations: 37.38 kB / 497.1 MB, free: 4.297 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/0.1107, allocations: 56.28 kB / 497.1 MB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.1114, allocations: 454.6 kB / 497.6 MB, free: 3.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.487e-05/0.1114, allocations: 15.84 kB / 497.6 MB, free: 3.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.1114, allocations: 20 kB / 497.6 MB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.1115, allocations: 12 kB / 497.6 MB, free: 3.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.1119, allocations: 259.5 kB / 497.9 MB, free: 3.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.114, allocations: 1.703 MB / 499.6 MB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.1145, allocations: 415.6 kB / 500 MB, free: 1.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.1147, allocations: 159.6 kB / 0.4884 GB, free: 1.008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.1148, allocations: 11.98 kB / 0.4884 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.1148, allocations: 50.5 kB / 0.4885 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.1148, allocations: 0 / 0.4885 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.000676/0.1155, allocations: 353.3 kB / 0.4888 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1156, allocations: 265 kB / 0.489 GB, free: 272 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1158, allocations: 250.6 kB / 0.4893 GB, free: 16 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1659/0.2817, allocations: 30.92 kB / 0.4893 GB, free: 42.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.2819, allocations: 246.1 kB / 0.4895 GB, free: 42.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.282, allocations: 182.7 kB / 0.4897 GB, free: 42.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.282, allocations: 15.38 kB / 0.4897 GB, free: 42.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.929e-05/0.2821, allocations: 345.9 kB / 0.4901 GB, free: 41.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.2823, allocations: 119.1 kB / 0.4902 GB, free: 41.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.2827, allocations: 410.4 kB / 0.4906 GB, free: 41.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/0.2832, allocations: 0.5725 MB / 0.4911 GB, free: 41.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.2833, allocations: 3.25 kB / 0.4911 GB, free: 41.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.000888/0.2842, allocations: 0.5616 MB / 0.4917 GB, free: 41.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.2842, allocations: 8.75 kB / 0.4917 GB, free: 41.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.2842, allocations: 14.56 kB / 0.4917 GB, free: 41.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.339e-05/0.2843, allocations: 24.89 kB / 0.4917 GB, free: 41.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.2848, allocations: 174.5 kB / 0.4919 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.2848, allocations: 20.92 kB / 0.4919 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.2851, allocations: 66.05 kB / 0.492 GB, free: 41.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.2852, allocations: 36.03 kB / 0.492 GB, free: 41.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000208/0.2854, allocations: 180.8 kB / 0.4922 GB, free: 40.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.2856, allocations: 36.91 kB / 0.4922 GB, free: 40.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.512e-05/0.2857, allocations: 49.56 kB / 0.4923 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.2857, allocations: 6.219 kB / 0.4923 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.2858, allocations: 4.641 kB / 0.4923 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.2858, allocations: 3.531 kB / 0.4923 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009938/0.2868, allocations: 416.7 kB / 0.4927 GB, free: 40.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2868, allocations: 5.719 kB / 0.4927 GB, free: 40.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005444/0.2873, allocations: 126 kB / 0.4928 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.2874, allocations: 3.156 kB / 0.4928 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.2874, allocations: 18.53 kB / 0.4928 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.2874, allocations: 4.781 kB / 0.4928 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.2874, allocations: 7.312 kB / 0.4928 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006602/0.2881, allocations: 1.071 MB / 0.4939 GB, free: 39.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.239e-05/0.2882, allocations: 109.5 kB / 0.494 GB, free: 39.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.139e-05/0.2882, allocations: 17.12 kB / 0.494 GB, free: 39.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/0.2886, allocations: 10.03 kB / 0.494 GB, free: 39.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.2887, allocations: 30.19 kB / 0.494 GB, free: 39.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.2887, allocations: 14.62 kB / 0.4941 GB, free: 39.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001328/0.2888, allocations: 170.2 kB / 0.4942 GB, free: 39.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2888, allocations: 4 kB / 0.4942 GB, free: 39.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008009/0.2896, allocations: 140.2 kB / 0.4944 GB, free: 39.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 24 (inertia1.phi,inertia1.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,inertia7.phi,inertia7.w,inertia7a.phi,inertia7a.w,inertia6.phi,inertia6.w,inertia8.phi,inertia8.w,inertia8a.phi,inertia8a.w,inertia9.phi,inertia9.w,inertia9a.phi,inertia9a.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 (42): * Single equations (assignments): 42 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008047/0.2905, allocations: 1.634 MB / 0.496 GB, free: 38.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005101/0.291, allocations: 342.7 kB / 0.4963 GB, free: 38.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.291, allocations: 1.094 kB / 0.4963 GB, free: 38.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001608/0.2912, allocations: 126.9 kB / 0.4964 GB, free: 38.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.2924, allocations: 90.83 kB / 0.4965 GB, free: 38.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.297, allocations: 3.921 MB / 0.5003 GB, free: 35.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.2975, allocations: 0.83 MB / 0.5011 GB, free: 35.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.2977, allocations: 145.5 kB / 0.5013 GB, free: 35.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2977, allocations: 0 / 0.5013 GB, free: 35.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.72/3.018, allocations: 6.169 MB / 0.5073 GB, free: 34.68 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_InitializationConversion_Inertia_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_InitializationConversion_Inertia.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/InitializationConversion/Inertia/Inertia.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches