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.001102/0.001102, allocations: 104.2 kB / 16.4 MB, free: 6.492 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.001172/0.001172, allocations: 192.2 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.365/1.365, 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.2034/0.2034, allocations: 43.53 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.001565/0.001565, allocations: 73.62 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003924/0.1107, allocations: 2.25 MB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.1123, allocations: 0.7761 MB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.1126, allocations: 4 kB / 0.4903 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.1128, allocations: 35.59 kB / 0.4904 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.1131, allocations: 63.47 kB / 0.4904 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000479/0.1136, allocations: 143.7 kB / 0.4906 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.114, allocations: 331.3 kB / 0.4909 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.1142, allocations: 84.52 kB / 0.491 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.1145, allocations: 147.5 kB / 0.4911 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.1147, allocations: 155.4 kB / 0.4913 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.287e-05/0.1148, allocations: 31.98 kB / 0.4913 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.115, allocations: 75.89 kB / 0.4914 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.263e-05/0.1151, allocations: 67.81 kB / 0.4914 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1152, allocations: 131.4 kB / 0.4915 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.1157, allocations: 338.9 kB / 0.4919 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1157, allocations: 4 kB / 0.4919 GB, free: 7.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1157, allocations: 0 / 0.4919 GB, free: 7.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1157, allocations: 0 / 0.4919 GB, free: 7.668 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.001217/0.117, allocations: 0.5498 MB / 0.4924 GB, free: 7.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.117, allocations: 19.81 kB / 0.4924 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.142e-05/0.1171, allocations: 54.73 kB / 0.4925 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/0.1172, allocations: 24.66 kB / 0.4925 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.1176, allocations: 251.9 kB / 0.4927 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.1176, allocations: 12.81 kB / 0.4928 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.1177, allocations: 24.28 kB / 0.4928 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.1182, allocations: 271.3 kB / 0.493 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1182, allocations: 0 / 0.493 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.1183, allocations: 15.94 kB / 0.4931 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1183, allocations: 4 kB / 0.4931 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.1188, allocations: 241.5 kB / 0.4933 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.1201, allocations: 0.7206 MB / 0.494 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000539/0.1207, allocations: 242.4 kB / 0.4942 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.1209, allocations: 144.8 kB / 0.4944 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.121, allocations: 0 / 0.4944 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.121, allocations: 38.56 kB / 0.4944 GB, free: 4.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.142e-06/0.121, allocations: 0 / 0.4944 GB, free: 4.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003132/0.1242, allocations: 1.464 MB / 0.4958 GB, free: 3.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.1242, allocations: 55.41 kB / 0.4959 GB, free: 3.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.1244, allocations: 194.6 kB / 0.4961 GB, free: 3.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.1245, allocations: 37.69 kB / 0.4961 GB, free: 3.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1246, allocations: 128.7 kB / 0.4962 GB, free: 2.895 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.162e-05/0.1247, allocations: 118.4 kB / 0.4963 GB, free: 2.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.1248, allocations: 65.69 kB / 0.4964 GB, free: 2.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.125, allocations: 334.8 kB / 0.4967 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.1252, allocations: 131.9 kB / 0.4968 GB, free: 2.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.1255, allocations: 163.2 kB / 0.497 GB, free: 2.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.1259, allocations: 247.3 kB / 0.4972 GB, free: 1.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1259, allocations: 0 / 0.4972 GB, free: 1.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008189/0.1268, allocations: 437.7 kB / 0.4977 GB, free: 1.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1268, allocations: 4 kB / 0.4977 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1268, allocations: 8.062 kB / 0.4977 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/0.1273, allocations: 240.7 kB / 0.4979 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.1276, allocations: 55.91 kB / 0.4979 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007952/0.1284, allocations: 0.7514 MB / 0.4987 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.1286, allocations: 31.95 kB / 0.4987 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.1287, allocations: 23.88 kB / 0.4987 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.0001663/0.1288, allocations: 143 kB / 0.4989 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.1289, allocations: 27.66 kB / 0.4989 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.435e-05/0.129, allocations: 38.7 kB / 0.4989 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.129, allocations: 4 kB / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.129, allocations: 0 / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.129, allocations: 3.984 kB / 0.4989 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.1306, allocations: 0.9402 MB / 0.4999 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1306, allocations: 3.938 kB / 0.4999 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.1309, allocations: 47.97 kB / 0.4999 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000391/0.1313, allocations: 224.6 kB / 0.5001 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.1313, allocations: 11.98 kB / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006856/0.132, allocations: 0.7046 MB / 0.5008 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.132, allocations: 4.062 kB / 0.5008 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1331, allocations: 0.6417 MB / 0.5015 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.1333, allocations: 128.9 kB / 0.5016 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.688e-05/0.1334, allocations: 15.94 kB / 0.5016 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.1336, allocations: 35.95 kB / 0.5016 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.1337, allocations: 43.92 kB / 0.5017 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.1338, allocations: 12 kB / 0.5017 GB, free: 13.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.1339, allocations: 148.2 kB / 0.5018 GB, free: 12.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1339, allocations: 0 / 0.5018 GB, free: 12.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.1343, allocations: 80 kB / 0.5019 GB, free: 12.86 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.001498/0.1358, allocations: 1.202 MB / 0.5031 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000769/0.1366, allocations: 323.8 kB / 0.5034 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1366, allocations: 0 / 0.5034 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003304/0.1369, allocations: 167.7 kB / 0.5035 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.1374, allocations: 35.53 kB / 0.5036 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004664/0.142, allocations: 3.098 MB / 0.5066 GB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1424, allocations: 0.7525 MB / 0.5073 GB, free: 7.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1425, allocations: 30.28 kB / 0.5074 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1426, allocations: 63.42 kB / 0.5074 GB, free: 7.027 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1426, allocations: 4 kB / 0.5074 GB, free: 7.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.1711, allocations: 7.77 MB / 0.515 GB, free: 15.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.49, allocations: 8.062 kB / 0.515 GB, free: 15.24 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