Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 108 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.001461, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2841, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01022/0.2944, allocations: 9.53 MB / 0.5409 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006182/0.3006, allocations: 2.926 MB / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.3021, allocations: 48.16 kB / 0.5439 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003922/0.306, allocations: 1.986 MB / 0.5458 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002835/0.3089, allocations: 1.121 MB / 0.5469 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007632/0.3097, allocations: 282.2 kB / 0.5472 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003133/0.3129, allocations: 2.338 MB / 0.5494 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002461/0.3153, allocations: 2.297 MB / 0.5517 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.3164, allocations: 0.8761 MB / 0.5525 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.3179, allocations: 1.153 MB / 0.5537 GB, free: 11.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003538/0.3182, allocations: 196 kB / 0.5538 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.3194, allocations: 0.7021 MB / 0.5545 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009256/0.3204, allocations: 1.114 MB / 0.5556 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.3216, allocations: 1.305 MB / 0.5569 GB, free: 7.758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004243/0.3258, allocations: 4.319 MB / 0.5611 GB, free: 3.426 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3259, allocations: 0 / 0.5611 GB, free: 3.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3259, allocations: 0 / 0.5611 GB, free: 3.426 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.109e-05/0.326, allocations: 4 kB / 0.5611 GB, free: 3.422 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.004659/0.3307, allocations: 2.857 MB / 0.5639 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3307, allocations: 8.031 kB / 0.5639 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005017/0.3357, allocations: 1.561 MB / 0.5654 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.3382, allocations: 1.336 MB / 0.5667 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3383, allocations: 144 kB / 0.5669 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004775/0.3388, allocations: 187.8 kB / 0.5671 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00966/0.3485, allocations: 6.254 MB / 0.5732 GB, free: 6.703 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.269e-05/0.3486, allocations: 15.86 kB / 0.5732 GB, free: 6.688 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003763/0.3489, allocations: 87.91 kB / 0.5733 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002007/0.351, allocations: 1.34 MB / 0.5746 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009303/0.3603, allocations: 5.335 MB / 0.5798 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/0.3856, allocations: 20.04 MB / 0.5994 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004027/0.3897, allocations: 1.998 MB / 0.6013 GB, free: 9.172 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009262/0.3906, allocations: 0.6953 MB / 0.602 GB, free: 8.473 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005852/0.3965, allocations: 3.608 MB / 0.6055 GB, free: 4.719 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3966, allocations: 38.94 kB / 0.6055 GB, free: 4.672 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.256e-06/0.3966, allocations: 7.938 kB / 0.6056 GB, free: 4.664 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005262/0.4019, allocations: 1.977 MB / 0.6075 GB, free: 2.676 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.4019, allocations: 59.78 kB / 0.6075 GB, free: 2.605 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/0.4047, allocations: 1.937 MB / 0.6094 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.407e-05/0.4047, allocations: 37.7 kB / 0.6095 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.4059, allocations: 1.837 MB / 0.6113 GB, free: 14.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003079/0.4063, allocations: 312.1 kB / 0.6116 GB, free: 14.44 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007747/0.407, allocations: 0.619 MB / 0.6122 GB, free: 13.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.4072, allocations: 353.9 kB / 0.6125 GB, free: 13.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.4084, allocations: 0.8842 MB / 0.6134 GB, free: 12.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002332/0.4108, allocations: 2.763 MB / 0.6161 GB, free: 8.879 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003897/0.4147, allocations: 3.961 MB / 0.6199 GB, free: 3.996 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.513e-05/0.4147, allocations: 20 kB / 0.6199 GB, free: 3.977 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005328/0.4201, allocations: 3.53 MB / 0.6234 GB, free: 448 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/0.4202, allocations: 32 kB / 0.6234 GB, free: 416 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.492e-05/0.4202, allocations: 68 kB / 0.6235 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.695e-05/0.4203, allocations: 84 kB / 0.6236 GB, free: 264 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.4222, allocations: 0.6627 MB / 0.6242 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.394e-05/0.4223, allocations: 123.5 kB / 0.6243 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.4241, allocations: 423.7 kB / 0.6247 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/0.4244, allocations: 192 kB / 0.6249 GB, free: 14.87 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001732/0.4261, allocations: 1.338 MB / 0.6262 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.4263, allocations: 153.9 kB / 0.6264 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003646/0.4267, allocations: 196.9 kB / 0.6266 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/0.4267, allocations: 11.94 kB / 0.6266 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.4267, allocations: 0 / 0.6266 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.4268, allocations: 4 kB / 0.6266 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006044/0.4328, allocations: 4.032 MB / 0.6305 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.4329, allocations: 4 kB / 0.6305 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004012/0.4333, allocations: 104.7 kB / 0.6306 GB, free: 8.867 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.4333, allocations: 8 kB / 0.6306 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.416e-05/0.4333, allocations: 23.98 kB / 0.6307 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.277e-05/0.4334, allocations: 11.94 kB / 0.6307 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.4334, allocations: 11.94 kB / 0.6307 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.4348, allocations: 1.266 MB / 0.6319 GB, free: 7.441 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004327/0.4353, allocations: 246.8 kB / 0.6321 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002514/0.4356, allocations: 19.98 kB / 0.6322 GB, free: 7.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.4361, allocations: 31.89 kB / 0.6322 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.4362, allocations: 55.81 kB / 0.6322 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.211e-05/0.4363, allocations: 28 kB / 0.6323 GB, free: 7.047 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001832/0.4381, allocations: 1.271 MB / 0.6335 GB, free: 5.785 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4381, allocations: 0 / 0.6335 GB, free: 5.785 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002362/0.4405, allocations: 0.6727 MB / 0.6342 GB, free: 5.109 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003285/0.4408, allocations: 154.9 kB / 0.6343 GB, free: 4.949 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.4438, allocations: 2.046 MB / 0.6363 GB, free: 2.918 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.4438, allocations: 0 / 0.6363 GB, free: 2.918 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005452/0.4443, allocations: 469 kB / 0.6368 GB, free: 2.461 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.4456, allocations: 251.5 kB / 0.637 GB, free: 2.223 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008086/0.4537, allocations: 5.359 MB / 0.6422 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002319/0.4561, allocations: 2.279 MB / 0.6445 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.4565, allocations: 147.3 kB / 0.6446 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/0.4565, allocations: 0 / 0.6446 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of Templates: time 0.04127/0.4978, allocations: 30.16 MB / 0.6741 GB, free: 12.17 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches