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.001663/0.001663, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2672/0.2672, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002217/0.002217, allocations: 80.38 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1321, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01736/0.1495, allocations: 11.71 MB / 491.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009513/0.159, allocations: 3.944 MB / 495.9 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.1607, allocations: 59.88 kB / 495.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.1635, allocations: 1.179 MB / 497.1 MB, free: 4.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004218/0.1678, allocations: 1.724 MB / 498.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.169, allocations: 499 kB / 499.3 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005612/0.1746, allocations: 4.051 MB / 0.4916 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.1771, allocations: 1.791 MB / 0.4933 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001772/0.1789, allocations: 1.152 MB / 0.4944 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002706/0.1816, allocations: 1.662 MB / 0.4961 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005369/0.1821, allocations: 216 kB / 0.4963 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.1843, allocations: 1.076 MB / 0.4973 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00195/0.1863, allocations: 1.582 MB / 0.4989 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002335/0.1886, allocations: 1.84 MB / 0.5007 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.239/0.4277, allocations: 5.822 MB / 0.5063 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.4277, allocations: 0.9062 kB / 0.5063 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4278, allocations: 0.8906 kB / 0.5063 GB, free: 18.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002576/0.428, allocations: 0 / 0.5063 GB, free: 18.69 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.009481/0.4375, allocations: 4.124 MB / 0.5104 GB, free: 17.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4376, allocations: 9.594 kB / 0.5104 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001312/0.4389, allocations: 0.6946 MB / 0.5111 GB, free: 16.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01268/0.4516, allocations: 3.2 MB / 0.5142 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006047/0.4577, allocations: 2.454 MB / 0.5166 GB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.4579, allocations: 175.6 kB / 0.5168 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001877/0.4598, allocations: 333.1 kB / 0.5171 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.4786, allocations: 10.29 MB / 0.5271 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000121/0.4787, allocations: 31.72 kB / 0.5272 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004367/0.4792, allocations: 114.3 kB / 0.5273 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003597/0.4828, allocations: 2.432 MB / 0.5296 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01699/0.4998, allocations: 9.855 MB / 0.5393 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05315/0.553, allocations: 34.57 MB / 0.573 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008121/0.5612, allocations: 4.301 MB / 0.5772 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005044/0.5662, allocations: 2.157 MB / 0.5793 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002/0.5683, allocations: 1.315 MB / 0.5806 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.487e-05/0.5684, allocations: 56.55 kB / 0.5807 GB, free: 12.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=236): time 8.455e-06/0.5684, allocations: 0 / 0.5807 GB, free: 12.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.05467/0.6231, allocations: 16.73 MB / 0.597 GB, free: 11.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001624/0.6247, allocations: 1.615 MB / 0.5986 GB, free: 9.512 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004484/0.6292, allocations: 2.684 MB / 0.6012 GB, free: 6.812 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004811/0.6297, allocations: 59.89 kB / 0.6013 GB, free: 6.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002152/0.6319, allocations: 2.608 MB / 0.6038 GB, free: 4.152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.6332, allocations: 0.9263 MB / 0.6047 GB, free: 3.234 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002064/0.6353, allocations: 1.087 MB / 0.6058 GB, free: 2.141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6355, allocations: 305.2 kB / 0.6061 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003838/0.6393, allocations: 2.392 MB / 0.6084 GB, free: 15.44 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006629/0.646, allocations: 5.315 MB / 0.6136 GB, free: 8.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.6575, allocations: 8.381 MB / 0.6218 GB, free: 15.36 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-05/0.6576, allocations: 28 kB / 0.6218 GB, free: 15.33 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02338/0.681, allocations: 9.346 MB / 0.6309 GB, free: 6.309 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.6811, allocations: 48 kB / 0.631 GB, free: 6.262 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01394/0.6951, allocations: 4.565 MB / 0.6354 GB, free: 1.684 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01093/0.7061, allocations: 2.101 MB / 0.6375 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.7104, allocations: 1.24 MB / 0.6387 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008328/0.7187, allocations: 5.308 MB / 0.6439 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004525/0.7233, allocations: 387.6 kB / 0.6443 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/0.7245, allocations: 314.2 kB / 0.6446 GB, free: 8.059 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.004551/0.729, allocations: 2.034 MB / 0.6465 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007682/0.7298, allocations: 268.5 kB / 0.6468 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/0.7414, allocations: 5.319 MB / 0.652 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009815/0.7513, allocations: 4.605 MB / 0.6565 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.7513, allocations: 0 / 0.6565 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.683e-05/0.7514, allocations: 15.95 kB / 0.6565 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02749/0.7789, allocations: 14.32 MB / 0.6705 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.583e-05/0.7789, allocations: 8 kB / 0.6705 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002059/0.781, allocations: 406 kB / 0.6709 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004891/0.7859, allocations: 1.24 MB / 0.6721 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005612/0.7865, allocations: 71.91 kB / 0.6722 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00587/0.7924, allocations: 4.743 MB / 0.6768 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001254/0.7937, allocations: 1.566 MB / 0.6783 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/0.8084, allocations: 7.994 MB / 0.6861 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007893/0.8092, allocations: 333.6 kB / 0.6864 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006498/0.8099, allocations: 53.95 kB / 0.6865 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/0.8119, allocations: 195.7 kB / 0.6867 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005583/0.8124, allocations: 164.9 kB / 0.6868 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002044/0.8127, allocations: 78.23 kB / 0.6869 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002758/0.8154, allocations: 1.652 MB / 0.6885 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.8e-07/0.8154, allocations: 0 / 0.6885 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004233/0.8197, allocations: 1.014 MB / 0.6895 GB, free: 9.109 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.01415/0.8338, allocations: 8.538 MB / 0.6979 GB, free: 408 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0178/0.8517, allocations: 9.815 MB / 0.7074 GB, free: 6.539 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.8517, allocations: 4 kB / 0.7074 GB, free: 6.535 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005809/0.8575, allocations: 2.846 MB / 0.7102 GB, free: 3.633 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.8605, allocations: 393.2 kB / 0.7106 GB, free: 3.258 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3177/1.178, allocations: 47.31 MB / 0.7568 GB, free: 160.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003375/1.182, allocations: 3.184 MB / 0.7599 GB, free: 158.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004014/1.186, allocations: 2.05 MB / 0.7619 GB, free: 157.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.188, allocations: 1.698 MB / 0.7636 GB, free: 155.6 MB / 0.545 GB Notification: Performance of SimCode: time 9.81e-07/1.188, allocations: 0 / 0.7636 GB, free: 155.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1555/1.343, allocations: 63.36 MB / 0.8254 GB, free: 92.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.92, allocations: 9.266 kB / 0.8255 GB, free: 92.52 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1)