Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001107, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008147/0.0008147, allocations: 100.8 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1793/0.1793, allocations: 44.83 MB / 392 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002276, allocations: 8 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08451, allocations: 62.95 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.2848/0.3693, allocations: 90.24 MB / 0.6034 GB, free: 3.223 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03843/0.4078, allocations: 18.13 MB / 0.6211 GB, free: 1.043 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01567/0.4235, allocations: 438.9 kB / 0.6216 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01301/0.4366, allocations: 4.856 MB / 0.6263 GB, free: 11.73 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03256/0.4691, allocations: 14.15 MB / 0.6401 GB, free: 13.53 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005067/0.4742, allocations: 1.261 MB / 0.6414 GB, free: 12.27 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.4843, allocations: 9.167 MB / 0.6503 GB, free: 3.086 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01199/0.4963, allocations: 9.017 MB / 0.6591 GB, free: 9.992 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0045/0.5009, allocations: 2.445 MB / 0.6615 GB, free: 7.539 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005442/0.5063, allocations: 3.521 MB / 0.6649 GB, free: 4.008 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.5078, allocations: 256 kB / 0.6652 GB, free: 3.758 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002853/0.5107, allocations: 0.944 MB / 0.6661 GB, free: 2.812 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003822/0.5145, allocations: 3.14 MB / 0.6692 GB, free: 15.66 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.5166, allocations: 1.434 MB / 0.6706 GB, free: 14.22 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008778/0.5254, allocations: 9.262 MB / 0.6796 GB, free: 4.934 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.5254, allocations: 4 kB / 0.6796 GB, free: 4.93 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5254, allocations: 0 / 0.6796 GB, free: 4.93 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004034/0.5258, allocations: 0 / 0.6796 GB, free: 4.93 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.01375/0.5396, allocations: 7.288 MB / 0.6867 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.5397, allocations: 12.03 kB / 0.6868 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009559/0.5492, allocations: 2.638 MB / 0.6893 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009802/0.5591, allocations: 4.389 MB / 0.6936 GB, free: 6.422 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/0.5596, allocations: 446.8 kB / 0.694 GB, free: 5.984 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001912/0.5615, allocations: 0.5543 MB / 0.6946 GB, free: 5.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02936/0.5909, allocations: 17.43 MB / 0.7116 GB, free: 2.859 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002252/0.5911, allocations: 75.36 kB / 0.7117 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.5923, allocations: 271.8 kB / 0.7119 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3369/0.9293, allocations: 3.161 MB / 0.715 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02648/0.9558, allocations: 13.39 MB / 0.7281 GB, free: 160.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07287/1.029, allocations: 65.97 MB / 0.7925 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01318/1.042, allocations: 5.383 MB / 0.7978 GB, free: 98.97 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/1.045, allocations: 2.111 MB / 0.7998 GB, free: 96.85 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.059, allocations: 10.01 MB / 0.8096 GB, free: 86.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/1.059, allocations: 51.88 kB / 0.8097 GB, free: 86.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=182): time 4.548e-06/1.059, allocations: 4 kB / 0.8097 GB, free: 86.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=206): time 0.03182/1.091, allocations: 14.22 MB / 0.8236 GB, free: 72.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/1.091, allocations: 149.8 kB / 0.8237 GB, free: 71.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006181/1.097, allocations: 6.351 MB / 0.8299 GB, free: 65.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002276/1.097, allocations: 56.75 kB / 0.83 GB, free: 65.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002133/1.099, allocations: 5.233 MB / 0.8351 GB, free: 60.32 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000521/1.1, allocations: 0.8206 MB / 0.8359 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000234/1.1, allocations: 168 kB / 0.836 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002776/1.1, allocations: 0.6696 MB / 0.8367 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/1.103, allocations: 2.316 MB / 0.8389 GB, free: 56.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004392/1.108, allocations: 7.725 MB / 0.8465 GB, free: 45.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004419/1.112, allocations: 4.098 MB / 0.8505 GB, free: 41.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.06e-05/1.112, allocations: 56 kB / 0.8505 GB, free: 41.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.01184/1.124, allocations: 9.669 MB / 0.86 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.039e-05/1.124, allocations: 88.19 kB / 0.8601 GB, free: 31.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001464/1.124, allocations: 192 kB / 0.8603 GB, free: 31.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/1.124, allocations: 291.9 kB / 0.8605 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/1.129, allocations: 1.945 MB / 0.8624 GB, free: 29.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001714/1.129, allocations: 378.5 kB / 0.8628 GB, free: 29.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00468/1.134, allocations: 416.7 kB / 0.8632 GB, free: 28.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005757/1.135, allocations: 0.5171 MB / 0.8637 GB, free: 28.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1055): * Single equations (assignments): 1044 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00405/1.139, allocations: 3.411 MB / 0.867 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006887/1.139, allocations: 0.5321 MB / 0.8675 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007721/1.14, allocations: 0.6248 MB / 0.8682 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.596e-05/1.14, allocations: 24.86 kB / 0.8682 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/1.14, allocations: 0 / 0.8682 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/1.14, allocations: 7.969 kB / 0.8682 GB, free: 23.65 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/1.157, allocations: 15.26 MB / 0.8831 GB, free: 7.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.721e-05/1.157, allocations: 48 kB / 0.8831 GB, free: 7.684 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/1.158, allocations: 443.2 kB / 0.8836 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.959e-05/1.158, allocations: 64 kB / 0.8836 GB, free: 7.188 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/1.158, allocations: 100 kB / 0.8837 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.68e-05/1.158, allocations: 95.64 kB / 0.8838 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.528e-05/1.158, allocations: 71.69 kB / 0.8839 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/1.162, allocations: 4.291 MB / 0.8881 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009923/1.163, allocations: 0.6421 MB / 0.8887 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/1.163, allocations: 108 kB / 0.8888 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/1.165, allocations: 113.3 kB / 0.8889 GB, free: 1.043 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/1.165, allocations: 306.7 kB / 0.8892 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/1.165, allocations: 124 kB / 0.8893 GB, free: 0.6211 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005851/1.171, allocations: 3.949 MB / 0.8932 GB, free: 12.68 MB / 0.5262 GB Notification: Performance of sort global known variables: time 3.91e-07/1.171, allocations: 0 / 0.8932 GB, free: 12.68 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.006865/1.178, allocations: 1.372 MB / 0.8945 GB, free: 11.32 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * 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 (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006283/1.179, allocations: 274.9 kB / 0.8948 GB, free: 11.05 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.008459/1.187, allocations: 5.363 MB / 0.9 GB, free: 5.73 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-05/1.187, allocations: 4 kB / 0.9 GB, free: 5.727 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.001714/1.189, allocations: 1.2 MB / 0.9012 GB, free: 4.539 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005255/1.194, allocations: 0.889 MB / 0.9021 GB, free: 3.66 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2183/1.413, allocations: 19.21 MB / 0.9208 GB, free: 171.5 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009559/1.422, allocations: 5.24 MB / 0.9259 GB, free: 170.6 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.424, allocations: 427.6 kB / 0.9263 GB, free: 170.6 MB / 0.5418 GB Notification: Performance of SimCode: time 1.843e-06/1.424, allocations: 0 / 0.9263 GB, free: 170.6 MB / 0.5418 GB Notification: Performance of Templates: time 0.1109/1.534, allocations: 85.79 MB / 1.01 GB, free: 113.4 MB / 0.5418 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches