Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009396, allocations: 96.03 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002657, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2505, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.6516, allocations: 114.5 MB / 0.504 GB, free: 98.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.6519, allocations: 97.91 kB / 0.5041 GB, free: 98.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2816/0.9336, allocations: 128.1 MB / 0.6293 GB, free: 14.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.9336, allocations: 0 / 0.6293 GB, free: 14.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003606/0.934, allocations: 143.9 kB / 0.6294 GB, free: 14.48 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: 2352 * Number of variables: 2352 Notification: Performance of Generate backend data structure: time 0.02718/0.9612, allocations: 7.469 MB / 0.6367 GB, free: 6.922 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.9612, allocations: 12.03 kB / 0.6367 GB, free: 6.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0056/0.9668, allocations: 1.194 MB / 0.6379 GB, free: 5.703 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01429/0.9812, allocations: 2.896 MB / 0.6407 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02223/1.003, allocations: 7.851 MB / 0.6484 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000648/1.004, allocations: 0.5176 MB / 0.6489 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003915/1.008, allocations: 0.695 MB / 0.6496 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3464/1.354, allocations: 17.31 MB / 0.6665 GB, free: 54.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004708/1.355, allocations: 88.17 kB / 0.6665 GB, free: 54.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003946/1.359, allocations: 330.5 kB / 0.6669 GB, free: 54.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002483/1.361, allocations: 1.485 MB / 0.6683 GB, free: 54.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03619/1.398, allocations: 14.52 MB / 0.6825 GB, free: 54.72 MB / 426.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.1038/1.502, allocations: 74.36 MB / 0.7551 GB, free: 24.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02004/1.522, allocations: 7.399 MB / 0.7623 GB, free: 22.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03042/1.552, allocations: 16.29 MB / 0.7782 GB, free: 14.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.854e-05/1.552, allocations: 62.94 kB / 0.7783 GB, free: 14.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=253): time 7.915e-06/1.552, allocations: 2.312 kB / 0.7783 GB, free: 14.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=269): time 0.08344/1.636, allocations: 27.95 MB / 0.8056 GB, free: 10.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001738/1.637, allocations: 1.618 MB / 0.8072 GB, free: 8.336 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/1.649, allocations: 5.122 MB / 0.8122 GB, free: 4.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009162/1.65, allocations: 62.25 kB / 0.8122 GB, free: 4.004 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004216/1.654, allocations: 4.798 MB / 0.8169 GB, free: 15.72 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001892/1.656, allocations: 1.05 MB / 0.8179 GB, free: 14.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006437/1.657, allocations: 176 kB / 0.8181 GB, free: 14.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005262/1.657, allocations: 0.6868 MB / 0.8188 GB, free: 14.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005128/1.662, allocations: 3.241 MB / 0.822 GB, free: 11.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009907/1.672, allocations: 8.58 MB / 0.8303 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3213/1.994, allocations: 5.439 MB / 0.8356 GB, free: 96.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/1.994, allocations: 54.34 kB / 0.8357 GB, free: 96.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.02926/2.023, allocations: 13.5 MB / 0.8489 GB, free: 96.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002/2.023, allocations: 86.91 kB / 0.849 GB, free: 96.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01035/2.034, allocations: 5.666 MB / 0.8545 GB, free: 95.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006081/2.04, allocations: 2.104 MB / 0.8565 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007561/2.047, allocations: 2.08 MB / 0.8586 GB, free: 95.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/2.062, allocations: 14.35 MB / 0.8726 GB, free: 87.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009378/2.072, allocations: 0.5524 MB / 0.8731 GB, free: 87.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002717/2.074, allocations: 0.5316 MB / 0.8736 GB, free: 87.72 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 865 * Number of states: 0 () * Number of discrete variables: 62 (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.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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 (1097): * Single equations (assignments): 1083 * 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.009223/2.084, allocations: 3.194 MB / 0.8768 GB, free: 87.42 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001827/2.086, allocations: 0.5072 MB / 0.8773 GB, free: 87.42 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/2.1, allocations: 6.382 MB / 0.8835 GB, free: 86.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009722/2.11, allocations: 5.497 MB / 0.8889 GB, free: 85.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01003/2.12, allocations: 5.867 MB / 0.8946 GB, free: 83.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.574e-05/2.12, allocations: 13.88 kB / 0.8946 GB, free: 83.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04008/2.16, allocations: 16.68 MB / 0.9109 GB, free: 77.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.833e-05/2.16, allocations: 10.78 kB / 0.9109 GB, free: 77.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002468/2.163, allocations: 496 kB / 0.9114 GB, free: 77.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005353/2.168, allocations: 1.801 MB / 0.9131 GB, free: 77.38 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006171/2.169, allocations: 65.77 kB / 0.9132 GB, free: 77.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/2.18, allocations: 9.947 MB / 0.9229 GB, free: 71.15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000827/2.181, allocations: 1.479 MB / 0.9244 GB, free: 69.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/2.197, allocations: 10.36 MB / 0.9345 GB, free: 60.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002221/2.199, allocations: 0.5549 MB / 0.935 GB, free: 59.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.201, allocations: 59 kB / 0.9351 GB, free: 59.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003482/2.205, allocations: 210.1 kB / 0.9353 GB, free: 59.68 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008265/2.206, allocations: 182.2 kB / 0.9354 GB, free: 59.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004917/2.206, allocations: 82.09 kB / 0.9355 GB, free: 59.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008172/2.214, allocations: 3.574 MB / 0.939 GB, free: 56.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.71e-07/2.214, allocations: 4 kB / 0.939 GB, free: 56.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009841/2.224, allocations: 1.672 MB / 0.9406 GB, free: 54.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (223): * Single equations (assignments): 213 * 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.01456/2.239, allocations: 12.62 MB / 0.953 GB, free: 43.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01496/2.254, allocations: 8.803 MB / 0.9616 GB, free: 35.72 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/2.254, allocations: 5.312 kB / 0.9616 GB, free: 35.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005467/2.259, allocations: 3.314 MB / 0.9648 GB, free: 32.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006058/2.265, allocations: 0.7713 MB / 0.9656 GB, free: 32.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4238/2.689, allocations: 188.4 MB / 1.15 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00713/2.697, allocations: 4.928 MB / 1.154 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007794/2.704, allocations: 2.879 MB / 1.157 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006227/2.711, allocations: 3.102 MB / 1.16 GB, free: 16.48 MB / 0.5105 GB Notification: Performance of SimCode: time 1.433e-06/2.711, allocations: 0 / 1.16 GB, free: 16.48 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4894/3.2, allocations: 122.3 MB / 1.28 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/3.2, allocations: 231.8 kB / 1.28 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.233/9.434, allocations: 0 / 1.28 GB, free: 135.4 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat does not exist to compare? outputFormat=mat