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.002186/0.002186, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 96.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.197e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.5241, allocations: 112.4 MB / 474.9 MB, free: 5.703 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.5245, allocations: 87.95 kB / 475 MB, free: 5.617 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7638/1.288, allocations: 125.8 MB / 0.5867 GB, free: 56.82 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.288, allocations: 0 / 0.5867 GB, free: 56.82 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004778/1.289, allocations: 147.1 kB / 0.5869 GB, free: 56.68 MB / 395.1 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.03422/1.323, allocations: 7.119 MB / 0.5938 GB, free: 49.5 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/1.323, allocations: 8.031 kB / 0.5938 GB, free: 49.5 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02333/1.347, allocations: 2.927 MB / 0.5967 GB, free: 46.55 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02959/1.376, allocations: 8.178 MB / 0.6047 GB, free: 38.37 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004748/1.377, allocations: 232 kB / 0.6049 GB, free: 38.14 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003929/1.381, allocations: 423.9 kB / 0.6053 GB, free: 37.73 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02614/1.407, allocations: 10.19 MB / 0.6152 GB, free: 27.54 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03966/1.447, allocations: 14.87 MB / 0.6298 GB, free: 11.32 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005272/1.447, allocations: 91.11 kB / 0.6299 GB, free: 11.23 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003404/1.451, allocations: 43.95 kB / 0.6299 GB, free: 11.19 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003764/1.454, allocations: 1.518 MB / 0.6314 GB, free: 9.668 MB / 395.1 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.705/2.159, allocations: 74.63 MB / 0.7043 GB, free: 29.94 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008392/2.168, allocations: 4.552 MB / 0.7087 GB, free: 29.27 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006989/2.175, allocations: 3.299 MB / 0.7119 GB, free: 29.23 MB / 411.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002097/2.177, allocations: 1.336 MB / 0.7132 GB, free: 28.09 MB / 411.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.378e-05/2.177, allocations: 64.28 kB / 0.7133 GB, free: 28.05 MB / 411.2 MB Notification: Performance of pre-optimization done (n=273): time 6.913e-06/2.177, allocations: 1.75 kB / 0.7133 GB, free: 28.05 MB / 411.2 MB Notification: Performance of matching and sorting (n=291): time 0.09317/2.27, allocations: 23.57 MB / 0.7363 GB, free: 22.61 MB / 411.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/2.271, allocations: 161.8 kB / 0.7365 GB, free: 22.45 MB / 411.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/2.282, allocations: 4.625 MB / 0.741 GB, free: 20.79 MB / 411.2 MB Notification: Performance of collectPreVariables (initialization): time 0.000828/2.283, allocations: 31.27 kB / 0.741 GB, free: 20.76 MB / 411.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.004254/2.287, allocations: 4.797 MB / 0.7457 GB, free: 17.09 MB / 411.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002167/2.29, allocations: 1.09 MB / 0.7468 GB, free: 16.29 MB / 411.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/2.291, allocations: 0 / 0.7468 GB, free: 16.29 MB / 411.2 MB Notification: Performance of setup shared object (initialization): time 0.0008223/2.292, allocations: 0.7065 MB / 0.7475 GB, free: 15.8 MB / 411.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007858/2.3, allocations: 3.181 MB / 0.7506 GB, free: 14.66 MB / 411.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/2.311, allocations: 8.687 MB / 0.759 GB, free: 6.07 MB / 411.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/2.323, allocations: 5.184 MB / 0.7641 GB, free: 4.371 MB / 411.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002349/2.323, allocations: 59.19 kB / 0.7642 GB, free: 4.371 MB / 411.2 MB Notification: Performance of matching and sorting (n=1210) (initialization): time 0.03792/2.361, allocations: 12.52 MB / 0.7764 GB, free: 14.79 MB / 427.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/2.361, allocations: 95.44 kB / 0.7765 GB, free: 14.7 MB / 427.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01972/2.381, allocations: 5.725 MB / 0.7821 GB, free: 9.996 MB / 427.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01158/2.393, allocations: 2.144 MB / 0.7842 GB, free: 8.488 MB / 427.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01438/2.407, allocations: 2.197 MB / 0.7863 GB, free: 6.594 MB / 427.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02533/2.432, allocations: 13.78 MB / 0.7998 GB, free: 9.594 MB / 443.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/2.444, allocations: 423.1 kB / 0.8002 GB, free: 9.285 MB / 443.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002746/2.446, allocations: 0.5529 MB / 0.8007 GB, free: 8.742 MB / 443.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 902 * 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 (1156): * Single equations (assignments): 1142 * 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.00394/2.45, allocations: 0.604 MB / 0.8013 GB, free: 8.141 MB / 443.2 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02306/2.473, allocations: 6.54 MB / 0.8077 GB, free: 2.695 MB / 443.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002147/2.476, allocations: 0.5053 MB / 0.8082 GB, free: 2.184 MB / 443.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02281/2.499, allocations: 6.401 MB / 0.8144 GB, free: 13.08 MB / 459.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01954/2.518, allocations: 5.533 MB / 0.8198 GB, free: 8.559 MB / 459.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01866/2.537, allocations: 5.409 MB / 0.8251 GB, free: 4.129 MB / 459.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001152/2.537, allocations: 22.94 kB / 0.8251 GB, free: 4.121 MB / 459.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3721/2.909, allocations: 16.79 MB / 0.8415 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.383e-05/2.909, allocations: 11.28 kB / 0.8415 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005027/2.914, allocations: 0.5268 MB / 0.8421 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009551/2.924, allocations: 1.788 MB / 0.8438 GB, free: 108.2 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008455/2.925, allocations: 37.14 kB / 0.8438 GB, free: 108.2 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01836/2.943, allocations: 9.46 MB / 0.8531 GB, free: 104.6 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001134/2.944, allocations: 1.406 MB / 0.8544 GB, free: 103.3 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02779/2.972, allocations: 11.12 MB / 0.8653 GB, free: 100.5 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/2.974, allocations: 0.5399 MB / 0.8658 GB, free: 100.4 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002199/2.977, allocations: 27.48 kB / 0.8659 GB, free: 100.4 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005899/2.983, allocations: 181.2 kB / 0.866 GB, free: 100.4 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/2.984, allocations: 205.3 kB / 0.8662 GB, free: 100.4 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004193/2.984, allocations: 92.55 kB / 0.8663 GB, free: 100.4 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.01006/2.994, allocations: 3.099 MB / 0.8693 GB, free: 100.2 MB / 459.2 MB Notification: Performance of sort global known variables: time 8.72e-07/2.994, allocations: 0 / 0.8693 GB, free: 100.2 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.01239/3.007, allocations: 1.54 MB / 0.8708 GB, free: 100.2 MB / 459.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 12 ($STATESET139814232908168.x[3],$STATESET139814232908168.x[2],$STATESET139814232908168.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 (246): * Single equations (assignments): 236 * 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.02767/3.035, allocations: 13.96 MB / 0.8845 GB, free: 94.45 MB / 459.2 MB Notification: Performance of simCode: created initialization part: time 0.02097/3.056, allocations: 8.579 MB / 0.8929 GB, free: 91.46 MB / 459.2 MB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/3.056, allocations: 3.906 kB / 0.8929 GB, free: 91.46 MB / 459.2 MB Notification: Performance of simCode: created simulation system equations: time 0.009896/3.066, allocations: 3.356 MB / 0.8961 GB, free: 90.02 MB / 459.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006977/3.073, allocations: 0.6644 MB / 0.8968 GB, free: 89.79 MB / 459.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05335/3.126, allocations: 15.44 MB / 0.9119 GB, free: 84.06 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01317/3.139, allocations: 5.027 MB / 0.9168 GB, free: 80.59 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008485/3.148, allocations: 3.215 MB / 0.9199 GB, free: 77.61 MB / 459.2 MB Notification: Performance of SimCode: time 1.854e-06/3.148, allocations: 0 / 0.9199 GB, free: 77.61 MB / 459.2 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.861/10.01, allocations: 318 MB / 1.23 GB, free: 124.6 MB / 491.2 MB (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