Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2307/0.2307, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002531/0.002531, allocations: 76.53 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1385, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01972/0.1583, allocations: 11.71 MB / 491.9 MB, free: 9.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.1694, allocations: 3.948 MB / 495.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1711, allocations: 59.88 kB / 495.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.1744, allocations: 1.175 MB / 497.1 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005901/0.1803, allocations: 1.731 MB / 498.8 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.1821, allocations: 0.4912 MB / 499.3 MB, free: 1.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00753/0.1897, allocations: 4.05 MB / 0.4916 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00355/0.1932, allocations: 1.791 MB / 0.4933 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002508/0.1958, allocations: 1.152 MB / 0.4945 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00343/0.1992, allocations: 1.658 MB / 0.4961 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.2003, allocations: 220 kB / 0.4963 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003677/0.204, allocations: 1.073 MB / 0.4973 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003115/0.2071, allocations: 1.582 MB / 0.4989 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003741/0.2109, allocations: 1.836 MB / 0.5007 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2072/0.4181, allocations: 5.819 MB / 0.5064 GB, free: 18.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4182, allocations: 0 / 0.5064 GB, free: 18.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4182, allocations: 2.531 kB / 0.5064 GB, free: 18.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002094/0.4184, allocations: 0 / 0.5064 GB, free: 18.66 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: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.0121/0.4305, allocations: 4.128 MB / 0.5104 GB, free: 17.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.4306, allocations: 10.98 kB / 0.5104 GB, free: 17.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001877/0.4325, allocations: 0.6866 MB / 0.5111 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01263/0.4451, allocations: 3.205 MB / 0.5142 GB, free: 16.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005235/0.4504, allocations: 2.447 MB / 0.5166 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.4506, allocations: 179.6 kB / 0.5168 GB, free: 16.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.4518, allocations: 335.5 kB / 0.5171 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01624/0.4681, allocations: 10.29 MB / 0.5271 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.4682, allocations: 35.59 kB / 0.5272 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004934/0.4687, allocations: 115.6 kB / 0.5273 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003677/0.4724, allocations: 2.43 MB / 0.5296 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.489, allocations: 9.851 MB / 0.5393 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05636/0.5454, allocations: 34.58 MB / 0.573 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00857/0.5541, allocations: 4.296 MB / 0.5772 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003454/0.5575, allocations: 2.15 MB / 0.5793 GB, free: 13.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001529/0.5591, allocations: 1.324 MB / 0.5806 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.5592, allocations: 56.55 kB / 0.5807 GB, free: 11.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=236): time 5.34e-06/0.5592, allocations: 2.078 kB / 0.5807 GB, free: 11.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.04309/0.6023, allocations: 16.73 MB / 0.597 GB, free: 11.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001589/0.6039, allocations: 1.618 MB / 0.5986 GB, free: 9.434 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003828/0.6078, allocations: 2.69 MB / 0.6012 GB, free: 6.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000532/0.6083, allocations: 61.3 kB / 0.6013 GB, free: 6.668 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002042/0.6104, allocations: 2.607 MB / 0.6038 GB, free: 4.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/0.6116, allocations: 0.9257 MB / 0.6047 GB, free: 3.152 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001556/0.6132, allocations: 1.082 MB / 0.6058 GB, free: 2.062 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.6133, allocations: 301.1 kB / 0.6061 GB, free: 1.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003973/0.6173, allocations: 2.396 MB / 0.6084 GB, free: 15.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007429/0.6248, allocations: 5.314 MB / 0.6136 GB, free: 8.672 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/0.638, allocations: 8.386 MB / 0.6218 GB, free: 15.28 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/0.6382, allocations: 31.98 kB / 0.6218 GB, free: 15.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02701/0.6652, allocations: 9.34 MB / 0.6309 GB, free: 6.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.6654, allocations: 48 kB / 0.631 GB, free: 6.184 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01413/0.6796, allocations: 4.563 MB / 0.6354 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01135/0.6909, allocations: 2.098 MB / 0.6375 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/0.6962, allocations: 1.24 MB / 0.6387 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008871/0.7052, allocations: 5.304 MB / 0.6439 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004463/0.7096, allocations: 389.9 kB / 0.6443 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/0.7108, allocations: 316 kB / 0.6446 GB, free: 7.98 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 652 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004014/0.7148, allocations: 2.03 MB / 0.6465 GB, free: 5.941 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007094/0.7155, allocations: 268.6 kB / 0.6468 GB, free: 5.676 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/0.7265, allocations: 5.325 MB / 0.652 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009931/0.7365, allocations: 4.6 MB / 0.6565 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.363e-05/0.7366, allocations: 0 / 0.6565 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-05/0.7367, allocations: 15.95 kB / 0.6565 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03744/0.7741, allocations: 14.31 MB / 0.6705 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.204e-05/0.7742, allocations: 16.23 kB / 0.6705 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/0.7763, allocations: 407.3 kB / 0.6709 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005104/0.7814, allocations: 1.24 MB / 0.6721 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006376/0.7821, allocations: 63.91 kB / 0.6722 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006337/0.7884, allocations: 4.757 MB / 0.6768 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001615/0.7901, allocations: 1.558 MB / 0.6783 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0158/0.8059, allocations: 7.998 MB / 0.6861 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.8071, allocations: 325.6 kB / 0.6864 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009726/0.8081, allocations: 62.25 kB / 0.6865 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/0.8102, allocations: 199.6 kB / 0.6867 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005811/0.8108, allocations: 164.9 kB / 0.6868 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002804/0.8111, allocations: 78.39 kB / 0.6869 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003582/0.8147, allocations: 1.652 MB / 0.6885 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8147, allocations: 0 / 0.6885 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005432/0.8201, allocations: 1.007 MB / 0.6895 GB, free: 9.039 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01518/0.8353, allocations: 8.54 MB / 0.6979 GB, free: 332 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01794/0.8533, allocations: 9.815 MB / 0.7074 GB, free: 6.469 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.191e-05/0.8534, allocations: 4.438 kB / 0.7074 GB, free: 6.465 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005679/0.8591, allocations: 2.851 MB / 0.7102 GB, free: 3.555 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.862, allocations: 380.5 kB / 0.7106 GB, free: 3.191 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3006/1.163, allocations: 47.32 MB / 0.7568 GB, free: 173.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003064/1.166, allocations: 3.184 MB / 0.7599 GB, free: 170.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004366/1.17, allocations: 2.059 MB / 0.7619 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002381/1.173, allocations: 1.694 MB / 0.7636 GB, free: 166.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.173, allocations: 0 / 0.7636 GB, free: 166.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/1.276, allocations: 63.35 MB / 0.8254 GB, free: 103.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.7, allocations: 16.14 kB / 0.8255 GB, free: 103.8 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion_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_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1)