Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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) 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 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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.001401/0.001402, allocations: 111.5 kB / 16.4 MB, free: 6.367 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.001556/0.001556, allocations: 198.7 kB / 17.34 MB, free: 5.844 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.314/1.314, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2002/0.2002, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.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.001463/0.001463, allocations: 73.47 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09691, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003885/0.1008, allocations: 2.837 MB / 0.4902 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1022, allocations: 0.7371 MB / 0.4909 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.1025, allocations: 15.88 kB / 0.4909 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002108/0.1027, allocations: 55.38 kB / 0.4909 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.103, allocations: 134.9 kB / 0.4911 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.1033, allocations: 83.89 kB / 0.4912 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.1038, allocations: 434 kB / 0.4916 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.1041, allocations: 141.5 kB / 0.4917 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.1043, allocations: 167.4 kB / 0.4919 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.1046, allocations: 183.1 kB / 0.492 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.1046, allocations: 36 kB / 0.4921 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.743e-05/0.1047, allocations: 32 kB / 0.4921 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.557e-05/0.1048, allocations: 75.7 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.105, allocations: 199.1 kB / 0.4924 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.1054, allocations: 426.2 kB / 0.4928 GB, free: 6.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1054, allocations: 4 kB / 0.4928 GB, free: 6.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1054, allocations: 0 / 0.4928 GB, free: 6.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1055, allocations: 0 / 0.4928 GB, free: 6.746 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009493/0.1064, allocations: 0.6581 MB / 0.4934 GB, free: 6.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1065, allocations: 15.89 kB / 0.4934 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.405e-05/0.1065, allocations: 70.72 kB / 0.4935 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.424e-05/0.1066, allocations: 44.7 kB / 0.4935 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.107, allocations: 288.5 kB / 0.4938 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.107, allocations: 29.38 kB / 0.4938 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.1071, allocations: 40.33 kB / 0.4939 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.1077, allocations: 394.3 kB / 0.4943 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/0.1078, allocations: 11.95 kB / 0.4943 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.1078, allocations: 16 kB / 0.4943 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1078, allocations: 8 kB / 0.4943 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004175/0.1082, allocations: 219.7 kB / 0.4945 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.1105, allocations: 1.719 MB / 0.4962 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/0.111, allocations: 270.2 kB / 0.4964 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1112, allocations: 98.08 kB / 0.4965 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.1113, allocations: 8 kB / 0.4965 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.1113, allocations: 42.5 kB / 0.4966 GB, free: 2.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 3.998e-06/0.1113, allocations: 4 kB / 0.4966 GB, free: 2.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007542/0.1121, allocations: 261.2 kB / 0.4968 GB, free: 2.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.1122, allocations: 213.6 kB / 0.497 GB, free: 1.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.1125, allocations: 270.9 kB / 0.4973 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.1125, allocations: 38.02 kB / 0.4973 GB, free: 1.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1127, allocations: 248.1 kB / 0.4976 GB, free: 1.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1128, allocations: 119 kB / 0.4977 GB, free: 1.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1129, allocations: 102.3 kB / 0.4978 GB, free: 1.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1131, allocations: 346.7 kB / 0.4981 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.1133, allocations: 97.25 kB / 0.4982 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.1137, allocations: 428.9 kB / 0.4986 GB, free: 192 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006683/0.1144, allocations: 0.5744 MB / 0.4992 GB, free: 15.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.1144, allocations: 4 kB / 0.4992 GB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009137/0.1153, allocations: 0.525 MB / 0.4997 GB, free: 14.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.1154, allocations: 8 kB / 0.4997 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/0.1154, allocations: 20.11 kB / 0.4997 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.283e-05/0.1154, allocations: 16 kB / 0.4997 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.1159, allocations: 148.2 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.116, allocations: 19.94 kB / 0.4999 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.1163, allocations: 71.56 kB / 0.5 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.1164, allocations: 32 kB / 0.5 GB, free: 14.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000261/0.1167, allocations: 185.4 kB / 0.5002 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.1169, allocations: 39.81 kB / 0.5002 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.197e-05/0.117, allocations: 33.78 kB / 0.5002 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.117, allocations: 4 kB / 0.5002 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.117, allocations: 4 kB / 0.5002 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.117, allocations: 3.984 kB / 0.5002 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.1186, allocations: 0.6475 MB / 0.5009 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.1186, allocations: 8.062 kB / 0.5009 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004425/0.1191, allocations: 87.89 kB / 0.501 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.1191, allocations: 4 kB / 0.501 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.1191, allocations: 11.98 kB / 0.501 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.1191, allocations: 7.938 kB / 0.501 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1191, allocations: 3.938 kB / 0.501 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.1199, allocations: 0.8299 MB / 0.5018 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.12, allocations: 105 kB / 0.5019 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.1201, allocations: 15.94 kB / 0.5019 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.1204, allocations: 15.98 kB / 0.5019 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.1205, allocations: 31.83 kB / 0.502 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1206, allocations: 8 kB / 0.502 GB, free: 12.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.1207, allocations: 189.9 kB / 0.5022 GB, free: 12.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1208, allocations: 0 / 0.5022 GB, free: 12.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007987/0.1216, allocations: 99.89 kB / 0.5023 GB, free: 12.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001076/0.1227, allocations: 1.382 MB / 0.5036 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.1232, allocations: 297.6 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1233, allocations: 0.75 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.1234, allocations: 84.28 kB / 0.504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.1245, allocations: 67.78 kB / 0.504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005663/0.1302, allocations: 4.939 MB / 0.5089 GB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.1306, allocations: 0.8027 MB / 0.5096 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.1308, allocations: 43.25 kB / 0.5097 GB, free: 4.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.1309, allocations: 111.4 kB / 0.5098 GB, free: 3.961 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1309, allocations: 0 / 0.5098 GB, free: 3.961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.1577, allocations: 6.606 MB / 0.5162 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.711/7.869, allocations: 0 / 0.5162 GB, free: 13.34 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches