Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",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.001343/0.001343, allocations: 105.7 kB / 16.4 MB, free: 6.402 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.001494/0.001494, allocations: 183.5 kB / 17.34 MB, free: 5.703 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.445/1.445, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2228/0.2228, 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.001636/0.001636, allocations: 65.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1229, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006153/0.1291, allocations: 3.92 MB / 0.4912 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.1323, allocations: 1.286 MB / 0.4925 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008386/0.1332, allocations: 11.94 kB / 0.4925 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005998/0.1339, allocations: 110.9 kB / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001057/0.1349, allocations: 210.2 kB / 0.4928 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.1362, allocations: 343.4 kB / 0.4931 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001853/0.1381, allocations: 1.026 MB / 0.4941 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004368/0.1385, allocations: 186.3 kB / 0.4943 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009618/0.1395, allocations: 438.6 kB / 0.4947 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009675/0.1405, allocations: 490.2 kB / 0.4952 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000281/0.1408, allocations: 76 kB / 0.4952 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004238/0.1412, allocations: 131.9 kB / 0.4954 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.1415, allocations: 199.4 kB / 0.4956 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006594/0.1422, allocations: 406 kB / 0.496 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.1434, allocations: 0.9305 MB / 0.4969 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1434, allocations: 0 / 0.4969 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.1434, allocations: 7.984 kB / 0.4969 GB, free: 2.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.1435, allocations: 0 / 0.4969 GB, free: 2.535 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002557/0.146, allocations: 1.079 MB / 0.4979 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1461, allocations: 15.89 kB / 0.4979 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001764/0.1463, allocations: 110.6 kB / 0.498 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.1465, allocations: 79.94 kB / 0.4981 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007904/0.1473, allocations: 445.6 kB / 0.4985 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.1473, allocations: 49.44 kB / 0.4986 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.1475, allocations: 67.91 kB / 0.4987 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.1492, allocations: 0.8218 MB / 0.4995 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/0.1493, allocations: 4 kB / 0.4995 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.19e-05/0.1493, allocations: 24 kB / 0.4995 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.1494, allocations: 19.94 kB / 0.4995 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.151, allocations: 0.7581 MB / 0.5002 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004603/0.1556, allocations: 2.565 MB / 0.5027 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.157, allocations: 0.6269 MB / 0.5034 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007907/0.1578, allocations: 383.1 kB / 0.5037 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.643e-05/0.1579, allocations: 15.97 kB / 0.5037 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.158, allocations: 43.31 kB / 0.5038 GB, free: 11.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.455e-06/0.158, allocations: 0 / 0.5038 GB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.008339/0.1663, allocations: 3.526 MB / 0.5072 GB, free: 7.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/0.1665, allocations: 140.5 kB / 0.5074 GB, free: 7.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.167, allocations: 433.7 kB / 0.5078 GB, free: 6.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.1671, allocations: 53.69 kB / 0.5078 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.1674, allocations: 288.3 kB / 0.5081 GB, free: 6.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/0.1678, allocations: 260.4 kB / 0.5083 GB, free: 6.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004077/0.1682, allocations: 170.5 kB / 0.5085 GB, free: 5.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003092/0.1685, allocations: 370.8 kB / 0.5089 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009613/0.1695, allocations: 389.8 kB / 0.5092 GB, free: 5.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.1705, allocations: 0.5413 MB / 0.5098 GB, free: 4.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.1721, allocations: 0.7451 MB / 0.5105 GB, free: 3.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/0.1721, allocations: 4 kB / 0.5105 GB, free: 3.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003047/0.1751, allocations: 1.267 MB / 0.5117 GB, free: 2.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.1752, allocations: 16.22 kB / 0.5117 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.1752, allocations: 4 kB / 0.5118 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.1767, allocations: 0.7568 MB / 0.5125 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/0.1773, allocations: 159.7 kB / 0.5126 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/0.18, allocations: 2.686 MB / 0.5153 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.181, allocations: 143.8 kB / 0.5154 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.213e-05/0.1811, allocations: 39.92 kB / 0.5154 GB, free: 14.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003842/0.1815, allocations: 216.2 kB / 0.5156 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.1817, allocations: 67.19 kB / 0.5157 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001996/0.1819, allocations: 83.91 kB / 0.5158 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.182, allocations: 12 kB / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.182, allocations: 0 / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.182, allocations: 11.92 kB / 0.5158 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004491/0.1865, allocations: 2.168 MB / 0.5179 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.1865, allocations: 4 kB / 0.5179 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/0.1871, allocations: 119.7 kB / 0.5181 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.1883, allocations: 0.7218 MB / 0.5188 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.684e-05/0.1884, allocations: 31.97 kB / 0.5188 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.1907, allocations: 2.643 MB / 0.5214 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1907, allocations: 32 / 0.5214 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.194, allocations: 1.771 MB / 0.5231 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.1944, allocations: 216.2 kB / 0.5233 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.1945, allocations: 28 kB / 0.5233 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.1954, allocations: 123.8 kB / 0.5234 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003206/0.1958, allocations: 143.8 kB / 0.5236 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.198e-05/0.1958, allocations: 35.95 kB / 0.5236 GB, free: 5.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003605/0.1962, allocations: 291.1 kB / 0.5239 GB, free: 5.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1962, allocations: 0 / 0.5239 GB, free: 5.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009243/0.1971, allocations: 200 kB / 0.5241 GB, free: 5.512 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00391/0.2011, allocations: 2.363 MB / 0.5264 GB, free: 3.109 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.2033, allocations: 0.9537 MB / 0.5273 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.2033, allocations: 0 / 0.5273 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.2045, allocations: 0.4994 MB / 0.5278 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.2056, allocations: 126 kB / 0.5279 GB, free: 1.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2759/0.4815, allocations: 7.396 MB / 0.5352 GB, free: 38.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.4821, allocations: 0.9066 MB / 0.536 GB, free: 38.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003391/0.4824, allocations: 67.42 kB / 0.5361 GB, free: 38.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.4828, allocations: 214.5 kB / 0.5363 GB, free: 38.21 MB / 414.1 MB Notification: Performance of SimCode: time 1.884e-06/0.4828, allocations: 0 / 0.5363 GB, free: 38.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05366/0.5365, allocations: 21.18 MB / 0.557 GB, free: 30.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.61, allocations: 0 / 0.557 GB, free: 30.74 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_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_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches