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.00106/0.00106, allocations: 110 kB / 16.41 MB, free: 6.445 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.001035/0.001035, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.508/1.508, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2142/0.2142, 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.001433/0.001433, allocations: 69.47 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1337, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003889/0.1376, allocations: 2.243 MB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.1392, allocations: 0.7761 MB / 0.4903 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.1393, allocations: 4 kB / 0.4903 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.1396, allocations: 39.59 kB / 0.4904 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.1397, allocations: 63.47 kB / 0.4904 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.1402, allocations: 139.7 kB / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004221/0.1406, allocations: 331.3 kB / 0.4909 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1408, allocations: 88.52 kB / 0.491 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.1411, allocations: 143.5 kB / 0.4911 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.1413, allocations: 159.4 kB / 0.4912 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.1414, allocations: 24 kB / 0.4913 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1416, allocations: 83.89 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1417, allocations: 59.81 kB / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1419, allocations: 139.4 kB / 0.4915 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.1423, allocations: 330.9 kB / 0.4919 GB, free: 7.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.1424, allocations: 3.984 kB / 0.4919 GB, free: 7.695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1424, allocations: 4 kB / 0.4919 GB, free: 7.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1424, allocations: 0 / 0.4919 GB, free: 7.691 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.001112/0.1435, allocations: 0.5497 MB / 0.4924 GB, free: 7.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1436, allocations: 15.89 kB / 0.4924 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.356e-05/0.1436, allocations: 62.72 kB / 0.4925 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.72e-05/0.1437, allocations: 24.66 kB / 0.4925 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003986/0.1441, allocations: 247.9 kB / 0.4927 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.1442, allocations: 16.81 kB / 0.4928 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/0.1442, allocations: 28.28 kB / 0.4928 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.1448, allocations: 267.3 kB / 0.493 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1448, allocations: 0 / 0.493 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.1449, allocations: 11.94 kB / 0.493 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1449, allocations: 11.94 kB / 0.4931 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/0.1454, allocations: 241.6 kB / 0.4933 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.1468, allocations: 0.7128 MB / 0.494 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005424/0.1473, allocations: 246.4 kB / 0.4942 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002864/0.1476, allocations: 140.8 kB / 0.4944 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.1477, allocations: 7.984 kB / 0.4944 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.1477, allocations: 30.56 kB / 0.4944 GB, free: 4.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.1477, allocations: 4 kB / 0.4944 GB, free: 4.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003352/0.1511, allocations: 1.456 MB / 0.4958 GB, free: 3.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.1511, allocations: 59.39 kB / 0.4959 GB, free: 3.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1513, allocations: 198.6 kB / 0.4961 GB, free: 3.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.1514, allocations: 37.7 kB / 0.4961 GB, free: 3.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1515, allocations: 132.7 kB / 0.4962 GB, free: 2.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.777e-05/0.1516, allocations: 114.4 kB / 0.4963 GB, free: 2.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.1518, allocations: 65.69 kB / 0.4964 GB, free: 2.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1519, allocations: 338.8 kB / 0.4967 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.1522, allocations: 120 kB / 0.4968 GB, free: 2.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.1525, allocations: 175.2 kB / 0.497 GB, free: 2.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.153, allocations: 243.4 kB / 0.4972 GB, free: 1.836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.153, allocations: 0 / 0.4972 GB, free: 1.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000865/0.1539, allocations: 437.8 kB / 0.4976 GB, free: 1.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.844e-05/0.1539, allocations: 8 kB / 0.4977 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.154, allocations: 0 / 0.4977 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000607/0.1546, allocations: 236.7 kB / 0.4979 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.1548, allocations: 55.91 kB / 0.4979 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009518/0.1558, allocations: 0.7552 MB / 0.4987 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.1561, allocations: 35.98 kB / 0.4987 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.1561, allocations: 16.06 kB / 0.4987 GB, free: 276 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.0002133/0.1563, allocations: 143 kB / 0.4989 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.1564, allocations: 27.66 kB / 0.4989 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.1565, allocations: 38.64 kB / 0.4989 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1565, allocations: 12 kB / 0.4989 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1565, allocations: 0 / 0.4989 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1565, allocations: 0 / 0.4989 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.1583, allocations: 0.9401 MB / 0.4999 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1583, allocations: 8.031 kB / 0.4999 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.1585, allocations: 47.97 kB / 0.4999 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000389/0.1589, allocations: 216.6 kB / 0.5001 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.1589, allocations: 15.92 kB / 0.5001 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006585/0.1596, allocations: 0.7046 MB / 0.5008 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1596, allocations: 8.016 kB / 0.5008 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.1608, allocations: 0.6457 MB / 0.5015 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1609, allocations: 132.8 kB / 0.5016 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.161, allocations: 15.94 kB / 0.5016 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1612, allocations: 36.02 kB / 0.5016 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.1613, allocations: 47.88 kB / 0.5017 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.1614, allocations: 15.98 kB / 0.5017 GB, free: 13.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.1616, allocations: 144.2 kB / 0.5018 GB, free: 12.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1616, allocations: 0 / 0.5018 GB, free: 12.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.1619, allocations: 72 kB / 0.5019 GB, free: 12.87 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.001486/0.1634, allocations: 1.195 MB / 0.5031 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007483/0.1642, allocations: 327.8 kB / 0.5034 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1642, allocations: 4 kB / 0.5034 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.1646, allocations: 167.7 kB / 0.5035 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.165, allocations: 31.42 kB / 0.5036 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005715/0.1707, allocations: 3.101 MB / 0.5066 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.1712, allocations: 0.7525 MB / 0.5073 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.1713, allocations: 22.28 kB / 0.5074 GB, free: 7.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.1715, allocations: 75.41 kB / 0.5074 GB, free: 7.043 MB / 398.1 MB Notification: Performance of SimCode: time 1.323e-06/0.1715, allocations: 0 / 0.5074 GB, free: 7.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.2043, allocations: 7.769 MB / 0.515 GB, free: 15.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.84, allocations: 3.938 kB / 0.515 GB, free: 15.27 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