Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002318/0.002318, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.373/2.373, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001162, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.634e-05/3.645e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4744/0.5761, allocations: 113.1 MB / 482.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5765, allocations: 90.19 kB / 482.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8304/1.407, allocations: 129 MB / 0.597 GB, free: 87.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.407, allocations: 0 / 0.597 GB, free: 87.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005552/1.408, allocations: 140.3 kB / 0.5971 GB, free: 87.21 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2401 * Number of variables: 2401 Notification: Performance of Generate backend data structure: time 0.03627/1.444, allocations: 7.129 MB / 0.6041 GB, free: 80.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.158e-05/1.444, allocations: 12.03 kB / 0.6041 GB, free: 80.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006568/1.451, allocations: 1.214 MB / 0.6053 GB, free: 78.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02422/1.475, allocations: 2.922 MB / 0.6082 GB, free: 76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03023/1.505, allocations: 8.191 MB / 0.6162 GB, free: 67.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007026/1.506, allocations: 0.5295 MB / 0.6167 GB, free: 67.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004316/1.51, allocations: 0.7066 MB / 0.6174 GB, free: 66.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0575/1.568, allocations: 17.46 MB / 0.6344 GB, free: 47.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006315/1.568, allocations: 87.2 kB / 0.6345 GB, free: 47.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003884/1.572, allocations: 335.9 kB / 0.6348 GB, free: 47.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00372/1.576, allocations: 1.531 MB / 0.6363 GB, free: 45.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04923/1.625, allocations: 14.58 MB / 0.6506 GB, free: 31.19 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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 preOpt removeSimpleEquations (simulation): time 0.477/2.102, allocations: 75.26 MB / 0.7241 GB, free: 45.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03961/2.142, allocations: 7.437 MB / 0.7313 GB, free: 44.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007511/2.15, allocations: 3.707 MB / 0.7349 GB, free: 44.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04213/2.192, allocations: 16.49 MB / 0.751 GB, free: 40.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.086e-05/2.192, allocations: 63.62 kB / 0.7511 GB, free: 40.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 7.033e-06/2.192, allocations: 0 / 0.7511 GB, free: 40.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=278): time 0.1154/2.307, allocations: 23.85 MB / 0.7744 GB, free: 34.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001423/2.309, allocations: 1.599 MB / 0.776 GB, free: 32.53 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/2.323, allocations: 5.184 MB / 0.781 GB, free: 30.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008357/2.324, allocations: 63.41 kB / 0.7811 GB, free: 30.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004244/2.328, allocations: 4.714 MB / 0.7857 GB, free: 26.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002021/2.33, allocations: 1.084 MB / 0.7867 GB, free: 26.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/2.332, allocations: 179.4 kB / 0.7869 GB, free: 25.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008608/2.333, allocations: 0.6862 MB / 0.7876 GB, free: 25.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008755/2.342, allocations: 3.243 MB / 0.7907 GB, free: 24.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/2.354, allocations: 8.652 MB / 0.7992 GB, free: 15.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/2.366, allocations: 5.23 MB / 0.8043 GB, free: 13.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002147/2.367, allocations: 59.95 kB / 0.8044 GB, free: 13.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=1173) (initialization): time 0.04025/2.407, allocations: 13.37 MB / 0.8174 GB, free: 2.836 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/2.407, allocations: 88 kB / 0.8175 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02397/2.431, allocations: 5.928 MB / 0.8233 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01223/2.443, allocations: 2.103 MB / 0.8253 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01457/2.458, allocations: 2.136 MB / 0.8274 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02856/2.487, allocations: 14.1 MB / 0.8412 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01162/2.498, allocations: 0.5757 MB / 0.8418 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00246/2.501, allocations: 0.5367 MB / 0.8423 GB, free: 12.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 878 * Number of states: 0 () * Number of discrete variables: 60 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1119): * Single equations (assignments): 1105 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003698/2.505, allocations: 0.8062 MB / 0.8431 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/2.506, allocations: 0.5206 MB / 0.8436 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02374/2.53, allocations: 6.451 MB / 0.8499 GB, free: 6.098 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.021/2.551, allocations: 5.532 MB / 0.8553 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02125/2.572, allocations: 5.919 MB / 0.8611 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9e-05/2.573, allocations: 15.91 kB / 0.8611 GB, free: 10.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4031/2.976, allocations: 17.34 MB / 0.878 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.075e-05/2.976, allocations: 10.5 kB / 0.878 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005219/2.981, allocations: 0.5106 MB / 0.8785 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01046/2.992, allocations: 1.797 MB / 0.8803 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008294/2.992, allocations: 72.06 kB / 0.8804 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02003/3.013, allocations: 9.724 MB / 0.8898 GB, free: 123 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00117/3.014, allocations: 1.476 MB / 0.8913 GB, free: 121.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02654/3.04, allocations: 10.86 MB / 0.9019 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/3.043, allocations: 0.5705 MB / 0.9025 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002295/3.045, allocations: 64.75 kB / 0.9025 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00575/3.051, allocations: 221.7 kB / 0.9027 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/3.052, allocations: 196.9 kB / 0.9029 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000379/3.052, allocations: 89.8 kB / 0.903 GB, free: 119 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009969/3.062, allocations: 3.602 MB / 0.9065 GB, free: 118.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.854e-06/3.062, allocations: 0 / 0.9065 GB, free: 118.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01153/3.074, allocations: 1.705 MB / 0.9082 GB, free: 118.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 223 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02832/3.102, allocations: 13.52 MB / 0.9214 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02241/3.125, allocations: 8.853 MB / 0.93 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/3.125, allocations: 0 / 0.93 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009722/3.135, allocations: 3.353 MB / 0.9333 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006901/3.142, allocations: 0.7822 MB / 0.9341 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0517/3.193, allocations: 15.7 MB / 0.9494 GB, free: 100.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01211/3.206, allocations: 5.025 MB / 0.9543 GB, free: 96.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007436/3.213, allocations: 3.236 MB / 0.9575 GB, free: 93.59 MB / 474.7 MB Notification: Performance of SimCode: time 2.014e-06/3.213, allocations: 0 / 0.9575 GB, free: 93.59 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.738/9.951, allocations: 320.4 MB / 1.27 GB, free: 144.7 MB / 0.4948 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat does not exist to compare? outputFormat=mat