Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001474/0.001475, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001667/0.001667, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247 MB, free: 10.47 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.237/0.237, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002235/0.002235, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3762, allocations: 62.46 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01759/0.3939, allocations: 11.76 MB / 0.5421 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00953/0.4034, allocations: 4.061 MB / 0.5461 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002444/0.4059, allocations: 60 kB / 0.5461 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002953/0.4089, allocations: 1.175 MB / 0.5473 GB, free: 208 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.4139, allocations: 1.72 MB / 0.549 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.4156, allocations: 0.5574 MB / 0.5495 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006261/0.4219, allocations: 4.047 MB / 0.5534 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0028/0.4247, allocations: 1.768 MB / 0.5552 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.4266, allocations: 1.156 MB / 0.5563 GB, free: 7.324 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002235/0.4289, allocations: 1.666 MB / 0.5579 GB, free: 5.652 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004936/0.4294, allocations: 220 kB / 0.5581 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002506/0.4319, allocations: 1.279 MB / 0.5594 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001604/0.4335, allocations: 1.57 MB / 0.5609 GB, free: 2.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002157/0.4357, allocations: 1.84 MB / 0.5627 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008537/0.4443, allocations: 6.208 MB / 0.5688 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.4443, allocations: 4 kB / 0.5688 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.4443, allocations: 3.938 kB / 0.5688 GB, free: 10.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001584/0.4445, allocations: 0 / 0.5688 GB, free: 10.49 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01091/0.4554, allocations: 4.217 MB / 0.5729 GB, free: 6.199 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.622e-05/0.4555, allocations: 12.03 kB / 0.5729 GB, free: 6.188 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001667/0.4572, allocations: 0.6798 MB / 0.5736 GB, free: 5.496 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02107/0.4783, allocations: 6.183 MB / 0.5796 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006113/0.4844, allocations: 2.627 MB / 0.5822 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.4846, allocations: 184.5 kB / 0.5824 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.4857, allocations: 311.6 kB / 0.5827 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01975/0.5054, allocations: 10.72 MB / 0.5931 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.454e-05/0.5056, allocations: 23.81 kB / 0.5931 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/0.506, allocations: 111.8 kB / 0.5933 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004494/0.5105, allocations: 2.467 MB / 0.5957 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02091/0.5315, allocations: 10.16 MB / 0.6056 GB, free: 4.184 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05431/0.5858, allocations: 35.57 MB / 0.6403 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01249/0.5983, allocations: 5.594 MB / 0.6458 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003527/0.6019, allocations: 2.334 MB / 0.6481 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002095/0.604, allocations: 1.884 MB / 0.6499 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/0.6041, allocations: 52.56 kB / 0.6499 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 4.729e-06/0.6041, allocations: 0 / 0.6499 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.0368/0.6409, allocations: 15.03 MB / 0.6646 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001635/0.6426, allocations: 1.611 MB / 0.6662 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004142/0.6468, allocations: 2.811 MB / 0.6689 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000475/0.6473, allocations: 53.7 kB / 0.669 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002363/0.6496, allocations: 2.791 MB / 0.6717 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/0.6507, allocations: 0.8797 MB / 0.6726 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001726/0.6525, allocations: 1.116 MB / 0.6737 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6526, allocations: 305.1 kB / 0.674 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003969/0.6566, allocations: 2.626 MB / 0.6765 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007238/0.6638, allocations: 5.639 MB / 0.682 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/0.6767, allocations: 8.933 MB / 0.6908 GB, free: 8.238 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-05/0.6768, allocations: 35.94 kB / 0.6908 GB, free: 8.203 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06547/0.7423, allocations: 17.14 MB / 0.7075 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.128e-05/0.7424, allocations: 51.94 kB / 0.7076 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0459/0.7883, allocations: 10.63 MB / 0.718 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04826/0.8366, allocations: 8.643 MB / 0.7264 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004943/0.8416, allocations: 1.302 MB / 0.7277 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3399/1.182, allocations: 17.8 MB / 0.745 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004242/1.186, allocations: 423.7 kB / 0.7455 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000675/1.187, allocations: 321 kB / 0.7458 GB, free: 169.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003021/1.19, allocations: 2.018 MB / 0.7477 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/1.19, allocations: 290.7 kB / 0.748 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007302/1.197, allocations: 5.112 MB / 0.753 GB, free: 167.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006014/1.203, allocations: 4.409 MB / 0.7573 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/1.203, allocations: 4.656 kB / 0.7573 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/1.203, allocations: 7.828 kB / 0.7573 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/1.22, allocations: 12.92 MB / 0.7699 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/1.22, allocations: 8 kB / 0.7699 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/1.222, allocations: 455.2 kB / 0.7704 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/1.224, allocations: 0.9423 MB / 0.7713 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/1.225, allocations: 47.98 kB / 0.7713 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005355/1.23, allocations: 5.831 MB / 0.777 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008458/1.231, allocations: 1.556 MB / 0.7786 GB, free: 145 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009417/1.24, allocations: 7.749 MB / 0.7861 GB, free: 137.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007631/1.241, allocations: 342.5 kB / 0.7864 GB, free: 137.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/1.241, allocations: 47.98 kB / 0.7865 GB, free: 137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/1.243, allocations: 195.5 kB / 0.7867 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/1.243, allocations: 140.7 kB / 0.7868 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/1.243, allocations: 67.98 kB / 0.7869 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001967/1.245, allocations: 1.734 MB / 0.7886 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.245, allocations: 0 / 0.7886 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004262/1.25, allocations: 1.085 MB / 0.7896 GB, free: 133.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009337/1.259, allocations: 8.397 MB / 0.7978 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009194/1.268, allocations: 6.568 MB / 0.8042 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/1.268, allocations: 0 / 0.8042 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.271, allocations: 2.539 MB / 0.8067 GB, free: 116.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/1.273, allocations: 386.1 kB / 0.8071 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1337/1.407, allocations: 56.76 MB / 0.8625 GB, free: 54.42 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004136/1.411, allocations: 3.155 MB / 0.8656 GB, free: 51.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004063/1.415, allocations: 2.06 MB / 0.8676 GB, free: 49.16 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002018/1.418, allocations: 1.659 MB / 0.8692 GB, free: 47.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.212e-06/1.418, allocations: 0 / 0.8692 GB, free: 47.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1227/1.54, allocations: 70.81 MB / 0.9384 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.84/22.38, allocations: 5.359 kB / 0.9384 GB, free: 8.898 MB / 0.6075 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1)