Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.r_0.1.|bodyOfConstraint.r_0.2.|bodyOfConstraint.r_0.3.|bodyOfConstraint.v_0.1.|bodyOfConstraint.v_0.2.|bodyOfConstraint.v_0.3.|jointPrismatic_x.s|jointPrismatic_x.v|jointPrismatic_y.s|jointPrismatic_y.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.r_0.1.|bodyOfConstraint.r_0.2.|bodyOfConstraint.r_0.3.|bodyOfConstraint.v_0.1.|bodyOfConstraint.v_0.2.|bodyOfConstraint.v_0.3.|jointPrismatic_x.s|jointPrismatic_x.v|jointPrismatic_y.s|jointPrismatic_y.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000817/0.000817, allocations: 100 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.000211, allocations: 4 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1956, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3173/0.513, allocations: 114.8 MB / 0.5119 GB, free: 44.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.5132, allocations: 93.36 kB / 0.512 GB, free: 44.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.301/0.8143, allocations: 138.2 MB / 0.647 GB, free: 15.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.8143, allocations: 0 / 0.647 GB, free: 15.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003849/0.8147, allocations: 152 kB / 0.6471 GB, free: 15.79 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.02714/0.8419, allocations: 7.651 MB / 0.6546 GB, free: 8.059 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.8419, allocations: 8.031 kB / 0.6546 GB, free: 8.051 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.8557, allocations: 3.149 MB / 0.6577 GB, free: 4.887 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01688/0.8726, allocations: 6.681 MB / 0.6642 GB, free: 14.12 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004971/0.8732, allocations: 0.5458 MB / 0.6647 GB, free: 13.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002536/0.8757, allocations: 0.7419 MB / 0.6654 GB, free: 12.83 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2473/1.123, allocations: 18.09 MB / 0.6831 GB, free: 70.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005722/1.124, allocations: 81.12 kB / 0.6832 GB, free: 70.31 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00319/1.127, allocations: 344.7 kB / 0.6835 GB, free: 70.31 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002466/1.129, allocations: 1.557 MB / 0.685 GB, free: 70.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/1.158, allocations: 14.83 MB / 0.6995 GB, free: 70.25 MB / 458.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.07448/1.232, allocations: 74.6 MB / 0.7724 GB, free: 43.78 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01937/1.252, allocations: 7.792 MB / 0.78 GB, free: 41.56 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01797/1.27, allocations: 14.55 MB / 0.7942 GB, free: 34.01 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/1.27, allocations: 63.23 kB / 0.7943 GB, free: 33.95 MB / 474.7 MB Notification: Performance of pre-optimization done (n=247): time 5.67e-06/1.27, allocations: 0 / 0.7943 GB, free: 33.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=293): time 0.1756/1.446, allocations: 54.51 MB / 0.8475 GB, free: 1.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.23e-05/1.446, allocations: 162.3 kB / 0.8476 GB, free: 1.477 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2329/1.679, allocations: 5.033 MB / 0.8526 GB, free: 88.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007514/1.679, allocations: 68.67 kB / 0.8526 GB, free: 88.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003748/1.683, allocations: 4.873 MB / 0.8574 GB, free: 86.61 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001623/1.685, allocations: 1.12 MB / 0.8585 GB, free: 85.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/1.686, allocations: 171.5 kB / 0.8586 GB, free: 85.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005304/1.687, allocations: 0.6678 MB / 0.8593 GB, free: 85.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005832/1.692, allocations: 3.953 MB / 0.8631 GB, free: 85.63 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006792/1.699, allocations: 9.047 MB / 0.872 GB, free: 79.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007144/1.706, allocations: 5.765 MB / 0.8776 GB, free: 79.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.776e-05/1.706, allocations: 51.84 kB / 0.8777 GB, free: 79.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.06546/1.772, allocations: 23.95 MB / 0.9011 GB, free: 78.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/1.772, allocations: 84.42 kB / 0.9011 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/1.772, allocations: 181.2 kB / 0.9013 GB, free: 78.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01396/1.786, allocations: 5.451 MB / 0.9066 GB, free: 77.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007519/1.794, allocations: 2.033 MB / 0.9086 GB, free: 77.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03922/1.833, allocations: 34.47 MB / 0.9423 GB, free: 60.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007436/1.841, allocations: 0.5977 MB / 0.9429 GB, free: 60.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/1.842, allocations: 0.5082 MB / 0.9434 GB, free: 60.03 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 67 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.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.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],jointPrismatic_y.boxColor[3],jointPrismatic_y.boxColor[2],jointPrismatic_y.boxColor[1],jointPrismatic_x.boxColor[3],jointPrismatic_x.boxColor[2],jointPrismatic_x.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1042): * Single equations (assignments): 1031 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(5,60.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 6,(4,100.0%) 9,(4,100.0%) 9} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006131/1.848, allocations: 3.291 MB / 0.9466 GB, free: 58.49 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.849, allocations: 0.5166 MB / 0.9471 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0543/1.904, allocations: 17.38 MB / 0.9641 GB, free: 48.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-05/1.904, allocations: 43.25 kB / 0.9641 GB, free: 48.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.327e-05/1.904, allocations: 15.23 kB / 0.9641 GB, free: 48.61 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.931e-05/1.904, allocations: 18.06 kB / 0.9641 GB, free: 48.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07021/1.974, allocations: 27.97 MB / 0.9914 GB, free: 26.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.598e-05/1.974, allocations: 3.953 kB / 0.9914 GB, free: 26.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002963/1.977, allocations: 0.5197 MB / 0.9919 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0141/1.991, allocations: 5.215 MB / 0.997 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006917/1.992, allocations: 53.39 kB / 0.9971 GB, free: 21.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2596/2.252, allocations: 33.99 MB / 1.03 GB, free: 86.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.252, allocations: 3.844 kB / 1.03 GB, free: 86.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.062/2.314, allocations: 22.3 MB / 1.052 GB, free: 85.92 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/2.316, allocations: 0.5391 MB / 1.053 GB, free: 85.83 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001918/2.318, allocations: 50.52 kB / 1.053 GB, free: 85.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003944/2.321, allocations: 303.6 kB / 1.053 GB, free: 85.83 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009467/2.322, allocations: 174.8 kB / 1.053 GB, free: 85.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002714/2.323, allocations: 88.22 kB / 1.053 GB, free: 85.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005424/2.328, allocations: 3.506 MB / 1.057 GB, free: 85.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.3e-07/2.328, allocations: 0 / 1.057 GB, free: 85.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009116/2.337, allocations: 1.874 MB / 1.058 GB, free: 85.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (jointPrismatic_x.s,jointPrismatic_x.v,jointPrismatic_y.s,jointPrismatic_y.v,bodyOfConstraint.v_0[2],bodyOfConstraint.v_0[3],bodyOfConstraint.body.frame_a.r_0[2],bodyOfConstraint.body.frame_a.r_0[3]) * 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 (212): * Single equations (assignments): 201 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(5,60.0%) 4,(2,100.0%) 1,(4,100.0%) 9,(4,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008699/2.338, allocations: 273.8 kB / 1.059 GB, free: 85.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01702/2.355, allocations: 11.01 MB / 1.069 GB, free: 84.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/2.355, allocations: 0 / 1.069 GB, free: 84.68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0094/2.365, allocations: 5.138 MB / 1.074 GB, free: 83.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004507/2.369, allocations: 0.7461 MB / 1.075 GB, free: 83.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02731/2.397, allocations: 19.69 MB / 1.094 GB, free: 76.13 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005145/2.402, allocations: 5.17 MB / 1.099 GB, free: 74.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006429/2.408, allocations: 2.686 MB / 1.102 GB, free: 74.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009055/2.409, allocations: 331.8 kB / 1.102 GB, free: 74.2 MB / 490.7 MB Notification: Performance of SimCode: time 9.32e-07/2.409, allocations: 0 / 1.102 GB, free: 74.2 MB / 490.7 MB Notification: Performance of Templates: time 0.1146/2.524, allocations: 86.84 MB / 1.187 GB, free: 9.57 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Constraints/PrismaticConstraint/PrismaticConstraint.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches