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.00107/0.00107, allocations: 105.5 kB / 16.41 MB, free: 6.469 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.001108/0.001108, allocations: 189.5 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.368/1.368, 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.1974/0.1974, allocations: 43.52 MB / 314.1 MB, free: 448 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.00146/0.00146, allocations: 61.47 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1126, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005243/0.1178, allocations: 3.927 MB / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002561/0.1204, allocations: 1.282 MB / 0.4925 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005208/0.121, allocations: 15.94 kB / 0.4925 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000406/0.1214, allocations: 114.9 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006598/0.1221, allocations: 210.2 kB / 0.4928 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008675/0.123, allocations: 343.4 kB / 0.4931 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.1242, allocations: 1.03 MB / 0.4941 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.1246, allocations: 174.4 kB / 0.4943 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007617/0.1253, allocations: 454.6 kB / 0.4947 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007315/0.1261, allocations: 490.1 kB / 0.4952 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.1263, allocations: 76 kB / 0.4953 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003318/0.1266, allocations: 131.9 kB / 0.4954 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.1269, allocations: 199.4 kB / 0.4956 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004635/0.1273, allocations: 402.1 kB / 0.496 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.1285, allocations: 0.9416 MB / 0.4969 GB, free: 2.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1285, allocations: 4 kB / 0.4969 GB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1285, allocations: 0 / 0.4969 GB, free: 2.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.313e-05/0.1285, allocations: 0 / 0.4969 GB, free: 2.508 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.002527/0.131, allocations: 1.106 MB / 0.498 GB, free: 1.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.1311, allocations: 15.89 kB / 0.498 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.1312, allocations: 98.7 kB / 0.4981 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.1314, allocations: 84.36 kB / 0.4982 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007326/0.1322, allocations: 450 kB / 0.4986 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/0.1322, allocations: 49.44 kB / 0.4986 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.1324, allocations: 67.95 kB / 0.4987 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.1338, allocations: 0.8218 MB / 0.4995 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/0.1339, allocations: 15.88 kB / 0.4995 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.134, allocations: 24 kB / 0.4995 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.134, allocations: 16 kB / 0.4996 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1355, allocations: 0.762 MB / 0.5003 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.1397, allocations: 2.562 MB / 0.5028 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.1411, allocations: 0.6422 MB / 0.5034 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007573/0.1419, allocations: 375.3 kB / 0.5038 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-05/0.142, allocations: 11.98 kB / 0.5038 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.142, allocations: 43.31 kB / 0.5038 GB, free: 11.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.126e-06/0.142, allocations: 0 / 0.5038 GB, free: 11.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.007761/0.1498, allocations: 3.56 MB / 0.5073 GB, free: 7.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.546e-05/0.1499, allocations: 140.5 kB / 0.5075 GB, free: 7.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.1504, allocations: 429.8 kB / 0.5079 GB, free: 6.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.1505, allocations: 49.7 kB / 0.5079 GB, free: 6.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.1507, allocations: 292.9 kB / 0.5082 GB, free: 6.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002206/0.1509, allocations: 273.8 kB / 0.5084 GB, free: 6.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.1512, allocations: 170.5 kB / 0.5086 GB, free: 5.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1514, allocations: 374.8 kB / 0.509 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007685/0.1522, allocations: 385.8 kB / 0.5093 GB, free: 5.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008476/0.153, allocations: 0.5413 MB / 0.5099 GB, free: 4.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.1543, allocations: 0.7452 MB / 0.5106 GB, free: 3.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1544, allocations: 4 kB / 0.5106 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002696/0.1571, allocations: 1.278 MB / 0.5118 GB, free: 2.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.1571, allocations: 15.97 kB / 0.5119 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.1571, allocations: 4 kB / 0.5119 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.1585, allocations: 0.7567 MB / 0.5126 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.1591, allocations: 159.7 kB / 0.5128 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/0.1614, allocations: 2.686 MB / 0.5154 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.1624, allocations: 147.8 kB / 0.5155 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.874e-05/0.1625, allocations: 40.23 kB / 0.5156 GB, free: 14.51 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.0004157/0.1629, allocations: 212.2 kB / 0.5158 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.1631, allocations: 71.52 kB / 0.5158 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001819/0.1633, allocations: 83.91 kB / 0.5159 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.1633, allocations: 12 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.1634, allocations: 4 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1634, allocations: 3.984 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.1675, allocations: 2.169 MB / 0.518 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.1676, allocations: 3.938 kB / 0.518 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.1681, allocations: 107.9 kB / 0.5182 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.1694, allocations: 0.7215 MB / 0.5189 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.329e-05/0.1695, allocations: 35.95 kB / 0.5189 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.1718, allocations: 2.639 MB / 0.5215 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.1718, allocations: 4.031 kB / 0.5215 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003042/0.1749, allocations: 1.775 MB / 0.5232 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.1753, allocations: 220.5 kB / 0.5234 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1755, allocations: 28 kB / 0.5234 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008368/0.1763, allocations: 119.8 kB / 0.5236 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/0.1766, allocations: 147.9 kB / 0.5237 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/0.1767, allocations: 35.95 kB / 0.5237 GB, free: 5.879 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000307/0.177, allocations: 295.1 kB / 0.524 GB, free: 5.594 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.177, allocations: 0 / 0.524 GB, free: 5.594 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007829/0.1778, allocations: 199.9 kB / 0.5242 GB, free: 5.398 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.003486/0.1813, allocations: 2.371 MB / 0.5265 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.1834, allocations: 0.9508 MB / 0.5274 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1834, allocations: 0 / 0.5274 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.1846, allocations: 0.5111 MB / 0.5279 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.1856, allocations: 108.4 kB / 0.5281 GB, free: 1.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2386/0.4242, allocations: 7.425 MB / 0.5353 GB, free: 39.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.4247, allocations: 0.9053 MB / 0.5362 GB, free: 38.4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.425, allocations: 65.88 kB / 0.5362 GB, free: 38.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.4253, allocations: 215.3 kB / 0.5365 GB, free: 38.38 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4253, allocations: 3.75 kB / 0.5365 GB, free: 38.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04469/0.47, allocations: 21.18 MB / 0.5571 GB, free: 31.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.52, allocations: 4 kB / 0.5571 GB, free: 31.01 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