Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001906/0.001906, allocations: 117.1 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002131/0.002131, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 246.5 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2285/0.2285, allocations: 46.12 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 84.88 kB / 417.1 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1135, allocations: 62.45 MB / 479.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.03388/0.1474, allocations: 30.31 MB / 0.4979 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.1614, allocations: 6.275 MB / 0.504 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004592/0.166, allocations: 127.7 kB / 0.5042 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2143/0.3804, allocations: 1.918 MB / 0.506 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002605/0.3831, allocations: 1.032 MB / 0.5071 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006714/0.3837, allocations: 274.8 kB / 0.5073 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003042/0.3868, allocations: 2.346 MB / 0.5096 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002879/0.3897, allocations: 2.42 MB / 0.512 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.3911, allocations: 0.8898 MB / 0.5128 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002026/0.3931, allocations: 1.26 MB / 0.5141 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005481/0.3937, allocations: 192.8 kB / 0.5143 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001463/0.3951, allocations: 0.7103 MB / 0.5149 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.3964, allocations: 1.121 MB / 0.516 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.3975, allocations: 1.318 MB / 0.5173 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005939/0.4035, allocations: 4.175 MB / 0.5214 GB, free: 8.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.4035, allocations: 0.6094 kB / 0.5214 GB, free: 8.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.96e-06/0.4035, allocations: 0 / 0.5214 GB, free: 8.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001482/0.4037, allocations: 3.094 kB / 0.5214 GB, free: 8.758 MB / 382.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.006931/0.4106, allocations: 2.871 MB / 0.5242 GB, free: 7.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.4107, allocations: 9.094 kB / 0.5242 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004817/0.4155, allocations: 1.556 MB / 0.5257 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.4177, allocations: 1.319 MB / 0.527 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.534e-05/0.4178, allocations: 145 kB / 0.5272 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.4181, allocations: 185.4 kB / 0.5273 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009261/0.4274, allocations: 6.249 MB / 0.5334 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.26e-05/0.4275, allocations: 17.59 kB / 0.5335 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.4277, allocations: 91.05 kB / 0.5335 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001707/0.4294, allocations: 1.35 MB / 0.5349 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009814/0.4393, allocations: 5.323 MB / 0.5401 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03271/0.472, allocations: 20.17 MB / 0.5598 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/0.477, allocations: 2.007 MB / 0.5617 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.4783, allocations: 0.6903 MB / 0.5624 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007908/0.4863, allocations: 3.613 MB / 0.5659 GB, free: 3.113 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.4863, allocations: 39 kB / 0.566 GB, free: 3.066 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.767e-06/0.4863, allocations: 0 / 0.566 GB, free: 3.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005942/0.4923, allocations: 1.98 MB / 0.5679 GB, free: 1.078 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.4924, allocations: 66.55 kB / 0.568 GB, free: 1.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00479/0.4972, allocations: 1.933 MB / 0.5699 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-05/0.4973, allocations: 33.7 kB / 0.5699 GB, free: 15.03 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00207/0.4994, allocations: 1.842 MB / 0.5717 GB, free: 13.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004571/0.4998, allocations: 302.1 kB / 0.572 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.5011, allocations: 0.6255 MB / 0.5726 GB, free: 12.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.5013, allocations: 355.8 kB / 0.5729 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.5029, allocations: 0.8881 MB / 0.5738 GB, free: 11.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003601/0.5066, allocations: 2.749 MB / 0.5765 GB, free: 7.363 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005405/0.512, allocations: 3.975 MB / 0.5804 GB, free: 2.734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-05/0.5121, allocations: 24 kB / 0.5804 GB, free: 2.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006002/0.5181, allocations: 3.516 MB / 0.5838 GB, free: 15.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/0.5181, allocations: 36.97 kB / 0.5838 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/0.5183, allocations: 64 kB / 0.5839 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001267/0.5184, allocations: 88 kB / 0.584 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.5203, allocations: 0.6558 MB / 0.5846 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001202/0.5204, allocations: 139.5 kB / 0.5848 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.5224, allocations: 415.5 kB / 0.5852 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/0.5227, allocations: 184 kB / 0.5853 GB, free: 14.11 MB / 446.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.002419/0.5251, allocations: 1.348 MB / 0.5867 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003079/0.5254, allocations: 153.9 kB / 0.5868 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/0.5258, allocations: 196.9 kB / 0.587 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/0.5258, allocations: 12 kB / 0.587 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.5258, allocations: 3.938 kB / 0.587 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/0.5258, allocations: 3.984 kB / 0.587 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007946/0.5338, allocations: 4.022 MB / 0.5909 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.5338, allocations: 8 kB / 0.5909 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.5343, allocations: 107.8 kB / 0.591 GB, free: 8.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.771e-05/0.5343, allocations: 12 kB / 0.5911 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.719e-05/0.5344, allocations: 16 kB / 0.5911 GB, free: 8.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.751e-05/0.5344, allocations: 19.92 kB / 0.5911 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/0.5344, allocations: 4 kB / 0.5911 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.5361, allocations: 1.267 MB / 0.5923 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005638/0.5367, allocations: 250.7 kB / 0.5926 GB, free: 6.484 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003572/0.5371, allocations: 16 kB / 0.5926 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006357/0.5377, allocations: 31.88 kB / 0.5926 GB, free: 6.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5378, allocations: 59.77 kB / 0.5927 GB, free: 6.379 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/0.5379, allocations: 34.58 kB / 0.5927 GB, free: 6.348 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.5403, allocations: 1.267 MB / 0.5939 GB, free: 5.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5403, allocations: 0 / 0.5939 GB, free: 5.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003083/0.5434, allocations: 0.6727 MB / 0.5946 GB, free: 4.414 MB / 446.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.0004186/0.5439, allocations: 154 kB / 0.5947 GB, free: 4.258 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00425/0.5481, allocations: 2.245 MB / 0.5969 GB, free: 2.027 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.5481, allocations: 0 / 0.5969 GB, free: 2.027 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006913/0.5488, allocations: 461.5 kB / 0.5974 GB, free: 1.578 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.5505, allocations: 257.5 kB / 0.5976 GB, free: 1.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.5632, allocations: 6.387 MB / 0.6039 GB, free: 10.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004122/0.5674, allocations: 2.279 MB / 0.6061 GB, free: 8.523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002941/0.5703, allocations: 0.9558 MB / 0.607 GB, free: 7.562 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004937/0.5708, allocations: 123.4 kB / 0.6071 GB, free: 7.441 MB / 462.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5708, allocations: 0 / 0.6071 GB, free: 7.441 MB / 462.1 MB Notification: Performance of Templates: time 0.03842/0.6093, allocations: 14.09 MB / 0.6209 GB, free: 9.441 MB / 478.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches