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.001122/0.001122, allocations: 199.5 kB / 18.11 MB, free: 3.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007773/0.0007773, allocations: 93.09 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002207/0.0002207, allocations: 7.984 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1991, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2989/0.498, allocations: 114.9 MB / 0.512 GB, free: 97.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.4983, allocations: 94.42 kB / 0.5121 GB, free: 97.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2863/0.7847, allocations: 134.8 MB / 0.6437 GB, free: 14.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.7847, allocations: 0 / 0.6437 GB, free: 14.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006001/0.7853, allocations: 152 kB / 0.6439 GB, free: 14.66 MB / 426.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.02544/0.8108, allocations: 7.397 MB / 0.6511 GB, free: 7.176 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.8109, allocations: 12.03 kB / 0.6511 GB, free: 7.164 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01319/0.8241, allocations: 3.018 MB / 0.654 GB, free: 4.133 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01655/0.8406, allocations: 5.994 MB / 0.6599 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007053/0.8414, allocations: 0.5579 MB / 0.6604 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003754/0.8452, allocations: 0.7305 MB / 0.6612 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4312/1.276, allocations: 17.89 MB / 0.6786 GB, free: 59.54 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002769/1.277, allocations: 77.5 kB / 0.6787 GB, free: 59.54 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/1.278, allocations: 352.5 kB / 0.679 GB, free: 59.54 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/1.28, allocations: 1.558 MB / 0.6806 GB, free: 59.53 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03007/1.31, allocations: 14.57 MB / 0.6948 GB, free: 59.48 MB / 442.8 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.0755/1.385, allocations: 74.46 MB / 0.7675 GB, free: 15.95 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01898/1.404, allocations: 7.706 MB / 0.775 GB, free: 13.74 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003666/1.408, allocations: 3.389 MB / 0.7783 GB, free: 12.32 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/1.425, allocations: 14.43 MB / 0.7924 GB, free: 4.805 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/1.425, allocations: 70.91 kB / 0.7925 GB, free: 4.746 MB / 442.8 MB Notification: Performance of pre-optimization done (n=247): time 6.102e-06/1.425, allocations: 0 / 0.7925 GB, free: 4.746 MB / 442.8 MB Notification: Performance of matching and sorting (n=293): time 0.3877/1.813, allocations: 54.11 MB / 0.8453 GB, free: 92.15 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/1.813, allocations: 159 kB / 0.8455 GB, free: 91.99 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006887/1.82, allocations: 5.67 MB / 0.851 GB, free: 91.68 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000586/1.82, allocations: 68.28 kB / 0.8511 GB, free: 91.65 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002319/1.823, allocations: 4.878 MB / 0.8558 GB, free: 90.16 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/1.824, allocations: 1.109 MB / 0.8569 GB, free: 89.52 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003933/1.824, allocations: 172.8 kB / 0.8571 GB, free: 89.52 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003117/1.825, allocations: 0.6696 MB / 0.8577 GB, free: 89.2 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004629/1.829, allocations: 3.958 MB / 0.8616 GB, free: 89.18 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007006/1.836, allocations: 9.074 MB / 0.8705 GB, free: 82.62 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01278/1.849, allocations: 14.02 MB / 0.8842 GB, free: 76.09 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001255/1.849, allocations: 54.03 kB / 0.8842 GB, free: 76.09 MB / 474.8 MB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.06547/1.915, allocations: 23.96 MB / 0.9076 GB, free: 72.64 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003814/1.915, allocations: 82.06 kB / 0.9077 GB, free: 72.64 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005693/1.916, allocations: 182 kB / 0.9079 GB, free: 72.64 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01463/1.93, allocations: 5.426 MB / 0.9132 GB, free: 71.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00677/1.937, allocations: 2.031 MB / 0.9152 GB, free: 71.37 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03891/1.976, allocations: 33.23 MB / 0.9476 GB, free: 53.53 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008177/1.984, allocations: 0.6089 MB / 0.9482 GB, free: 53.36 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001952/1.986, allocations: 0.4939 MB / 0.9487 GB, free: 53.3 MB / 474.8 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.008358/1.995, allocations: 3.294 MB / 0.9519 GB, free: 50.68 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/1.996, allocations: 0.5161 MB / 0.9524 GB, free: 50.16 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05486/2.051, allocations: 17.38 MB / 0.9694 GB, free: 38.34 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.886e-05/2.051, allocations: 42.91 kB / 0.9694 GB, free: 38.3 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.993e-05/2.051, allocations: 12 kB / 0.9694 GB, free: 38.29 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.406e-05/2.051, allocations: 14.62 kB / 0.9694 GB, free: 38.29 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07587/2.127, allocations: 27.97 MB / 0.9968 GB, free: 13.72 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-05/2.127, allocations: 7.938 kB / 0.9968 GB, free: 13.71 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/2.13, allocations: 0.5148 MB / 0.9973 GB, free: 13.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01396/2.144, allocations: 5.208 MB / 1.002 GB, free: 8.027 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006844/2.145, allocations: 57.86 kB / 1.002 GB, free: 7.977 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2706/2.416, allocations: 32.76 MB / 1.034 GB, free: 92.16 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.416, allocations: 3.625 kB / 1.034 GB, free: 92.16 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06024/2.476, allocations: 22.2 MB / 1.056 GB, free: 91.38 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/2.478, allocations: 0.5387 MB / 1.057 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/2.479, allocations: 45.97 kB / 1.057 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/2.482, allocations: 300.6 kB / 1.057 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008432/2.483, allocations: 182.1 kB / 1.057 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002553/2.483, allocations: 75.91 kB / 1.057 GB, free: 91.29 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00523/2.488, allocations: 3.499 MB / 1.061 GB, free: 91.11 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.01e-07/2.488, allocations: 0 / 1.061 GB, free: 91.11 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009144/2.497, allocations: 1.876 MB / 1.062 GB, free: 91.11 MB / 490.8 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.0009774/2.498, allocations: 289.6 kB / 1.063 GB, free: 91.02 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01838/2.517, allocations: 11.01 MB / 1.073 GB, free: 89.18 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/2.517, allocations: 0 / 1.073 GB, free: 89.18 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01009/2.527, allocations: 5.134 MB / 1.078 GB, free: 86.94 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006108/2.533, allocations: 0.7817 MB / 1.079 GB, free: 86.64 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02948/2.562, allocations: 19.73 MB / 1.099 GB, free: 77.28 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007403/2.57, allocations: 5.028 MB / 1.103 GB, free: 75.58 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.007338/2.577, allocations: 2.687 MB / 1.106 GB, free: 75.39 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/2.579, allocations: 335.8 kB / 1.106 GB, free: 75.38 MB / 490.8 MB Notification: Performance of SimCode: time 9.32e-07/2.579, allocations: 0 / 1.106 GB, free: 75.38 MB / 490.8 MB Notification: Performance of Templates: time 0.3683/2.947, allocations: 86.97 MB / 1.191 GB, free: 97.2 MB / 490.8 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/jenkins1/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