Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.001333/0.001333, allocations: 105.3 kB / 16.4 MB, free: 6.465 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.001254/0.001255, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.452/1.452, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2235/0.2235, allocations: 43.53 MB / 314.1 MB, free: 456 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.00214/0.002141, allocations: 77.61 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1181, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004369/0.1225, allocations: 2.242 MB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.1242, allocations: 0.7683 MB / 0.4903 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1244, allocations: 7.938 kB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.1246, allocations: 35.66 kB / 0.4904 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.1249, allocations: 71.39 kB / 0.4904 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004762/0.1253, allocations: 139.7 kB / 0.4906 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.1259, allocations: 327.3 kB / 0.4909 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.1261, allocations: 84.58 kB / 0.491 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002889/0.1264, allocations: 147.5 kB / 0.4911 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003043/0.1267, allocations: 155.4 kB / 0.4913 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/0.1268, allocations: 24 kB / 0.4913 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.127, allocations: 79.94 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.1272, allocations: 63.81 kB / 0.4914 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1274, allocations: 131.4 kB / 0.4915 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005975/0.128, allocations: 346.7 kB / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.128, allocations: 0 / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.128, allocations: 0 / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.128, allocations: 0 / 0.4919 GB, free: 7.688 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001294/0.1293, allocations: 0.5611 MB / 0.4924 GB, free: 7.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.1294, allocations: 19.89 kB / 0.4924 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.285e-05/0.1295, allocations: 54.73 kB / 0.4925 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.1296, allocations: 24.8 kB / 0.4925 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.13, allocations: 244 kB / 0.4927 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.1301, allocations: 20.75 kB / 0.4928 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.1301, allocations: 28.33 kB / 0.4928 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.1307, allocations: 263.3 kB / 0.493 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.1308, allocations: 7.984 kB / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.1308, allocations: 8 kB / 0.4931 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1308, allocations: 4 kB / 0.4931 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006097/0.1314, allocations: 237.6 kB / 0.4933 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.133, allocations: 0.7324 MB / 0.494 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.1336, allocations: 250.5 kB / 0.4942 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.1339, allocations: 140.8 kB / 0.4944 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.134, allocations: 4 kB / 0.4944 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.134, allocations: 34.56 kB / 0.4944 GB, free: 4.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.134, allocations: 0 / 0.4944 GB, free: 4.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003646/0.1377, allocations: 1.453 MB / 0.4958 GB, free: 3.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1378, allocations: 59.41 kB / 0.4959 GB, free: 3.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1381, allocations: 206.5 kB / 0.4961 GB, free: 3.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.1381, allocations: 33.7 kB / 0.4961 GB, free: 3.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1383, allocations: 136.8 kB / 0.4962 GB, free: 2.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1384, allocations: 115 kB / 0.4964 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.1385, allocations: 65.69 kB / 0.4964 GB, free: 2.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1387, allocations: 334.8 kB / 0.4967 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.139, allocations: 127.9 kB / 0.4969 GB, free: 2.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003459/0.1393, allocations: 171.2 kB / 0.497 GB, free: 2.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.1398, allocations: 243.3 kB / 0.4973 GB, free: 1.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1398, allocations: 0 / 0.4973 GB, free: 1.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000881/0.1407, allocations: 442 kB / 0.4977 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1407, allocations: 8 kB / 0.4977 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1408, allocations: 0 / 0.4977 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005502/0.1413, allocations: 240.6 kB / 0.4979 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.1416, allocations: 51.97 kB / 0.498 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008892/0.1425, allocations: 0.7553 MB / 0.4987 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.1427, allocations: 39.92 kB / 0.4987 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.1428, allocations: 12 kB / 0.4988 GB, free: 248 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.143, allocations: 147 kB / 0.4989 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.463e-05/0.1431, allocations: 27.8 kB / 0.4989 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.02e-05/0.1432, allocations: 34.66 kB / 0.499 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1432, allocations: 8.062 kB / 0.499 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1432, allocations: 0 / 0.499 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.1432, allocations: 7.969 kB / 0.499 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.145, allocations: 0.9441 MB / 0.4999 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.145, allocations: 4.031 kB / 0.4999 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.1452, allocations: 55.91 kB / 0.4999 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004384/0.1457, allocations: 208.7 kB / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.1457, allocations: 15.98 kB / 0.5002 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007416/0.1465, allocations: 0.7122 MB / 0.5009 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1465, allocations: 0 / 0.5009 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.1477, allocations: 0.6496 MB / 0.5015 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.1479, allocations: 125 kB / 0.5016 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.826e-05/0.148, allocations: 20 kB / 0.5016 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.1483, allocations: 40.02 kB / 0.5017 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1484, allocations: 47.92 kB / 0.5017 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.1484, allocations: 8 kB / 0.5017 GB, free: 13.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.1486, allocations: 148.2 kB / 0.5019 GB, free: 12.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1486, allocations: 0 / 0.5019 GB, free: 12.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.149, allocations: 79.98 kB / 0.5019 GB, free: 12.83 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001717/0.1508, allocations: 1.195 MB / 0.5031 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008426/0.1516, allocations: 327.8 kB / 0.5034 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1516, allocations: 0 / 0.5034 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.152, allocations: 171.7 kB / 0.5036 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.1524, allocations: 31.97 kB / 0.5036 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.1579, allocations: 3.109 MB / 0.5066 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1584, allocations: 0.7447 MB / 0.5074 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1586, allocations: 22.28 kB / 0.5074 GB, free: 7.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.1587, allocations: 75.41 kB / 0.5075 GB, free: 6.996 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1587, allocations: 0 / 0.5075 GB, free: 6.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03695/0.1957, allocations: 7.568 MB / 0.5149 GB, free: 15.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.29, allocations: 11.38 kB / 0.5149 GB, free: 15.42 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches