Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion2.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.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotion2",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.0112/0.0112, allocations: 109 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.001275/0.001275, allocations: 182.8 kB / 15.95 MB, free: 5.965 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.078/2.078, allocations: 194.6 MB / 211.2 MB, free: 11.1 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.2736/0.2736, allocations: 40.03 MB / 296.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005188/0.000519, allocations: 12 kB / 361.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1177, allocations: 54.88 MB / 416 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4018/0.5196, allocations: 61.13 MB / 477.2 MB, free: 29.51 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03652/0.5562, allocations: 14.45 MB / 491.6 MB, free: 20.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01381/0.5701, allocations: 308.2 kB / 491.9 MB, free: 20.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01079/0.5809, allocations: 3.118 MB / 495 MB, free: 19.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03397/0.6149, allocations: 8.794 MB / 0.492 GB, free: 15.26 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006082/0.6211, allocations: 0.9193 MB / 0.4929 GB, free: 14.88 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05324/0.6744, allocations: 18.33 MB / 0.5108 GB, free: 9.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01242/0.6869, allocations: 6.289 MB / 0.517 GB, free: 4.445 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003564/0.6905, allocations: 1.51 MB / 0.5184 GB, free: 2.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00418/0.6947, allocations: 2.072 MB / 0.5204 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0013/0.6961, allocations: 212 kB / 0.5207 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00367/0.6998, allocations: 1.018 MB / 0.5216 GB, free: 15.62 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004365/0.7042, allocations: 2.291 MB / 0.5239 GB, free: 13.33 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002674/0.7069, allocations: 1.205 MB / 0.5251 GB, free: 12.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.721, allocations: 8.195 MB / 0.5331 GB, free: 3.898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.7211, allocations: 0 / 0.5331 GB, free: 3.898 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.7211, allocations: 0 / 0.5331 GB, free: 3.898 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003652/0.7215, allocations: 0 / 0.5331 GB, free: 3.898 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02848/0.75, allocations: 6.512 MB / 0.5394 GB, free: 13.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.75, allocations: 8.031 kB / 0.5394 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003576/0.7536, allocations: 0.959 MB / 0.5404 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.347/1.101, allocations: 14.77 MB / 0.5548 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01798/1.119, allocations: 4.991 MB / 0.5597 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000528/1.119, allocations: 336.6 kB / 0.56 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002411/1.122, allocations: 459.5 kB / 0.5604 GB, free: 7.691 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05184/1.174, allocations: 13.7 MB / 0.5738 GB, free: 9.113 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004097/1.174, allocations: 63.44 kB / 0.5739 GB, free: 9.051 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00187/1.176, allocations: 211.8 kB / 0.5741 GB, free: 8.844 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008858/1.185, allocations: 2.43 MB / 0.5764 GB, free: 6.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04683/1.232, allocations: 11.73 MB / 0.5879 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4462/1.678, allocations: 53.77 MB / 0.6404 GB, free: 120 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02354/1.702, allocations: 5.824 MB / 0.6461 GB, free: 119.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/1.703, allocations: 0.6868 MB / 0.6468 GB, free: 118.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.26e-05/1.703, allocations: 63.91 kB / 0.6468 GB, free: 118.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 6.091e-06/1.703, allocations: 0 / 0.6468 GB, free: 118.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.1807/1.883, allocations: 36.77 MB / 0.6827 GB, free: 108 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/1.884, allocations: 263.1 kB / 0.683 GB, free: 107.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/1.894, allocations: 5.643 MB / 0.6885 GB, free: 105.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009826/1.895, allocations: 76.2 kB / 0.6886 GB, free: 105.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003137/1.898, allocations: 4.04 MB / 0.6925 GB, free: 102.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001942/1.9, allocations: 1.202 MB / 0.6937 GB, free: 101.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007696/1.901, allocations: 159.4 kB / 0.6938 GB, free: 101.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004219/1.901, allocations: 0.6318 MB / 0.6944 GB, free: 101.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007981/1.909, allocations: 3.435 MB / 0.6978 GB, free: 99.94 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.92, allocations: 7.648 MB / 0.7053 GB, free: 93.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.932, allocations: 5.047 MB / 0.7102 GB, free: 89.42 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.932, allocations: 44 kB / 0.7102 GB, free: 89.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03643/1.968, allocations: 12.88 MB / 0.7228 GB, free: 76.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.968, allocations: 68 kB / 0.7229 GB, free: 76.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001743/1.969, allocations: 148 kB / 0.723 GB, free: 76.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009586/1.978, allocations: 2.255 MB / 0.7252 GB, free: 73.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01091/1.989, allocations: 1.762 MB / 0.727 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03065/2.02, allocations: 15.76 MB / 0.7423 GB, free: 56.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009332/2.029, allocations: 455.3 kB / 0.7428 GB, free: 55.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/2.031, allocations: 459.3 kB / 0.7432 GB, free: 55.32 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 669 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007272/2.039, allocations: 2.809 MB / 0.746 GB, free: 52.49 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001491/2.04, allocations: 0.4898 MB / 0.7464 GB, free: 52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/2.063, allocations: 7.425 MB / 0.7537 GB, free: 44.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.719e-05/2.063, allocations: 32 kB / 0.7537 GB, free: 44.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.548e-05/2.063, allocations: 12 kB / 0.7537 GB, free: 44.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.778e-05/2.063, allocations: 19.88 kB / 0.7537 GB, free: 44.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04764/2.11, allocations: 16.67 MB / 0.77 GB, free: 27.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.175e-05/2.111, allocations: 12.16 kB / 0.77 GB, free: 27.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005131/2.116, allocations: 0.5148 MB / 0.7705 GB, free: 27.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009257/2.125, allocations: 1.999 MB / 0.7725 GB, free: 25.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000965/2.126, allocations: 67.98 kB / 0.7726 GB, free: 25.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03089/2.157, allocations: 14.23 MB / 0.7865 GB, free: 10.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/2.157, allocations: 8 kB / 0.7865 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03204/2.189, allocations: 12.68 MB / 0.7988 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004598/2.194, allocations: 1.114 MB / 0.7999 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001901/2.196, allocations: 63.94 kB / 0.8 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005636/2.201, allocations: 223.7 kB / 0.8002 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001533/2.203, allocations: 205.5 kB / 0.8004 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006551/2.204, allocations: 99.27 kB / 0.8005 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009512/2.213, allocations: 3.629 MB / 0.804 GB, free: 8.281 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.032e-06/2.213, allocations: 0 / 0.804 GB, free: 8.281 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01043/2.224, allocations: 1.539 MB / 0.8055 GB, free: 6.746 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0379/2.262, allocations: 14.7 MB / 0.8199 GB, free: 7.742 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3413/2.603, allocations: 8.538 MB / 0.8282 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/2.603, allocations: 6.875 kB / 0.8282 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01339/2.616, allocations: 4.113 MB / 0.8323 GB, free: 173.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005072/2.621, allocations: 0.6258 MB / 0.8329 GB, free: 173.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1641/2.786, allocations: 157.5 MB / 0.9867 GB, free: 38.37 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009271/2.795, allocations: 4.53 MB / 0.9911 GB, free: 36.78 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0113/2.806, allocations: 2.524 MB / 0.9935 GB, free: 36.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007219/2.814, allocations: 2.816 MB / 0.9963 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.924e-06/2.814, allocations: 5.203 kB / 0.9963 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6719/3.485, allocations: 122.1 MB / 1.116 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/3.486, allocations: 197.6 kB / 1.116 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/10.69, allocations: 4.062 kB / 1.116 GB, free: 122.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat