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.00149/0.00149, allocations: 187.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001168/0.001168, allocations: 85.53 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.000397, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3364, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.521, allocations: 113.2 MB / 487.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003458/0.5214, allocations: 95.95 kB / 487.9 MB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7413/1.263, allocations: 128.9 MB / 0.6024 GB, free: 12.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.263, allocations: 0 / 0.6024 GB, free: 12.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004601/1.263, allocations: 147.9 kB / 0.6025 GB, free: 12.56 MB / 378.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.03583/1.299, allocations: 7.575 MB / 0.6099 GB, free: 4.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/1.299, allocations: 8.031 kB / 0.6099 GB, free: 4.895 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005669/1.305, allocations: 1.218 MB / 0.6111 GB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02334/1.328, allocations: 2.916 MB / 0.6139 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03197/1.36, allocations: 8.23 MB / 0.622 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008018/1.361, allocations: 0.5295 MB / 0.6225 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004082/1.365, allocations: 0.7066 MB / 0.6232 GB, free: 7.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06238/1.428, allocations: 17.6 MB / 0.6404 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004929/1.428, allocations: 83.23 kB / 0.6405 GB, free: 4.137 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003385/1.432, allocations: 335.9 kB / 0.6408 GB, free: 3.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004207/1.436, allocations: 1.527 MB / 0.6423 GB, free: 2.281 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3528/1.789, allocations: 14.79 MB / 0.6567 GB, free: 58.78 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.121/1.91, allocations: 75.26 MB / 0.7302 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03709/1.947, allocations: 7.483 MB / 0.7375 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03956/1.987, allocations: 16.5 MB / 0.7536 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/1.987, allocations: 61.12 kB / 0.7537 GB, free: 4.062 MB / 410.7 MB Notification: Performance of pre-optimization done (n=262): time 6.162e-06/1.987, allocations: 3.656 kB / 0.7537 GB, free: 4.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.1362/2.123, allocations: 28.45 MB / 0.7815 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001816/2.125, allocations: 1.618 MB / 0.7831 GB, free: 14.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01553/2.14, allocations: 5.238 MB / 0.7882 GB, free: 10.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008081/2.141, allocations: 61.7 kB / 0.7882 GB, free: 10.37 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005573/2.147, allocations: 4.716 MB / 0.7928 GB, free: 6.098 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002225/2.149, allocations: 1.086 MB / 0.7939 GB, free: 5.145 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/2.15, allocations: 183.2 kB / 0.7941 GB, free: 4.969 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008358/2.151, allocations: 0.6936 MB / 0.7947 GB, free: 4.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/2.161, allocations: 3.3 MB / 0.798 GB, free: 1.582 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02405/2.186, allocations: 9.218 MB / 0.807 GB, free: 8.188 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01419/2.2, allocations: 5.236 MB / 0.8121 GB, free: 3.531 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002019/2.2, allocations: 56 kB / 0.8121 GB, free: 3.477 MB / 458.7 MB Notification: Performance of matching and sorting (n=1173) (initialization): time 0.3616/2.562, allocations: 13.51 MB / 0.8253 GB, free: 96.61 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001411/2.562, allocations: 86.78 kB / 0.8254 GB, free: 96.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01897/2.581, allocations: 5.759 MB / 0.831 GB, free: 96.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0112/2.592, allocations: 2.102 MB / 0.8331 GB, free: 96.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01356/2.606, allocations: 2.125 MB / 0.8352 GB, free: 96.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02394/2.63, allocations: 14.36 MB / 0.8492 GB, free: 88.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/2.641, allocations: 0.5735 MB / 0.8497 GB, free: 88.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00253/2.643, allocations: 0.533 MB / 0.8503 GB, free: 88.58 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 () * Number of clocked 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.009738/2.653, allocations: 3.251 MB / 0.8534 GB, free: 88.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/2.655, allocations: 0.5261 MB / 0.854 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02256/2.677, allocations: 6.495 MB / 0.8603 GB, free: 87.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01893/2.696, allocations: 5.584 MB / 0.8657 GB, free: 87.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01964/2.716, allocations: 5.975 MB / 0.8716 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.287e-05/2.716, allocations: 13.59 kB / 0.8716 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0538/2.77, allocations: 17.39 MB / 0.8886 GB, free: 80.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.964e-05/2.77, allocations: 15.94 kB / 0.8886 GB, free: 80.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004846/2.775, allocations: 0.5103 MB / 0.8891 GB, free: 80.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009604/2.784, allocations: 1.801 MB / 0.8909 GB, free: 79.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007871/2.785, allocations: 69.83 kB / 0.8909 GB, free: 79.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01894/2.804, allocations: 9.948 MB / 0.9006 GB, free: 74.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001169/2.805, allocations: 1.483 MB / 0.9021 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/2.832, allocations: 10.95 MB / 0.9128 GB, free: 65.15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001853/2.834, allocations: 0.5721 MB / 0.9133 GB, free: 64.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002076/2.836, allocations: 67.62 kB / 0.9134 GB, free: 64.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005292/2.841, allocations: 216.5 kB / 0.9136 GB, free: 64.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001119/2.842, allocations: 192.5 kB / 0.9138 GB, free: 64.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003152/2.843, allocations: 85.39 kB / 0.9139 GB, free: 64.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009382/2.852, allocations: 3.66 MB / 0.9174 GB, free: 61.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.72e-07/2.852, allocations: 0 / 0.9174 GB, free: 61.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0112/2.863, allocations: 1.702 MB / 0.9191 GB, free: 59.54 MB / 458.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 () * Number of clocked 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.02742/2.891, allocations: 13.6 MB / 0.9324 GB, free: 47.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02233/2.913, allocations: 8.956 MB / 0.9411 GB, free: 39.24 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/2.913, allocations: 4 kB / 0.9411 GB, free: 39.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00974/2.923, allocations: 3.39 MB / 0.9444 GB, free: 36.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006718/2.93, allocations: 0.7895 MB / 0.9452 GB, free: 35.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5071/3.437, allocations: 192.6 MB / 1.133 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/3.451, allocations: 5.018 MB / 1.138 GB, free: 19.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00831/3.459, allocations: 3.24 MB / 1.141 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of SimCode: time 2.745e-06/3.459, allocations: 0 / 1.141 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.482/9.941, allocations: 319.9 MB / 1.454 GB, free: 133.4 MB / 0.5105 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