Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 195.5 kB / 8.541 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 225.5 MB / 234.4 MB, free: 3.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008755/0.0008755, allocations: 91.48 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0887/0.0896, allocations: 56.91 MB / 343.2 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.1723, allocations: 51.47 MB / 394.7 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2432/0.4156, allocations: 114.1 MB / 0.4969 GB, free: 11.47 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.4159, allocations: 88.14 kB / 0.497 GB, free: 11.43 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: 2352 * Number of variables: 2352 Notification: Performance of Generate backend data structure: time 0.446/0.8619, allocations: 136 MB / 0.6297 GB, free: 74.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.8619, allocations: 11.72 kB / 0.6297 GB, free: 74.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.8734, allocations: 2.491 MB / 0.6322 GB, free: 74.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01603/0.8895, allocations: 7.085 MB / 0.6391 GB, free: 71.47 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000424/0.89, allocations: 230.2 kB / 0.6393 GB, free: 71.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002691/0.8927, allocations: 423.6 kB / 0.6397 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01746/0.9101, allocations: 10.28 MB / 0.6498 GB, free: 67.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02419/0.9344, allocations: 14.9 MB / 0.6643 GB, free: 60.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002149/0.9346, allocations: 85.88 kB / 0.6644 GB, free: 60.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008418/0.9355, allocations: 42.56 kB / 0.6644 GB, free: 60.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001946/0.9374, allocations: 1.57 MB / 0.666 GB, free: 59.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1982/1.136, allocations: 75.09 MB / 0.7393 GB, free: 82.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004603/1.14, allocations: 4.398 MB / 0.7436 GB, free: 81.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003571/1.144, allocations: 3.608 MB / 0.7471 GB, free: 81.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/1.159, allocations: 11.19 MB / 0.758 GB, free: 79.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/1.159, allocations: 60.38 kB / 0.7581 GB, free: 79.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=253): time 6.011e-06/1.159, allocations: 3.375 kB / 0.7581 GB, free: 79.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=278): time 0.05233/1.211, allocations: 23.33 MB / 0.7809 GB, free: 73.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/1.211, allocations: 164.1 kB / 0.781 GB, free: 73.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005287/1.217, allocations: 4.598 MB / 0.7855 GB, free: 71.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003763/1.217, allocations: 28.52 kB / 0.7855 GB, free: 71.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001643/1.219, allocations: 4.427 MB / 0.7899 GB, free: 68.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/1.22, allocations: 1.051 MB / 0.7909 GB, free: 67.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/1.22, allocations: 0 / 0.7909 GB, free: 67.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003479/1.22, allocations: 0.6902 MB / 0.7916 GB, free: 67.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/1.224, allocations: 3.241 MB / 0.7947 GB, free: 65.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0063/1.231, allocations: 8.678 MB / 0.8032 GB, free: 57.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006877/1.237, allocations: 5.27 MB / 0.8084 GB, free: 55.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/1.238, allocations: 56.72 kB / 0.8084 GB, free: 55.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.02158/1.259, allocations: 12.49 MB / 0.8206 GB, free: 52.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/1.259, allocations: 7.406 kB / 0.8206 GB, free: 52.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01015/1.269, allocations: 5.677 MB / 0.8262 GB, free: 50.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006198/1.276, allocations: 1.964 MB / 0.8281 GB, free: 49.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007484/1.283, allocations: 2.111 MB / 0.8301 GB, free: 49.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/1.296, allocations: 13.33 MB / 0.8432 GB, free: 37.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007312/1.303, allocations: 334.5 kB / 0.8435 GB, free: 36.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.305, allocations: 0.5384 MB / 0.844 GB, free: 36.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 889 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1130): * Single equations (assignments): 1116 * 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.001272/1.306, allocations: 0.5953 MB / 0.8446 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007487/1.307, allocations: 497.5 kB / 0.8451 GB, free: 35.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/1.317, allocations: 6.334 MB / 0.8512 GB, free: 30.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009115/1.327, allocations: 5.46 MB / 0.8566 GB, free: 25.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.009794/1.336, allocations: 5.863 MB / 0.8623 GB, free: 20.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/1.336, allocations: 11.48 kB / 0.8623 GB, free: 20.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02557/1.362, allocations: 15.55 MB / 0.8775 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.362, allocations: 8 kB / 0.8775 GB, free: 8.098 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002591/1.365, allocations: 480.9 kB / 0.878 GB, free: 7.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005378/1.37, allocations: 1.66 MB / 0.8796 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003446/1.37, allocations: 26.19 kB / 0.8796 GB, free: 6.551 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/1.382, allocations: 9.342 MB / 0.8887 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008457/1.383, allocations: 1.377 MB / 0.8901 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01559/1.398, allocations: 10.49 MB / 0.9003 GB, free: 3.234 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1414/1.54, allocations: 14.13 MB / 0.9141 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.541, allocations: 0.524 MB / 0.9146 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007602/1.542, allocations: 19.98 kB / 0.9147 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/1.544, allocations: 108 kB / 0.9148 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/1.544, allocations: 145 kB / 0.9149 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002723/1.544, allocations: 88.59 kB / 0.915 GB, free: 121.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004167/1.549, allocations: 3.097 MB / 0.918 GB, free: 121.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007735/1.556, allocations: 1.534 MB / 0.9195 GB, free: 121.7 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 222 * 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.0007806/1.557, allocations: 259.3 kB / 0.9198 GB, free: 121.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01163/1.569, allocations: 8.611 MB / 0.9282 GB, free: 120.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.569, allocations: 5 kB / 0.9282 GB, free: 120.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004646/1.573, allocations: 3.264 MB / 0.9314 GB, free: 120.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.577, allocations: 0.6591 MB / 0.932 GB, free: 120.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/1.599, allocations: 12.59 MB / 0.9443 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006659/1.606, allocations: 5.382 MB / 0.9495 GB, free: 115.1 MB / 458.7 MB Notification: Performance of SimCode: time 8.71e-07/1.606, allocations: 0 / 0.9495 GB, free: 115.1 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1)