Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01096/0.01097, allocations: 104.5 kB / 15.06 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001199/0.001199, allocations: 171.6 kB / 15.93 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.634/1.634, allocations: 170.9 MB / 187.5 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2702/0.2702, allocations: 38.09 MB / 265.1 MB, free: 3.973 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004677, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09614, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003264/0.09946, allocations: 1.765 MB / 374 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.1015, allocations: 0.7487 MB / 374.8 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.1018, allocations: 7.875 kB / 374.8 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.102, allocations: 23.84 kB / 374.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.1023, allocations: 75.77 kB / 374.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.1028, allocations: 95.81 kB / 375 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.1033, allocations: 204 kB / 375.2 MB, free: 9.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.1036, allocations: 72.62 kB / 375.3 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.1039, allocations: 119.6 kB / 375.4 MB, free: 9.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.1042, allocations: 135.5 kB / 375.5 MB, free: 9.609 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.105e-05/0.1043, allocations: 15.94 kB / 375.5 MB, free: 9.594 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002872/0.1046, allocations: 99.92 kB / 375.6 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.994e-05/0.1047, allocations: 51.81 kB / 375.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.556e-05/0.1048, allocations: 69.56 kB / 375.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.1053, allocations: 243.7 kB / 376 MB, free: 9.133 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1053, allocations: 0 / 376 MB, free: 9.133 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1053, allocations: 0 / 376 MB, free: 9.133 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1053, allocations: 0 / 376 MB, free: 9.133 MB / 282.7 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.001405/0.1067, allocations: 0.5302 MB / 376.5 MB, free: 8.555 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.1068, allocations: 8.031 kB / 376.5 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.1069, allocations: 54.55 kB / 376.6 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.724e-05/0.107, allocations: 31.56 kB / 376.6 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.1074, allocations: 244.1 kB / 376.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.1075, allocations: 16.44 kB / 376.9 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.1076, allocations: 20 kB / 376.9 MB, free: 8.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.1084, allocations: 251.2 kB / 377.1 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.1085, allocations: 4 kB / 377.1 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.1085, allocations: 8 kB / 377.1 MB, free: 7.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1085, allocations: 4 kB / 377.1 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.1094, allocations: 241.5 kB / 377.4 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.1117, allocations: 0.7246 MB / 378.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009216/0.1127, allocations: 250.4 kB / 378.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.1128, allocations: 80 / 378.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.1129, allocations: 39 kB / 378.4 MB, free: 6.562 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 2.385e-06/0.1129, allocations: 0 / 378.4 MB, free: 6.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.00563/0.1185, allocations: 1.555 MB / 379.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.1186, allocations: 55.41 kB / 380 MB, free: 4.828 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.1189, allocations: 198.5 kB / 380.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.869e-05/0.119, allocations: 37.7 kB / 380.2 MB, free: 4.578 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1191, allocations: 132.7 kB / 380.4 MB, free: 4.445 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.1193, allocations: 114.4 kB / 380.5 MB, free: 4.332 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.1193, allocations: 4 kB / 380.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1195, allocations: 338.8 kB / 380.8 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/0.1199, allocations: 123.9 kB / 380.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004533/0.1204, allocations: 172.1 kB / 381.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.1208, allocations: 107.8 kB / 381.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1208, allocations: 0 / 381.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001699/0.1225, allocations: 0.5172 MB / 381.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.1226, allocations: 4 kB / 381.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1226, allocations: 0 / 381.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007161/0.1234, allocations: 192.7 kB / 381.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004342/0.1238, allocations: 51.91 kB / 382 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.125, allocations: 0.7358 MB / 382.7 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.1256, allocations: 56.02 kB / 382.7 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.1256, allocations: 8 kB / 382.8 MB, free: 1.984 MB / 282.7 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002597/0.1259, allocations: 149.8 kB / 382.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.126, allocations: 23.72 kB / 382.9 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/0.1262, allocations: 38.64 kB / 383 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1262, allocations: 8 kB / 383 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.1262, allocations: 0 / 383 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1262, allocations: 0 / 383 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.129, allocations: 1.007 MB / 384 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.129, allocations: 8.031 kB / 384 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.1295, allocations: 43.97 kB / 384 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006344/0.1302, allocations: 172.7 kB / 384.2 MB, free: 472 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.1302, allocations: 4 kB / 384.2 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009849/0.1312, allocations: 0.7006 MB / 384.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1313, allocations: 4.062 kB / 384.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.1334, allocations: 0.7095 MB / 385.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.1337, allocations: 128.8 kB / 385.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.781e-05/0.1338, allocations: 12 kB / 385.8 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.1344, allocations: 52.02 kB / 385.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.1346, allocations: 51.88 kB / 385.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.1346, allocations: 15.98 kB / 385.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.1349, allocations: 152 kB / 386 MB, free: 14.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.1349, allocations: 4 kB / 386 MB, free: 14.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005725/0.1355, allocations: 76.09 kB / 386.1 MB, free: 14.49 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002813/0.1383, allocations: 1.346 MB / 387.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.1396, allocations: 323.9 kB / 387.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1396, allocations: 0 / 387.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000589/0.1402, allocations: 155.8 kB / 387.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.1407, allocations: 32.62 kB / 387.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006563/0.1473, allocations: 2.393 MB / 390.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.1478, allocations: 0.7529 MB / 391.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.148, allocations: 26.28 kB / 391.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.1482, allocations: 67.36 kB / 391.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of SimCode: time 1.312e-06/0.1482, allocations: 0 / 391.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.1842, allocations: 6.338 MB / 397.5 MB, free: 3.055 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003337/0.1846, allocations: 226.4 kB / 397.7 MB, free: 2.805 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/2.845, allocations: 0 / 397.7 MB, free: 2.805 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat