Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.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.RevoluteConstraint,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 197 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007422/0.0007425, allocations: 98.97 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1857, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.05588/0.2416, allocations: 77.41 MB / 485.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03078/0.2725, allocations: 16.44 MB / 0.4902 GB, free: 13.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01144/0.2839, allocations: 390.9 kB / 0.4906 GB, free: 13.19 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009762/0.2937, allocations: 3.635 MB / 0.4941 GB, free: 9.539 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2018/0.4955, allocations: 10.55 MB / 0.5044 GB, free: 4.109 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00493/0.5005, allocations: 1.085 MB / 0.5055 GB, free: 4.086 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008869/0.5094, allocations: 7.864 MB / 0.5132 GB, free: 4.055 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01214/0.5216, allocations: 10.64 MB / 0.5236 GB, free: 18.7 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003537/0.5251, allocations: 2.11 MB / 0.5256 GB, free: 18.7 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003789/0.529, allocations: 2.969 MB / 0.5285 GB, free: 18.69 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007978/0.5298, allocations: 223.5 kB / 0.5287 GB, free: 18.69 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002874/0.5327, allocations: 1.501 MB / 0.5302 GB, free: 18.67 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00244/0.5351, allocations: 2.759 MB / 0.5329 GB, free: 18.67 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003569/0.5387, allocations: 3.003 MB / 0.5358 GB, free: 18.64 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008259/0.547, allocations: 9.374 MB / 0.545 GB, free: 13.67 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.547, allocations: 2.875 kB / 0.545 GB, free: 13.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.547, allocations: 0 / 0.545 GB, free: 13.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003652/0.5474, allocations: 0 / 0.545 GB, free: 13.67 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.01517/0.5626, allocations: 6.852 MB / 0.5517 GB, free: 8.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.5626, allocations: 8.031 kB / 0.5517 GB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002729/0.5654, allocations: 1.128 MB / 0.5528 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007761/0.5731, allocations: 2.325 MB / 0.5551 GB, free: 5.848 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008122/0.5813, allocations: 4.456 MB / 0.5594 GB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002791/0.5816, allocations: 426 kB / 0.5598 GB, free: 2.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00174/0.5833, allocations: 0.5722 MB / 0.5604 GB, free: 2.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02969/0.613, allocations: 16.5 MB / 0.5765 GB, free: 5.348 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001979/0.6133, allocations: 57.31 kB / 0.5765 GB, free: 5.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009772/0.6143, allocations: 262.3 kB / 0.5768 GB, free: 5.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003853/0.6181, allocations: 2.575 MB / 0.5793 GB, free: 3.125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02823/0.6464, allocations: 14.09 MB / 0.5931 GB, free: 9.359 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.08111/0.7276, allocations: 62.41 MB / 0.654 GB, free: 1.77 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02156/0.7492, allocations: 7.623 MB / 0.6615 GB, free: 9.992 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004903/0.7541, allocations: 3.919 MB / 0.6653 GB, free: 6.074 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02337/0.7775, allocations: 16.58 MB / 0.6815 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.7776, allocations: 63.38 kB / 0.6815 GB, free: 4.984 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=265): time 6.192e-06/0.7776, allocations: 0 / 0.6815 GB, free: 4.984 MB / 0.4948 GB Notification: Performance of matching and sorting (n=331): time 0.279/1.057, allocations: 42.31 MB / 0.7229 GB, free: 188.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01884/1.076, allocations: 16.28 MB / 0.7388 GB, free: 171.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007045/1.083, allocations: 5.618 MB / 0.7442 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007508/1.083, allocations: 74.55 kB / 0.7443 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002178/1.086, allocations: 4.662 MB / 0.7489 GB, free: 161.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001314/1.087, allocations: 1.241 MB / 0.7501 GB, free: 159.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005494/1.087, allocations: 176.8 kB / 0.7502 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003516/1.088, allocations: 0.6863 MB / 0.7509 GB, free: 159.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004784/1.093, allocations: 4 MB / 0.7548 GB, free: 155 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006721/1.099, allocations: 9.178 MB / 0.7638 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01268/1.112, allocations: 14.3 MB / 0.7777 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.112, allocations: 56 kB / 0.7778 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.03134/1.144, allocations: 17.27 MB / 0.7947 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.579e-05/1.144, allocations: 84 kB / 0.7947 GB, free: 109 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000153/1.144, allocations: 183.9 kB / 0.7949 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01353/1.157, allocations: 4.568 MB / 0.7994 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00613/1.164, allocations: 1.985 MB / 0.8013 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03635/1.2, allocations: 34.04 MB / 0.8346 GB, free: 67.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007517/1.208, allocations: 0.5343 MB / 0.8351 GB, free: 66.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/1.209, allocations: 0.5559 MB / 0.8356 GB, free: 66.26 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 826 * Number of states: 0 () * Number of discrete variables: 62 (sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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.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 (1044): * Single equations (assignments): 1031 * Array equations: 6 * 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%) 33,(2,100.0%) 19,(3,77.8%) 12,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.004793/1.214, allocations: 3.212 MB / 0.8388 GB, free: 63.04 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008474/1.214, allocations: 0.5206 MB / 0.8393 GB, free: 62.51 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01774/1.232, allocations: 9.799 MB / 0.8488 GB, free: 52.58 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-05/1.232, allocations: 49.39 kB / 0.8489 GB, free: 52.53 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01495/1.247, allocations: 8.375 MB / 0.8571 GB, free: 44.03 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.467e-05/1.247, allocations: 12.05 kB / 0.8571 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03646/1.284, allocations: 22.12 MB / 0.8787 GB, free: 21.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.783e-05/1.284, allocations: 7.938 kB / 0.8787 GB, free: 21.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002456/1.286, allocations: 459.7 kB / 0.8791 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01026/1.297, allocations: 3.284 MB / 0.8823 GB, free: 18.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005671/1.297, allocations: 56.7 kB / 0.8824 GB, free: 17.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2012/1.498, allocations: 24.37 MB / 0.9062 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01256/1.511, allocations: 10.61 MB / 0.9165 GB, free: 169.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02081/1.532, allocations: 13.59 MB / 0.9298 GB, free: 164.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/1.533, allocations: 0.5537 MB / 0.9304 GB, free: 164.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006739/1.534, allocations: 64.8 kB / 0.9304 GB, free: 164.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/1.537, allocations: 209.9 kB / 0.9306 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/1.538, allocations: 226.4 kB / 0.9308 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/1.538, allocations: 86.27 kB / 0.9309 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004174/1.542, allocations: 3.488 MB / 0.9343 GB, free: 163.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.542, allocations: 0 / 0.9343 GB, free: 163.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006892/1.549, allocations: 1.963 MB / 0.9362 GB, free: 161.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * 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 (210): * Single equations (assignments): 202 * 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 {(1,100.0%) 11,(3,100.0%) 30,(3,100.0%) 21} * Non-linear torn systems: 1 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.02091/1.57, allocations: 14.3 MB / 0.9502 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01276/1.583, allocations: 10.53 MB / 0.9605 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.583, allocations: 0 / 0.9605 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004568/1.587, allocations: 4.078 MB / 0.9645 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006442/1.594, allocations: 0.7809 MB / 0.9652 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08646/1.68, allocations: 64.65 MB / 1.028 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004706/1.685, allocations: 4.905 MB / 1.033 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003473/1.689, allocations: 3.17 MB / 1.036 GB, free: 55.62 MB / 0.4948 GB Notification: Performance of SimCode: time 6.91e-07/1.689, allocations: 0 / 1.036 GB, free: 55.62 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.65/13.34, allocations: 281.4 MB / 1.311 GB, free: 156.2 MB / 0.4948 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)