Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 183.7 kB / 8.478 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008855/0.0008854, allocations: 90.25 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1551/0.156, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06345/0.2195, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2414/0.4609, allocations: 112.4 MB / 475 MB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4612, allocations: 90.95 kB / 475.1 MB, free: 12.52 MB / 330.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.4575/0.9187, allocations: 131.4 MB / 0.5923 GB, free: 72.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.9188, allocations: 11.38 kB / 0.5923 GB, free: 72.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01085/0.9296, allocations: 2.457 MB / 0.5947 GB, free: 72.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01622/0.9459, allocations: 8.266 MB / 0.6028 GB, free: 71.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.9461, allocations: 230.5 kB / 0.603 GB, free: 71.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001167/0.9473, allocations: 426 kB / 0.6034 GB, free: 71.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0134/0.9607, allocations: 10.49 MB / 0.6136 GB, free: 71.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.9794, allocations: 15.16 MB / 0.6284 GB, free: 64.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002129/0.9796, allocations: 82.94 kB / 0.6285 GB, free: 64.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007685/0.9804, allocations: 40.66 kB / 0.6286 GB, free: 64.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002175/0.9826, allocations: 1.609 MB / 0.6301 GB, free: 64.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06907/1.052, allocations: 75.89 MB / 0.7042 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005766/1.057, allocations: 4.425 MB / 0.7086 GB, free: 7.965 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004274/1.062, allocations: 3.642 MB / 0.7121 GB, free: 4.613 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1336/1.195, allocations: 11.42 MB / 0.7233 GB, free: 122.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/1.195, allocations: 66.67 kB / 0.7233 GB, free: 122.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 5.86e-06/1.195, allocations: 1 kB / 0.7233 GB, free: 122.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=287): time 0.04895/1.244, allocations: 23.7 MB / 0.7465 GB, free: 118.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/1.244, allocations: 165.4 kB / 0.7466 GB, free: 118 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/1.25, allocations: 4.698 MB / 0.7512 GB, free: 117.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000329/1.251, allocations: 29.39 kB / 0.7513 GB, free: 117.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/1.252, allocations: 4.512 MB / 0.7557 GB, free: 114.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009118/1.253, allocations: 1.087 MB / 0.7567 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003528/1.254, allocations: 0 / 0.7567 GB, free: 114.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003599/1.254, allocations: 0.6979 MB / 0.7574 GB, free: 113.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00379/1.258, allocations: 3.299 MB / 0.7606 GB, free: 113.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005611/1.263, allocations: 8.835 MB / 0.7693 GB, free: 106.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005915/1.269, allocations: 5.36 MB / 0.7745 GB, free: 105.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.855e-05/1.269, allocations: 60.66 kB / 0.7746 GB, free: 105.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.0208/1.29, allocations: 12.68 MB / 0.7869 GB, free: 101.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/1.29, allocations: 5 kB / 0.7869 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01005/1.3, allocations: 5.771 MB / 0.7926 GB, free: 99.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006059/1.306, allocations: 1.968 MB / 0.7945 GB, free: 99.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007268/1.314, allocations: 2.157 MB / 0.7966 GB, free: 99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/1.326, allocations: 13.34 MB / 0.8096 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007678/1.334, allocations: 336 kB / 0.8099 GB, free: 86.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.335, allocations: 0.5496 MB / 0.8105 GB, free: 86.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 905 * 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 (1155): * Single equations (assignments): 1141 * 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.001208/1.336, allocations: 0.5968 MB / 0.8111 GB, free: 85.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006582/1.337, allocations: 0.4972 MB / 0.8115 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.348, allocations: 6.439 MB / 0.8178 GB, free: 79.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009037/1.357, allocations: 5.532 MB / 0.8232 GB, free: 75.08 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.009309/1.366, allocations: 5.962 MB / 0.8291 GB, free: 70.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.533e-05/1.366, allocations: 11.3 kB / 0.8291 GB, free: 70.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02657/1.393, allocations: 16.35 MB / 0.845 GB, free: 56.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/1.393, allocations: 12.06 kB / 0.8451 GB, free: 56.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002611/1.396, allocations: 0.4922 MB / 0.8455 GB, free: 56.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005307/1.401, allocations: 1.661 MB / 0.8472 GB, free: 55.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002657/1.401, allocations: 33.42 kB / 0.8472 GB, free: 55.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/1.412, allocations: 9.316 MB / 0.8563 GB, free: 46.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006379/1.412, allocations: 1.381 MB / 0.8576 GB, free: 45.36 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01365/1.426, allocations: 11.08 MB / 0.8685 GB, free: 35.04 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1465/1.572, allocations: 14.74 MB / 0.8828 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.574, allocations: 0.5415 MB / 0.8834 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009932/1.575, allocations: 21.41 kB / 0.8834 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/1.577, allocations: 115.3 kB / 0.8835 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/1.577, allocations: 157.6 kB / 0.8837 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/1.578, allocations: 88.41 kB / 0.8837 GB, free: 107.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003919/1.581, allocations: 3.172 MB / 0.8868 GB, free: 107.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007371/1.589, allocations: 1.54 MB / 0.8883 GB, free: 107.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 (242): * Single equations (assignments): 232 * 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.0007532/1.59, allocations: 237.8 kB / 0.8886 GB, free: 107.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01271/1.602, allocations: 8.752 MB / 0.8971 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/1.602, allocations: 2.25 kB / 0.8971 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005122/1.607, allocations: 3.334 MB / 0.9004 GB, free: 106 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/1.611, allocations: 0.6538 MB / 0.901 GB, free: 106 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.632, allocations: 12.9 MB / 0.9136 GB, free: 103.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006315/1.638, allocations: 5.479 MB / 0.919 GB, free: 102.5 MB / 426.7 MB Notification: Performance of SimCode: time 7.52e-07/1.638, allocations: 0 / 0.919 GB, free: 102.5 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1)