Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_AllComponents",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.01456/0.01456, allocations: 104.4 kB / 15.05 MB, free: 5.555 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.001204/0.001203, allocations: 168 kB / 15.93 MB, free: 5.527 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.69/1.69, allocations: 170.9 MB / 187.5 MB, free: 1 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.2836/0.2836, allocations: 38.08 MB / 265.1 MB, free: 3.969 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.0004519, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/0.08895, allocations: 48.7 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01139/0.1004, allocations: 7.021 MB / 379.3 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008315/0.1088, allocations: 3.052 MB / 382.4 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.1104, allocations: 35.81 kB / 382.4 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008471/0.1113, allocations: 218.3 kB / 382.6 MB, free: 2.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003251/0.1146, allocations: 0.7784 MB / 383.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.1175, allocations: 0.6707 MB / 384 MB, free: 1.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004843/0.1224, allocations: 1.97 MB / 386 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.1239, allocations: 0.6092 MB / 386.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.1263, allocations: 1.059 MB / 387.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.129, allocations: 1.226 MB / 388.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007322/0.1297, allocations: 124 kB / 389 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.1311, allocations: 295.8 kB / 389.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007419/0.1318, allocations: 498.1 kB / 389.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008411/0.1327, allocations: 424.5 kB / 390.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003871/0.1366, allocations: 2.232 MB / 392.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1366, allocations: 0 / 392.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1366, allocations: 0 / 392.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.402e-05/0.1367, allocations: 0 / 392.5 MB, free: 8.59 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.009974/0.1467, allocations: 2.459 MB / 394.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.1468, allocations: 12.03 kB / 394.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008394/0.1476, allocations: 287.1 kB / 395.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.1489, allocations: 281 kB / 395.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.1518, allocations: 1.013 MB / 396.5 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001881/0.1537, allocations: 450.1 kB / 396.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/0.1548, allocations: 223.7 kB / 397.2 MB, free: 3.723 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.1669, allocations: 2.41 MB / 399.6 MB, free: 1.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002511/0.1672, allocations: 27.7 kB / 399.6 MB, free: 1.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005246/0.1678, allocations: 87.98 kB / 399.7 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.255e-05/0.1679, allocations: 48 kB / 399.7 MB, free: 1.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/0.1812, allocations: 2.5 MB / 402.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02085/0.2021, allocations: 6.358 MB / 408.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007608/0.2097, allocations: 2.324 MB / 410.9 MB, free: 5.688 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003543/0.2101, allocations: 42.56 kB / 410.9 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.337e-05/0.2102, allocations: 60.72 kB / 411 MB, free: 5.582 MB / 314.7 MB Notification: Performance of pre-optimization done (n=259): time 6.101e-06/0.2102, allocations: 0 / 411 MB, free: 5.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=314): time 0.04772/0.258, allocations: 13.02 MB / 424 MB, free: 8.082 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/0.2582, allocations: 247.6 kB / 424.3 MB, free: 7.793 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/0.2605, allocations: 1.098 MB / 425.4 MB, free: 6.684 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005128/0.261, allocations: 97.69 kB / 425.5 MB, free: 6.582 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007145/0.2617, allocations: 0.6511 MB / 426.1 MB, free: 5.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001425/0.2632, allocations: 1.055 MB / 427.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.2634, allocations: 60 kB / 427.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002503/0.2637, allocations: 416.2 kB / 427.6 MB, free: 4.379 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004153/0.2679, allocations: 1.068 MB / 428.7 MB, free: 3.309 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004531/0.2724, allocations: 1.454 MB / 430.2 MB, free: 1.738 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004093/0.2766, allocations: 1.095 MB / 431.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.2766, allocations: 0 / 431.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.2896/0.5662, allocations: 3.604 MB / 434.9 MB, free: 58.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.5663, allocations: 8.125 kB / 434.9 MB, free: 58.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.276e-05/0.5663, allocations: 11.34 kB / 434.9 MB, free: 58.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005401/0.5717, allocations: 1.038 MB / 435.9 MB, free: 57.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007136/0.5789, allocations: 0.6608 MB / 436.6 MB, free: 57.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.5945, allocations: 7.595 MB / 444.2 MB, free: 52.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.5982, allocations: 280.1 kB / 444.4 MB, free: 52.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003623/0.5986, allocations: 111.2 kB / 444.5 MB, free: 52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0013/0.5999, allocations: 465.1 kB / 445 MB, free: 51.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005992/0.6005, allocations: 204.7 kB / 445.2 MB, free: 51.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.6026, allocations: 0.6974 MB / 445.9 MB, free: 51.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.663e-05/0.6027, allocations: 31.62 kB / 445.9 MB, free: 51.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/0.6027, allocations: 2.75 kB / 445.9 MB, free: 51.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.051e-05/0.6028, allocations: 16.8 kB / 445.9 MB, free: 51.32 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/0.6266, allocations: 7.625 MB / 453.6 MB, free: 48.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/0.6267, allocations: 8.688 kB / 453.6 MB, free: 48.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004902/0.6316, allocations: 0.601 MB / 454.2 MB, free: 47.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003527/0.6351, allocations: 1.017 MB / 455.2 MB, free: 47.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/0.6355, allocations: 92.05 kB / 455.3 MB, free: 47.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/0.6494, allocations: 10.26 MB / 465.6 MB, free: 37.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-06/0.6495, allocations: 8 kB / 465.6 MB, free: 37.86 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/0.6666, allocations: 6.005 MB / 471.6 MB, free: 31.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/0.6681, allocations: 0.5061 MB / 472.1 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005179/0.6687, allocations: 80 kB / 472.1 MB, free: 30.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003285/0.672, allocations: 267.8 kB / 472.4 MB, free: 30.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/0.6732, allocations: 426.1 kB / 472.8 MB, free: 30.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002961/0.6735, allocations: 107.9 kB / 472.9 MB, free: 30.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001438/0.675, allocations: 0.7528 MB / 473.7 MB, free: 29.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.675, allocations: 4 kB / 473.7 MB, free: 29.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003325/0.6783, allocations: 0.7013 MB / 474.4 MB, free: 28.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 241 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01744/0.6958, allocations: 8.651 MB / 483 MB, free: 19.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.009784/0.7057, allocations: 3.291 MB / 486.3 MB, free: 16.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.7057, allocations: 0 / 486.3 MB, free: 16.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008577/0.7143, allocations: 2.665 MB / 489 MB, free: 13.74 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/0.7171, allocations: 275.3 kB / 489.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06256/0.7797, allocations: 21.21 MB / 0.4985 GB, free: 7.379 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/0.7816, allocations: 1.547 MB / 0.5 GB, free: 5.789 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002116/0.7837, allocations: 296 kB / 0.5003 GB, free: 5.496 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/0.7856, allocations: 0.796 MB / 0.5011 GB, free: 4.699 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7856, allocations: 4 kB / 0.5011 GB, free: 4.695 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1352/0.9208, allocations: 50.54 MB / 0.5504 GB, free: 2.23 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.921, allocations: 204.7 kB / 0.5506 GB, free: 1.984 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.753/5.674, allocations: 0 / 0.5506 GB, free: 1.984 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat