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"}) [: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 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 179.3 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009662/0.0009662, allocations: 90.64 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08898/0.08998, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.2673, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.114/0.3814, allocations: 113.7 MB / 0.489 GB, free: 4.965 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3817, allocations: 95.88 kB / 0.4891 GB, free: 4.871 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.4347/0.8163, allocations: 130.7 MB / 0.6167 GB, free: 7.527 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.8164, allocations: 8 kB / 0.6167 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01311/0.8295, allocations: 2.436 MB / 0.6191 GB, free: 5.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01971/0.8492, allocations: 7.883 MB / 0.6268 GB, free: 13.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003318/0.8496, allocations: 228 kB / 0.627 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002391/0.852, allocations: 423.8 kB / 0.6274 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01902/0.871, allocations: 10.27 MB / 0.6374 GB, free: 2.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02459/0.8957, allocations: 14.9 MB / 0.652 GB, free: 1.922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002182/0.8959, allocations: 79.28 kB / 0.6521 GB, free: 1.844 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008467/0.8968, allocations: 40 kB / 0.6521 GB, free: 1.805 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002151/0.8989, allocations: 1.573 MB / 0.6536 GB, free: 236 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/1.088, allocations: 75.09 MB / 0.727 GB, free: 54.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004493/1.092, allocations: 4.398 MB / 0.7313 GB, free: 53.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003407/1.096, allocations: 3.61 MB / 0.7348 GB, free: 53.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.111, allocations: 11.19 MB / 0.7457 GB, free: 48.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/1.111, allocations: 58.75 kB / 0.7458 GB, free: 48.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=253): time 5.39e-06/1.111, allocations: 0 / 0.7458 GB, free: 48.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=278): time 0.05147/1.162, allocations: 23.33 MB / 0.7686 GB, free: 39.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/1.162, allocations: 157.2 kB / 0.7687 GB, free: 39.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005921/1.168, allocations: 4.598 MB / 0.7732 GB, free: 37.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000497/1.169, allocations: 25.7 kB / 0.7732 GB, free: 37.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/1.17, allocations: 4.421 MB / 0.7775 GB, free: 34.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/1.172, allocations: 1.055 MB / 0.7786 GB, free: 33.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/1.172, allocations: 0 / 0.7786 GB, free: 33.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003707/1.172, allocations: 0.6966 MB / 0.7792 GB, free: 33.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003816/1.176, allocations: 3.241 MB / 0.7824 GB, free: 32.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005547/1.182, allocations: 8.674 MB / 0.7909 GB, free: 23.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006354/1.188, allocations: 5.27 MB / 0.796 GB, free: 20.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.366e-05/1.188, allocations: 56 kB / 0.7961 GB, free: 20.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.02062/1.209, allocations: 12.5 MB / 0.8083 GB, free: 10.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/1.209, allocations: 4.188 kB / 0.8083 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01066/1.22, allocations: 5.679 MB / 0.8138 GB, free: 5.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006696/1.226, allocations: 1.97 MB / 0.8158 GB, free: 4.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00744/1.234, allocations: 2.109 MB / 0.8178 GB, free: 2.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1392/1.373, allocations: 13.32 MB / 0.8308 GB, free: 80.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007311/1.38, allocations: 328.1 kB / 0.8311 GB, free: 80.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.382, allocations: 0.5368 MB / 0.8317 GB, free: 80.01 MB / 426.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.001232/1.383, allocations: 0.5946 MB / 0.8322 GB, free: 79.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007941/1.384, allocations: 0.4932 MB / 0.8327 GB, free: 79.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/1.395, allocations: 6.318 MB / 0.8389 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009494/1.404, allocations: 5.466 MB / 0.8442 GB, free: 79.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01009/1.415, allocations: 5.877 MB / 0.85 GB, free: 78.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.962e-05/1.415, allocations: 14.2 kB / 0.85 GB, free: 78.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/1.443, allocations: 15.55 MB / 0.8652 GB, free: 77.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-05/1.443, allocations: 6.969 kB / 0.8652 GB, free: 77.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/1.446, allocations: 480 kB / 0.8656 GB, free: 77.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005634/1.452, allocations: 1.651 MB / 0.8672 GB, free: 77.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004752/1.452, allocations: 31.47 kB / 0.8673 GB, free: 77.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/1.463, allocations: 9.297 MB / 0.8764 GB, free: 74.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007261/1.464, allocations: 1.384 MB / 0.8777 GB, free: 72.81 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01435/1.478, allocations: 10.49 MB / 0.888 GB, free: 71.02 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01906/1.497, allocations: 14.08 MB / 0.9017 GB, free: 64.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/1.499, allocations: 0.5224 MB / 0.9022 GB, free: 64.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009628/1.5, allocations: 22.77 kB / 0.9022 GB, free: 64.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00245/1.502, allocations: 107.8 kB / 0.9023 GB, free: 64.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/1.503, allocations: 144.3 kB / 0.9025 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/1.503, allocations: 85.22 kB / 0.9026 GB, free: 64.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004449/1.507, allocations: 3.098 MB / 0.9056 GB, free: 63.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00856/1.516, allocations: 1.516 MB / 0.9071 GB, free: 63.32 MB / 426.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.0008491/1.517, allocations: 236.4 kB / 0.9073 GB, free: 63.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01254/1.529, allocations: 8.62 MB / 0.9157 GB, free: 60.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.529, allocations: 2.844 kB / 0.9157 GB, free: 60.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00535/1.535, allocations: 3.261 MB / 0.9189 GB, free: 58.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003697/1.538, allocations: 0.6551 MB / 0.9195 GB, free: 58.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0255/1.564, allocations: 12.6 MB / 0.9318 GB, free: 46.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00784/1.572, allocations: 5.389 MB / 0.9371 GB, free: 42.9 MB / 426.7 MB Notification: Performance of SimCode: time 7.22e-07/1.572, allocations: 0 / 0.9371 GB, free: 42.9 MB / 426.7 MB (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)