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.001294/0.001294, allocations: 109.5 kB / 16.41 MB, free: 6.504 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.001286/0.001286, allocations: 191.4 kB / 17.34 MB, free: 5.738 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.444/1.444, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.2181/0.2181, allocations: 43.52 MB / 314.1 MB, free: 452 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.002136/0.002136, allocations: 67.27 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1103, 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.003646/0.114, allocations: 2.245 MB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1155, allocations: 0.7761 MB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1156, allocations: 4 kB / 0.4903 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.1158, allocations: 35.59 kB / 0.4904 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.116, allocations: 67.41 kB / 0.4904 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.1164, allocations: 131.8 kB / 0.4906 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.1168, allocations: 335.3 kB / 0.4909 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.117, allocations: 84.56 kB / 0.491 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.1173, allocations: 147.5 kB / 0.4911 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.1175, allocations: 151.4 kB / 0.4912 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.1176, allocations: 28 kB / 0.4913 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.1178, allocations: 79.89 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1179, allocations: 63.8 kB / 0.4914 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.118, allocations: 131.4 kB / 0.4915 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.1185, allocations: 346.7 kB / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1185, allocations: 0 / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1186, allocations: 0 / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1186, 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.001015/0.1196, allocations: 0.561 MB / 0.4924 GB, free: 7.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1196, allocations: 15.89 kB / 0.4924 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.176e-05/0.1197, allocations: 58.73 kB / 0.4925 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.1198, allocations: 24.8 kB / 0.4925 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.1202, allocations: 248 kB / 0.4927 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.1202, allocations: 20.81 kB / 0.4928 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.1203, allocations: 24.33 kB / 0.4928 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.1208, allocations: 271.2 kB / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1208, allocations: 0 / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.1209, allocations: 12 kB / 0.4931 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.1209, allocations: 4 kB / 0.4931 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000536/0.1214, allocations: 245.6 kB / 0.4933 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.1228, allocations: 0.7246 MB / 0.494 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.1234, allocations: 246.5 kB / 0.4942 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.1237, allocations: 140.8 kB / 0.4944 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1238, allocations: 4 kB / 0.4944 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1238, allocations: 30.56 kB / 0.4944 GB, free: 4.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.807e-06/0.1238, allocations: 4 kB / 0.4944 GB, free: 4.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003563/0.1274, allocations: 1.457 MB / 0.4958 GB, free: 3.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.1274, allocations: 55.41 kB / 0.4959 GB, free: 3.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.1277, allocations: 202.5 kB / 0.4961 GB, free: 3.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.1277, allocations: 41.69 kB / 0.4961 GB, free: 3.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1279, allocations: 132.8 kB / 0.4962 GB, free: 2.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.128, allocations: 115.1 kB / 0.4964 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.1281, allocations: 65.69 kB / 0.4964 GB, free: 2.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1283, allocations: 338.8 kB / 0.4967 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.1286, allocations: 123.9 kB / 0.4969 GB, free: 2.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.1289, allocations: 175.2 kB / 0.497 GB, free: 2.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004771/0.1294, allocations: 239.4 kB / 0.4973 GB, free: 1.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1294, allocations: 3.938 kB / 0.4973 GB, free: 1.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008812/0.1303, allocations: 442 kB / 0.4977 GB, free: 1.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1303, allocations: 4 kB / 0.4977 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1303, allocations: 0 / 0.4977 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005413/0.1308, allocations: 236.7 kB / 0.4979 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.1311, allocations: 59.89 kB / 0.498 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008728/0.132, allocations: 0.7591 MB / 0.4987 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.1323, allocations: 35.98 kB / 0.4987 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.1323, allocations: 12 kB / 0.4988 GB, free: 244 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.0001829/0.1325, allocations: 147 kB / 0.4989 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.1326, allocations: 31.77 kB / 0.4989 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.47e-05/0.1327, allocations: 34.66 kB / 0.499 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1327, allocations: 4.062 kB / 0.499 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1327, allocations: 4 kB / 0.499 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.1327, allocations: 7.984 kB / 0.499 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.1345, allocations: 0.9402 MB / 0.4999 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1345, allocations: 8.016 kB / 0.4999 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.1347, allocations: 47.92 kB / 0.4999 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004446/0.1352, allocations: 216.6 kB / 0.5002 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1352, allocations: 11.98 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007264/0.136, allocations: 0.7162 MB / 0.5009 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.136, allocations: 0 / 0.5009 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.1372, allocations: 0.6419 MB / 0.5015 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.1373, allocations: 129 kB / 0.5016 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.1374, allocations: 15.94 kB / 0.5016 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.1377, allocations: 36.02 kB / 0.5017 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.1378, allocations: 51.86 kB / 0.5017 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.1379, allocations: 12 kB / 0.5017 GB, free: 13.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001523/0.138, allocations: 144.2 kB / 0.5019 GB, free: 12.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.138, allocations: 0 / 0.5019 GB, free: 12.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000425/0.1385, allocations: 75.98 kB / 0.5019 GB, free: 12.84 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.001665/0.1401, allocations: 1.195 MB / 0.5031 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008405/0.141, allocations: 331.8 kB / 0.5034 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.141, allocations: 0 / 0.5034 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003955/0.1414, allocations: 167.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.0004316/0.1419, allocations: 34.83 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.005499/0.1474, allocations: 3.109 MB / 0.5066 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.1478, allocations: 0.7526 MB / 0.5074 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.148, allocations: 26.22 kB / 0.5074 GB, free: 7.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1481, allocations: 71.42 kB / 0.5075 GB, free: 6.992 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1481, allocations: 0 / 0.5075 GB, free: 6.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.1831, allocations: 7.564 MB / 0.5149 GB, free: 15.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.57, allocations: 0 / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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