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.001224/0.001224, allocations: 104.8 kB / 16.4 MB, free: 6.457 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.001434/0.001434, allocations: 192.2 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.321/1.321, 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.2031/0.2031, 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.001574/0.001574, allocations: 81.44 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.09361, allocations: 57.77 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003256/0.0969, allocations: 2.254 MB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.09822, allocations: 0.7683 MB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.09839, allocations: 4 kB / 0.4903 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.09858, allocations: 39.59 kB / 0.4904 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.09875, allocations: 71.41 kB / 0.4904 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.09916, allocations: 135.8 kB / 0.4906 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.09951, allocations: 331.2 kB / 0.4909 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.09969, allocations: 84.58 kB / 0.491 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.09991, allocations: 143.5 kB / 0.4911 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.1001, allocations: 155.4 kB / 0.4912 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.871e-05/0.1002, allocations: 28 kB / 0.4913 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.1004, allocations: 83.88 kB / 0.4914 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.18e-05/0.1004, allocations: 59.81 kB / 0.4914 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1006, allocations: 139.4 kB / 0.4915 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.101, allocations: 334.7 kB / 0.4919 GB, free: 7.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.101, allocations: 4 kB / 0.4919 GB, free: 7.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.101, allocations: 0 / 0.4919 GB, free: 7.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.101, allocations: 0 / 0.4919 GB, free: 7.68 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.0009439/0.102, allocations: 0.5688 MB / 0.4924 GB, free: 7.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.102, allocations: 11.89 kB / 0.4924 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.388e-05/0.1021, allocations: 54.73 kB / 0.4925 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.818e-05/0.1022, allocations: 24.8 kB / 0.4925 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.1025, allocations: 244 kB / 0.4927 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.1025, allocations: 16.81 kB / 0.4928 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.1026, allocations: 28.33 kB / 0.4928 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.1031, allocations: 271.2 kB / 0.493 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.1032, allocations: 7.984 kB / 0.4931 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.1032, allocations: 4 kB / 0.4931 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1032, allocations: 8 kB / 0.4931 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004736/0.1037, allocations: 237.6 kB / 0.4933 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.105, allocations: 0.7363 MB / 0.494 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.1056, allocations: 238.5 kB / 0.4942 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.1058, allocations: 140.8 kB / 0.4944 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.1059, allocations: 4 kB / 0.4944 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.1059, allocations: 34.56 kB / 0.4944 GB, free: 4.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.697e-06/0.1059, allocations: 0 / 0.4944 GB, free: 4.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003041/0.1089, allocations: 1.457 MB / 0.4958 GB, free: 3.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.109, allocations: 63.41 kB / 0.4959 GB, free: 3.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.1092, allocations: 198.5 kB / 0.4961 GB, free: 3.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.1092, allocations: 37.7 kB / 0.4961 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.1093, allocations: 132.8 kB / 0.4962 GB, free: 2.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.567e-05/0.1094, allocations: 115.1 kB / 0.4964 GB, free: 2.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1095, allocations: 65.69 kB / 0.4964 GB, free: 2.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1097, allocations: 338.8 kB / 0.4967 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.1099, allocations: 123.9 kB / 0.4969 GB, free: 2.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.1102, allocations: 175.2 kB / 0.497 GB, free: 2.055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.1106, allocations: 243.4 kB / 0.4973 GB, free: 1.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1106, allocations: 3.938 kB / 0.4973 GB, free: 1.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007789/0.1114, allocations: 441.9 kB / 0.4977 GB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1115, allocations: 4 kB / 0.4977 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1115, allocations: 0 / 0.4977 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004734/0.1119, allocations: 236.7 kB / 0.4979 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.1122, allocations: 55.91 kB / 0.498 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007056/0.1129, allocations: 0.7591 MB / 0.4987 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.1132, allocations: 35.98 kB / 0.4987 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.1132, allocations: 12 kB / 0.4988 GB, free: 240 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.0001517/0.1134, allocations: 151 kB / 0.4989 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.1134, allocations: 23.8 kB / 0.4989 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.775e-05/0.1135, allocations: 34.72 kB / 0.499 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1135, allocations: 8 kB / 0.499 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1135, allocations: 0 / 0.499 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1135, allocations: 3.984 kB / 0.499 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.1151, allocations: 0.9519 MB / 0.4999 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.1151, allocations: 4 kB / 0.4999 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.1153, allocations: 47.97 kB / 0.4999 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003885/0.1157, allocations: 212.7 kB / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.1158, allocations: 15.98 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006093/0.1164, allocations: 0.7162 MB / 0.5009 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1164, allocations: 0 / 0.5009 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1175, allocations: 0.6419 MB / 0.5015 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.1176, allocations: 129 kB / 0.5016 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.57e-05/0.1177, allocations: 20 kB / 0.5016 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.118, allocations: 36.02 kB / 0.5017 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.1181, allocations: 51.86 kB / 0.5017 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1181, allocations: 12 kB / 0.5017 GB, free: 13.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.1182, allocations: 144.2 kB / 0.5019 GB, free: 12.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1182, allocations: 0 / 0.5019 GB, free: 12.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.1186, allocations: 79.98 kB / 0.5019 GB, free: 12.82 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.001409/0.12, allocations: 1.199 MB / 0.5031 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006961/0.1207, allocations: 323.8 kB / 0.5034 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1207, allocations: 0 / 0.5034 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.1211, allocations: 171.7 kB / 0.5036 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.1215, allocations: 31.59 kB / 0.5036 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.1262, 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.0003241/0.1266, allocations: 0.7525 MB / 0.5074 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.1267, allocations: 26.28 kB / 0.5074 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.1268, allocations: 67.41 kB / 0.5075 GB, free: 6.992 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1268, allocations: 0 / 0.5075 GB, free: 6.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.1531, allocations: 7.567 MB / 0.5149 GB, free: 15.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.25, allocations: 7.938 kB / 0.5149 GB, free: 15.41 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