Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01117/0.01117, allocations: 106 kB / 15.06 MB, free: 6.035 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001253/0.001253, allocations: 182.1 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.095/2.095, allocations: 194.5 MB / 211.3 MB, free: 11.06 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2975/0.2975, allocations: 40.04 MB / 296.5 MB, free: 6.289 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004863/0.0004866, allocations: 12 kB / 361.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1308, allocations: 54.89 MB / 416 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005393/0.1362, allocations: 3.106 MB / 419.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003353/0.1396, allocations: 1.256 MB / 420.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004605/0.1402, allocations: 11.94 kB / 420.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.1404, allocations: 79.38 kB / 420.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007751/0.1412, allocations: 247.3 kB / 420.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009643/0.1422, allocations: 255.6 kB / 421 MB, free: 13.6 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.1435, allocations: 0.63 MB / 421.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003725/0.1439, allocations: 152.8 kB / 421.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008543/0.1447, allocations: 386.7 kB / 422.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008319/0.1456, allocations: 426.5 kB / 422.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1458, allocations: 36 kB / 422.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.1461, allocations: 83.89 kB / 422.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002475/0.1463, allocations: 155.4 kB / 422.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.1466, allocations: 153.3 kB / 423 MB, free: 11.59 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.1476, allocations: 0.639 MB / 423.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1477, allocations: 0 / 423.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1477, allocations: 4 kB / 423.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.1477, allocations: 3.938 kB / 423.6 MB, free: 10.95 MB / 362.7 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.003496/0.1512, allocations: 1.005 MB / 424.6 MB, free: 9.891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.1513, allocations: 8.031 kB / 424.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002189/0.1515, allocations: 102.5 kB / 424.7 MB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.1517, allocations: 79.06 kB / 424.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.1526, allocations: 412.8 kB / 425.2 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.327e-05/0.1527, allocations: 49.31 kB / 425.2 MB, free: 9.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/0.1529, allocations: 71.86 kB / 425.3 MB, free: 9.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002552/0.1555, allocations: 0.8295 MB / 426.1 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.1556, allocations: 7.906 kB / 426.1 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.1557, allocations: 28 kB / 426.2 MB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.1558, allocations: 16 kB / 426.2 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.1587, allocations: 0.7855 MB / 427 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007243/0.166, allocations: 2.648 MB / 429.6 MB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.1684, allocations: 0.6437 MB / 430.3 MB, free: 3.984 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.669e-05/0.1685, allocations: 8.359 kB / 430.3 MB, free: 3.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.1685, allocations: 39.69 kB / 430.3 MB, free: 3.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 3.727e-06/0.1686, allocations: 8 kB / 430.3 MB, free: 3.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.01392/0.1825, allocations: 3.724 MB / 434 MB, free: 15.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1826, allocations: 140.5 kB / 434.2 MB, free: 15.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007378/0.1834, allocations: 425.8 kB / 434.6 MB, free: 15.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.1836, allocations: 53.69 kB / 434.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.1839, allocations: 280.4 kB / 434.9 MB, free: 15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.1843, allocations: 264.4 kB / 435.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.324e-05/0.1844, allocations: 23.98 kB / 435.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1846, allocations: 362.8 kB / 435.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.1861, allocations: 401.8 kB / 436 MB, free: 13.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/0.1877, allocations: 0.5491 MB / 436.5 MB, free: 13.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.1891, allocations: 353.3 kB / 436.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.1891, allocations: 8 kB / 436.9 MB, free: 13.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004787/0.1939, allocations: 1.281 MB / 438.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.194, allocations: 11.98 kB / 438.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.194, allocations: 4 kB / 438.2 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/0.1965, allocations: 0.7608 MB / 438.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.1977, allocations: 147.8 kB / 439.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003829/0.2016, allocations: 2.698 MB / 441.8 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.2034, allocations: 195.6 kB / 441.9 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.2036, allocations: 39.98 kB / 442 MB, free: 7.746 MB / 378.7 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 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005646/0.2042, allocations: 220.2 kB / 442.2 MB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.2044, allocations: 59.34 kB / 442.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.2047, allocations: 87.92 kB / 442.3 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.2047, allocations: 8 kB / 442.4 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.2048, allocations: 3.938 kB / 442.4 MB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.2048, allocations: 3.984 kB / 442.4 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007232/0.212, allocations: 2.198 MB / 444.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.2121, allocations: 0 / 444.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.2133, allocations: 123.9 kB / 444.7 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/0.2155, allocations: 0.7137 MB / 445.4 MB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.2157, allocations: 35.95 kB / 445.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.2193, allocations: 2.635 MB / 448.1 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.2193, allocations: 4.031 kB / 448.1 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3408/0.5601, allocations: 1.844 MB / 449.9 MB, free: 59.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.5607, allocations: 217.5 kB / 450.1 MB, free: 59.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/0.5609, allocations: 28.06 kB / 450.2 MB, free: 59.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.5624, allocations: 172.8 kB / 450.3 MB, free: 59.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005199/0.563, allocations: 169.8 kB / 450.5 MB, free: 59.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.5631, allocations: 34.27 kB / 450.5 MB, free: 59.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004074/0.5635, allocations: 288.9 kB / 450.8 MB, free: 59.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5635, allocations: 0.5625 kB / 450.8 MB, free: 59.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001064/0.5646, allocations: 200.4 kB / 451 MB, free: 59.09 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005396/0.57, allocations: 2.638 MB / 453.6 MB, free: 57.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003217/0.5733, allocations: 0.9748 MB / 454.6 MB, free: 57.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5733, allocations: 0 / 454.6 MB, free: 57.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.5752, allocations: 0.5107 MB / 455.1 MB, free: 57.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5762, allocations: 98.48 kB / 455.2 MB, free: 57.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/0.5918, allocations: 8.156 MB / 463.4 MB, free: 53.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.5923, allocations: 0.9287 MB / 464.3 MB, free: 52.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004661/0.5928, allocations: 58.17 kB / 464.4 MB, free: 52.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.5932, allocations: 209.8 kB / 464.6 MB, free: 52.52 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5932, allocations: 0 / 464.6 MB, free: 52.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05899/0.6522, allocations: 19.08 MB / 483.6 MB, free: 50.24 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.6525, allocations: 194.9 kB / 483.8 MB, free: 50 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.185/3.837, allocations: 4 kB / 483.8 MB, free: 50 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat