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.001292/0.001292, allocations: 108.4 kB / 16.4 MB, free: 6.332 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.001247/0.001247, allocations: 187 kB / 17.33 MB, free: 5.816 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.437/1.437, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.2177/0.2177, allocations: 43.53 MB / 314.1 MB, free: 464 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.00212/0.00212, allocations: 71.89 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1211, allocations: 57.78 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004334/0.1255, allocations: 2.841 MB / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.127, allocations: 0.737 MB / 0.4909 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.1273, allocations: 11.94 kB / 0.4909 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.1276, allocations: 51.45 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.1279, allocations: 134.8 kB / 0.4911 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.1282, allocations: 87.88 kB / 0.4912 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.1287, allocations: 430 kB / 0.4916 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.129, allocations: 137.5 kB / 0.4917 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1292, allocations: 163.4 kB / 0.4918 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.1295, allocations: 183.2 kB / 0.492 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.1295, allocations: 36 kB / 0.4921 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.776e-05/0.1296, allocations: 32 kB / 0.4921 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.1297, allocations: 79.7 kB / 0.4922 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.1299, allocations: 199 kB / 0.4924 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.1304, allocations: 426.2 kB / 0.4928 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1304, allocations: 0 / 0.4928 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1304, allocations: 0 / 0.4928 GB, free: 6.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1304, allocations: 0 / 0.4928 GB, free: 6.789 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.001085/0.1315, allocations: 0.6586 MB / 0.4934 GB, free: 6.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.1316, allocations: 15.89 kB / 0.4934 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.1317, allocations: 74.72 kB / 0.4935 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.1318, allocations: 40.7 kB / 0.4935 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/0.1323, allocations: 280.5 kB / 0.4938 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.1323, allocations: 29.38 kB / 0.4938 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/0.1324, allocations: 44.33 kB / 0.4939 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.1331, allocations: 402.1 kB / 0.4943 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.1331, allocations: 7.953 kB / 0.4943 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.1332, allocations: 16 kB / 0.4943 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.1332, allocations: 8 kB / 0.4943 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004676/0.1337, allocations: 223.3 kB / 0.4945 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.1362, allocations: 1.723 MB / 0.4962 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004986/0.1367, allocations: 266.3 kB / 0.4964 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.1369, allocations: 102.1 kB / 0.4965 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.137, allocations: 4 kB / 0.4965 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.137, allocations: 46.5 kB / 0.4966 GB, free: 2.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.454e-06/0.137, allocations: 0 / 0.4966 GB, free: 2.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007491/0.1378, allocations: 265.5 kB / 0.4968 GB, free: 2.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.138, allocations: 221.9 kB / 0.497 GB, free: 2.023 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1383, allocations: 270.8 kB / 0.4973 GB, free: 1.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.1383, allocations: 33.7 kB / 0.4973 GB, free: 1.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1385, allocations: 248.1 kB / 0.4976 GB, free: 1.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.1386, allocations: 119 kB / 0.4977 GB, free: 1.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.1388, allocations: 98.3 kB / 0.4978 GB, free: 1.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.139, allocations: 350.7 kB / 0.4981 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1392, allocations: 105.2 kB / 0.4982 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.1397, allocations: 416.9 kB / 0.4986 GB, free: 228 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007741/0.1405, allocations: 0.5741 MB / 0.4992 GB, free: 15.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.1405, allocations: 4 kB / 0.4992 GB, free: 15.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009106/0.1414, allocations: 0.5287 MB / 0.4997 GB, free: 14.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.1415, allocations: 8 kB / 0.4997 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.1415, allocations: 12 kB / 0.4997 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/0.1415, allocations: 16 kB / 0.4997 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.142, allocations: 147.7 kB / 0.4999 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.429e-05/0.142, allocations: 19.94 kB / 0.4999 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.1424, allocations: 67.88 kB / 0.4999 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.1424, allocations: 36 kB / 0.5 GB, free: 14.65 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.0002354/0.1427, allocations: 185.4 kB / 0.5002 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.1428, allocations: 31.81 kB / 0.5002 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.545e-05/0.1429, allocations: 33.78 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1429, allocations: 4 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.1429, allocations: 4 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.143, allocations: 4.219 kB / 0.5002 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.1443, allocations: 0.652 MB / 0.5009 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1443, allocations: 4 kB / 0.5009 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1447, allocations: 91.94 kB / 0.501 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1448, allocations: 8 kB / 0.501 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.1448, allocations: 15.92 kB / 0.501 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1448, allocations: 7.938 kB / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1448, allocations: 0 / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008042/0.1456, allocations: 0.8377 MB / 0.5018 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.073e-05/0.1457, allocations: 108.9 kB / 0.5019 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.1458, allocations: 11.94 kB / 0.5019 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.1461, allocations: 15.98 kB / 0.5019 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.1462, allocations: 19.91 kB / 0.502 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.1462, allocations: 15.94 kB / 0.502 GB, free: 12.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000171/0.1464, allocations: 190 kB / 0.5022 GB, free: 12.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1464, allocations: 0 / 0.5022 GB, free: 12.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007025/0.1471, allocations: 95.89 kB / 0.5022 GB, free: 12.21 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.001117/0.1482, allocations: 1.385 MB / 0.5036 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005346/0.1488, allocations: 293.8 kB / 0.5039 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1488, allocations: 0 / 0.5039 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.1489, allocations: 91.77 kB / 0.504 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/0.1499, allocations: 61.67 kB / 0.504 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005895/0.1558, allocations: 4.939 MB / 0.5088 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.1563, allocations: 0.8027 MB / 0.5096 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.1565, allocations: 47.25 kB / 0.5097 GB, free: 4.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.1566, allocations: 111.4 kB / 0.5098 GB, free: 3.996 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1566, allocations: 4 kB / 0.5098 GB, free: 3.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.1883, allocations: 6.594 MB / 0.5162 GB, free: 13.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.017/9.205, allocations: 0 / 0.5162 GB, free: 13.38 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