Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.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.PrismaticConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.v_0.1.|bodyOfConstraint.v_0.2.|bodyOfConstraint.v_0.3.|constraint.frame_b.r_0.1.|constraint.frame_b.r_0.2.|constraint.frame_b.r_0.3.|jointPrismatic_x.s|jointPrismatic_x.v|jointPrismatic_y.s|jointPrismatic_y.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.v_0.1.|bodyOfConstraint.v_0.2.|bodyOfConstraint.v_0.3.|constraint.frame_b.r_0.1.|constraint.frame_b.r_0.2.|constraint.frame_b.r_0.3.|jointPrismatic_x.s|jointPrismatic_x.v|jointPrismatic_y.s|jointPrismatic_y.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint") [: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.0009731/0.0009731, allocations: 179.5 kB / 8.48 MB, free: 1.871 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.126/1.126, allocations: 205.2 MB / 214.1 MB, free: 5.152 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.0008511/0.0008511, allocations: 90.23 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.073e-06/7.103e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0711/0.07112, allocations: 47.57 MB / 362.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2523/0.3235, allocations: 112.3 MB / 474.8 MB, free: 12.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.3238, allocations: 92.56 kB / 474.9 MB, free: 12.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.4836/0.8073, allocations: 132.6 MB / 0.5932 GB, free: 75.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000264/0.8076, allocations: 158 kB / 0.5934 GB, free: 75.14 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2584 * Number of variables: 2584 Notification: Performance of Generate backend data structure: time 0.01913/0.8268, allocations: 7.205 MB / 0.6004 GB, free: 72.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.8268, allocations: 10.81 kB / 0.6004 GB, free: 72.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01307/0.8399, allocations: 2.566 MB / 0.603 GB, free: 71.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01778/0.8577, allocations: 7.782 MB / 0.6106 GB, free: 70.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/0.8581, allocations: 248.9 kB / 0.6108 GB, free: 70.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/0.8608, allocations: 458.9 kB / 0.6112 GB, free: 70.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01734/0.8781, allocations: 11.22 MB / 0.6222 GB, free: 70 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02735/0.9055, allocations: 15.89 MB / 0.6377 GB, free: 61.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003249/0.9059, allocations: 81.69 kB / 0.6378 GB, free: 61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00174/0.9076, allocations: 44 kB / 0.6378 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001979/0.9096, allocations: 1.725 MB / 0.6395 GB, free: 59.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07891/0.9886, allocations: 76.4 MB / 0.7141 GB, free: 5.168 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005252/0.9939, allocations: 4.023 MB / 0.718 GB, free: 1.012 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1157/1.11, allocations: 3.064 MB / 0.721 GB, free: 122.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01391/1.123, allocations: 10.41 MB / 0.7312 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/1.124, allocations: 58.53 kB / 0.7313 GB, free: 119.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 6.061e-06/1.124, allocations: 0 / 0.7313 GB, free: 119.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=314): time 0.1332/1.257, allocations: 41.25 MB / 0.7716 GB, free: 114.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/1.257, allocations: 160.9 kB / 0.7717 GB, free: 114.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005949/1.263, allocations: 4.582 MB / 0.7762 GB, free: 113 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006693/1.264, allocations: 30.45 kB / 0.7762 GB, free: 113 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/1.266, allocations: 4.66 MB / 0.7808 GB, free: 109.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/1.267, allocations: 1.156 MB / 0.7819 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005059/1.267, allocations: 0 / 0.7819 GB, free: 108.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003591/1.268, allocations: 0.6948 MB / 0.7826 GB, free: 108.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004581/1.272, allocations: 3.987 MB / 0.7865 GB, free: 106.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006709/1.279, allocations: 9.353 MB / 0.7956 GB, free: 97.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007229/1.286, allocations: 5.969 MB / 0.8014 GB, free: 96.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/1.287, allocations: 58.62 kB / 0.8015 GB, free: 96 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.07056/1.357, allocations: 20.88 MB / 0.8219 GB, free: 81.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/1.357, allocations: 4 kB / 0.8219 GB, free: 81.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/1.357, allocations: 192 kB / 0.8221 GB, free: 81.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01497/1.372, allocations: 4.944 MB / 0.8269 GB, free: 77.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007619/1.38, allocations: 2.134 MB / 0.829 GB, free: 75.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03518/1.415, allocations: 28.86 MB / 0.8572 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008008/1.423, allocations: 357.5 kB / 0.8575 GB, free: 49.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.425, allocations: 0.5338 MB / 0.858 GB, free: 48.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 63 (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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1119): * Single equations (assignments): 1108 * 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.001441/1.426, allocations: 0.5936 MB / 0.8586 GB, free: 48.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009161/1.427, allocations: 0.4974 MB / 0.8591 GB, free: 47.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06718/1.494, allocations: 15.02 MB / 0.8738 GB, free: 33.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001222/1.495, allocations: 43.98 kB / 0.8738 GB, free: 33.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.334e-05/1.495, allocations: 12 kB / 0.8738 GB, free: 33.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.809e-05/1.495, allocations: 11.95 kB / 0.8738 GB, free: 33.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1919/1.686, allocations: 24.35 MB / 0.8976 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/1.687, allocations: 2.5 kB / 0.8976 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003403/1.69, allocations: 0.516 MB / 0.8981 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01449/1.704, allocations: 4.669 MB / 0.9027 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006717/1.705, allocations: 22.97 kB / 0.9027 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03605/1.741, allocations: 28.39 MB / 0.9304 GB, free: 96.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.741, allocations: 5.281 kB / 0.9304 GB, free: 96.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0609/1.802, allocations: 20.18 MB / 0.9501 GB, free: 91.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003017/1.805, allocations: 1.157 MB / 0.9513 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/1.807, allocations: 11.78 kB / 0.9513 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003366/1.81, allocations: 160.1 kB / 0.9514 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000467/1.81, allocations: 134.6 kB / 0.9515 GB, free: 90.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003153/1.811, allocations: 89.42 kB / 0.9516 GB, free: 90.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004432/1.815, allocations: 3.07 MB / 0.9546 GB, free: 89.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009076/1.824, allocations: 1.679 MB / 0.9563 GB, free: 89.52 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 224 * 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,(4,100.0%) 9,(4,100.0%) 9,(2,100.0%) 1,(2,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009464/1.825, allocations: 226 kB / 0.9565 GB, free: 89.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0174/1.843, allocations: 10.58 MB / 0.9668 GB, free: 85.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/1.843, allocations: 0 / 0.9668 GB, free: 85.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01036/1.853, allocations: 4.75 MB / 0.9715 GB, free: 82.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.857, allocations: 0.5954 MB / 0.972 GB, free: 81.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02988/1.887, allocations: 14.9 MB / 0.9866 GB, free: 68.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007976/1.895, allocations: 5.689 MB / 0.9921 GB, free: 64.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/1.895, allocations: 1.859 kB / 0.9921 GB, free: 64.45 MB / 426.7 MB Notification: Performance of Templates: time 0.2756/2.17, allocations: 89.63 MB / 1.08 GB, free: 98.51 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Constraints/PrismaticConstraint/PrismaticConstraint.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches