Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|joint.phi_a|joint.phi_b|joint.w_a|joint.w_b",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|joint.phi_a|joint.phi_b|joint.w_a|joint.w_b",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001191/0.001191, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007039/0.0007038, allocations: 92.92 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003198, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2166, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint): time 0.06818/0.2848, allocations: 92.28 MB / 466.8 MB, free: 4.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05058/0.3354, allocations: 19.11 MB / 485.9 MB, free: 1.16 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02058/0.356, allocations: 462.8 kB / 486.4 MB, free: 0.707 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01258/0.3687, allocations: 4.416 MB / 490.8 MB, free: 12.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2303/0.599, allocations: 12.67 MB / 0.4917 GB, free: 5.164 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006196/0.6052, allocations: 1.142 MB / 0.4928 GB, free: 5.152 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.6161, allocations: 8.509 MB / 0.5011 GB, free: 5.117 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01689/0.633, allocations: 10.62 MB / 0.5115 GB, free: 4.105 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005776/0.6389, allocations: 2.358 MB / 0.5138 GB, free: 4.105 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006621/0.6455, allocations: 3.387 MB / 0.5171 GB, free: 4.094 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001812/0.6474, allocations: 260.8 kB / 0.5173 GB, free: 4.094 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004086/0.6515, allocations: 1.315 MB / 0.5186 GB, free: 4.082 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005542/0.6571, allocations: 3.118 MB / 0.5217 GB, free: 4.082 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/0.6602, allocations: 1.519 MB / 0.5232 GB, free: 4.051 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01636/0.6766, allocations: 11.07 MB / 0.534 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.6767, allocations: 128 / 0.534 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.6767, allocations: 64 / 0.534 GB, free: 0 / 378.7 MB Notification: Performance of Transformations before backend: time 0.000631/0.6773, allocations: 0 / 0.534 GB, free: 0 / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2676 * Number of variables: 2676 Notification: Performance of Generate backend data structure: time 0.01848/0.6958, allocations: 7.675 MB / 0.5415 GB, free: 11.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.6959, allocations: 8.031 kB / 0.5415 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009315/0.7052, allocations: 2.408 MB / 0.5438 GB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.7153, allocations: 4.521 MB / 0.5482 GB, free: 5.785 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/0.7156, allocations: 490.1 kB / 0.5487 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002287/0.7179, allocations: 0.6597 MB / 0.5494 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03817/0.7561, allocations: 18.8 MB / 0.5677 GB, free: 6.754 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003778/0.7566, allocations: 64.5 kB / 0.5678 GB, free: 6.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002217/0.7588, allocations: 298.3 kB / 0.5681 GB, free: 6.645 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005177/0.764, allocations: 3.01 MB / 0.571 GB, free: 4.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03399/0.798, allocations: 16.15 MB / 0.5868 GB, free: 9.039 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.1312/0.9292, allocations: 70.62 MB / 0.6557 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02455/0.9538, allocations: 8.991 MB / 0.6645 GB, free: 1.762 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1606/1.114, allocations: 5.04 MB / 0.6694 GB, free: 201.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02873/1.143, allocations: 20.35 MB / 0.6893 GB, free: 192.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/1.143, allocations: 69.62 kB / 0.6894 GB, free: 192.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=322): time 7.013e-06/1.143, allocations: 0 / 0.6894 GB, free: 192.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=380): time 0.1054/1.249, allocations: 44 MB / 0.7323 GB, free: 157.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01125/1.26, allocations: 12.34 MB / 0.7444 GB, free: 144.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007641/1.268, allocations: 6.058 MB / 0.7503 GB, free: 138.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.269, allocations: 81.61 kB / 0.7504 GB, free: 138.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002514/1.271, allocations: 5.134 MB / 0.7554 GB, free: 133.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001884/1.273, allocations: 1.413 MB / 0.7568 GB, free: 132.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006271/1.274, allocations: 193.5 kB / 0.757 GB, free: 131.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004074/1.274, allocations: 0.7193 MB / 0.7577 GB, free: 131.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005621/1.28, allocations: 4.434 MB / 0.762 GB, free: 126.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008989/1.289, allocations: 9.85 MB / 0.7716 GB, free: 114.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009272/1.298, allocations: 6.475 MB / 0.7779 GB, free: 107.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/1.298, allocations: 52 kB / 0.778 GB, free: 107.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1276) (initialization): time 0.03145/1.33, allocations: 17.55 MB / 0.7951 GB, free: 90.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.33, allocations: 84.94 kB / 0.7952 GB, free: 90.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/1.33, allocations: 192 kB / 0.7954 GB, free: 89.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009478/1.34, allocations: 3.578 MB / 0.7989 GB, free: 86.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008313/1.348, allocations: 2.25 MB / 0.8011 GB, free: 84.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02744/1.376, allocations: 27.1 MB / 0.8275 GB, free: 56.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009148/1.385, allocations: 0.6179 MB / 0.8282 GB, free: 55.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002105/1.387, allocations: 0.5833 MB / 0.8287 GB, free: 54.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslationOfConstraint.color[3],fixedTranslationOfConstraint.color[2],fixedTranslationOfConstraint.color[1],fixedTranslationOfJoint.color[3],fixedTranslationOfJoint.color[2],fixedTranslationOfJoint.color[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.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1169): * Single equations (assignments): 1152 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 20,(1,100.0%) 7,(2,100.0%) 24,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.00715/1.394, allocations: 3.56 MB / 0.8322 GB, free: 51.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.395, allocations: 0.5669 MB / 0.8328 GB, free: 50.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01807/1.413, allocations: 10.36 MB / 0.8429 GB, free: 40.21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01594/1.429, allocations: 9.048 MB / 0.8517 GB, free: 31.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01556/1.445, allocations: 8.914 MB / 0.8604 GB, free: 22.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.653e-05/1.445, allocations: 15.94 kB / 0.8604 GB, free: 22 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2333/1.678, allocations: 24.56 MB / 0.8844 GB, free: 176.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.668e-05/1.679, allocations: 6.125 kB / 0.8844 GB, free: 176.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003414/1.682, allocations: 0.6284 MB / 0.885 GB, free: 176.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008937/1.691, allocations: 2.983 MB / 0.8879 GB, free: 176.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008851/1.692, allocations: 74.86 kB / 0.888 GB, free: 176.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02475/1.717, allocations: 21.04 MB / 0.9086 GB, free: 166.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005931/1.723, allocations: 5.856 MB / 0.9143 GB, free: 162.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02362/1.746, allocations: 15 MB / 0.9289 GB, free: 156.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003203/1.749, allocations: 1.256 MB / 0.9301 GB, free: 156.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/1.751, allocations: 66.81 kB / 0.9302 GB, free: 156.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003251/1.754, allocations: 271 kB / 0.9305 GB, free: 156.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006681/1.755, allocations: 252.1 kB / 0.9307 GB, free: 156 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002747/1.755, allocations: 105.1 kB / 0.9308 GB, free: 156 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005214/1.76, allocations: 3.772 MB / 0.9345 GB, free: 152.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.76, allocations: 0 / 0.9345 GB, free: 152.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009183/1.769, allocations: 2.095 MB / 0.9365 GB, free: 150.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],joint.phi_a,joint.phi_b,joint.w_a,joint.w_b) * 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 (290): * Single equations (assignments): 282 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 19,(3,100.0%) 17,(3,100.0%) 8} * Non-linear torn systems: 1 {3 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001096/1.77, allocations: 273.2 kB / 0.9368 GB, free: 150.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01589/1.786, allocations: 11.44 MB / 0.948 GB, free: 138.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.786, allocations: 4 kB / 0.948 GB, free: 138.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007249/1.794, allocations: 4.749 MB / 0.9526 GB, free: 134 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005381/1.799, allocations: 0.8665 MB / 0.9535 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02865/1.828, allocations: 21.92 MB / 0.9749 GB, free: 111.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005419/1.833, allocations: 5.439 MB / 0.9802 GB, free: 105.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002184/1.835, allocations: 479.3 kB / 0.9806 GB, free: 105.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.202e-06/1.835, allocations: 0 / 0.9806 GB, free: 105.2 MB / 490.7 MB Notification: Performance of Templates: time 0.6307/2.466, allocations: 289.3 MB / 1.263 GB, free: 169.4 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.UniversalConstraint.pipe 2>&1)