Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_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.00118/0.00118, allocations: 103.8 kB / 17.63 MB, free: 5.344 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.001278/0.001278, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 242.2 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2195/0.2195, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 60.42 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.123, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004496/0.1275, allocations: 2.818 MB / 472.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1287, allocations: 0.6933 MB / 472.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.1289, allocations: 4 kB / 472.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.1291, allocations: 63.38 kB / 472.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.1293, allocations: 122.9 kB / 473.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.1296, allocations: 87.83 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.13, allocations: 430 kB / 473.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.1303, allocations: 145.5 kB / 473.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.1305, allocations: 171.3 kB / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1308, allocations: 171.2 kB / 474 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-05/0.1308, allocations: 32 kB / 474.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.296e-05/0.1309, allocations: 32 kB / 474.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.131, allocations: 83.69 kB / 474.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.1312, allocations: 191.1 kB / 474.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004368/0.1317, allocations: 430.7 kB / 474.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.1317, allocations: 0 / 474.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.192e-06/0.1317, allocations: 4 kB / 474.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1317, allocations: 3.938 kB / 474.8 MB, free: 8.785 MB / 350.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.0009906/0.1327, allocations: 0.6397 MB / 475.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.1328, allocations: 8.031 kB / 475.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.502e-05/0.1328, allocations: 82.66 kB / 475.5 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.948e-05/0.1329, allocations: 40.47 kB / 475.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.1333, allocations: 276.4 kB / 475.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.1333, allocations: 29.38 kB / 475.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.1334, allocations: 44.27 kB / 475.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006588/0.1341, allocations: 398.3 kB / 476.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.1341, allocations: 7.906 kB / 476.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.1341, allocations: 16 kB / 476.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.1341, allocations: 8 kB / 476.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.1346, allocations: 215.7 kB / 476.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.1369, allocations: 1.727 MB / 478.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.1373, allocations: 262.3 kB / 478.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.1375, allocations: 98.06 kB / 478.6 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.1376, allocations: 15.88 kB / 478.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.1376, allocations: 38.56 kB / 478.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.726e-06/0.1376, allocations: 0 / 478.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006894/0.1383, allocations: 269.4 kB / 478.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.1384, allocations: 217.6 kB / 479.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.1387, allocations: 266.9 kB / 479.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1387, allocations: 33.69 kB / 479.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.1389, allocations: 235.3 kB / 479.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/0.139, allocations: 118.5 kB / 479.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1392, allocations: 102.2 kB / 479.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1393, allocations: 350.7 kB / 480.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.1395, allocations: 97.27 kB / 480.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/0.14, allocations: 428.8 kB / 480.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006819/0.1407, allocations: 0.5663 MB / 481.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.1407, allocations: 4 kB / 481.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008412/0.1415, allocations: 0.524 MB / 481.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.1416, allocations: 12 kB / 481.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1416, allocations: 9.375 kB / 481.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.169e-05/0.1417, allocations: 16 kB / 481.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.1421, allocations: 155.8 kB / 482 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.1421, allocations: 19.92 kB / 482 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.1424, allocations: 67.38 kB / 482.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.1425, allocations: 35.94 kB / 482.1 MB, free: 0.6836 MB / 350.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.0001858/0.1427, allocations: 177.6 kB / 482.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.1428, allocations: 32.05 kB / 482.4 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.283e-05/0.1429, allocations: 37.72 kB / 482.4 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1429, allocations: 8 kB / 482.4 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.1429, allocations: 4 kB / 482.4 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.143, allocations: 3.984 kB / 482.4 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.1442, allocations: 0.6475 MB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.1443, allocations: 4 kB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.1447, allocations: 87.89 kB / 483.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.1447, allocations: 8.062 kB / 483.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.1448, allocations: 8 kB / 483.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.567e-06/0.1448, allocations: 15.86 kB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.1448, allocations: 4 kB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008115/0.1456, allocations: 0.8295 MB / 484 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.1457, allocations: 108.9 kB / 484.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1458, allocations: 11.94 kB / 484.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.1461, allocations: 16 kB / 484.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.1462, allocations: 19.91 kB / 484.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.1462, allocations: 15.98 kB / 484.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.1464, allocations: 182 kB / 484.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1464, allocations: 0 / 484.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007533/0.1471, allocations: 99.75 kB / 484.4 MB, free: 14.26 MB / 366.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.0012/0.1483, allocations: 1.39 MB / 485.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005954/0.1489, allocations: 298.5 kB / 486.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.149, allocations: 0 / 486.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.1491, allocations: 96.39 kB / 486.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.1502, allocations: 79.08 kB / 486.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006189/0.1564, allocations: 4.923 MB / 491.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.1569, allocations: 0.7951 MB / 492 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.1571, allocations: 43.25 kB / 492.1 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.1572, allocations: 111.4 kB / 492.2 MB, free: 6.047 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1572, allocations: 0 / 492.2 MB, free: 6.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.1861, allocations: 6.444 MB / 498.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/7.941, allocations: 12.92 kB / 498.6 MB, free: 15.69 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches