Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 107.1 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 190 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.1 MB / 222.8 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2046/0.2046, allocations: 43.51 MB / 313.6 MB, free: 0.7148 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 68.7 kB / 382.3 MB, free: 56.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1006, allocations: 57.78 MB / 440.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03247/0.1331, allocations: 38.97 MB / 479.1 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0207/0.1539, allocations: 7.658 MB / 486.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009381/0.1633, allocations: 155.7 kB / 486.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004253/0.1676, allocations: 1.94 MB / 488.8 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003187/0.1709, allocations: 1.137 MB / 490 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007796/0.1717, allocations: 271.6 kB / 490.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00327/0.175, allocations: 2.512 MB / 492.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002836/0.1778, allocations: 2.52 MB / 495.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.1792, allocations: 0.9773 MB / 496.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.1808, allocations: 1.417 MB / 497.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003521/0.1811, allocations: 220 kB / 497.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.1823, allocations: 0.7139 MB / 498.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009947/0.1833, allocations: 1.258 MB / 499.8 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.1845, allocations: 1.487 MB / 0.4896 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004306/0.1889, allocations: 4.673 MB / 0.4941 GB, free: 5.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1889, allocations: 0 / 0.4941 GB, free: 5.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1889, allocations: 0 / 0.4941 GB, free: 5.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.614e-05/0.189, allocations: 0 / 0.4941 GB, free: 5.078 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: 1095 * Number of variables: 1095 Notification: Performance of Generate backend data structure: time 0.005304/0.1943, allocations: 3.159 MB / 0.4972 GB, free: 1.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/0.1944, allocations: 11.89 kB / 0.4972 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006319/0.195, allocations: 0.5255 MB / 0.4978 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005242/0.2003, allocations: 1.623 MB / 0.4993 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002896/0.2032, allocations: 1.414 MB / 0.5007 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.2034, allocations: 164.1 kB / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005405/0.2039, allocations: 199.9 kB / 0.5011 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.2155, allocations: 6.977 MB / 0.5079 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.2156, allocations: 11.88 kB / 0.5079 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.2159, allocations: 99.89 kB / 0.508 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002348/0.2182, allocations: 1.524 MB / 0.5095 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.2308, allocations: 5.955 MB / 0.5153 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1951/0.426, allocations: 22.24 MB / 0.537 GB, free: 79.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/0.4302, allocations: 2.186 MB / 0.5391 GB, free: 78.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/0.4313, allocations: 0.8087 MB / 0.5399 GB, free: 78.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006224/0.4376, allocations: 3.964 MB / 0.5438 GB, free: 77.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.4376, allocations: 38.16 kB / 0.5438 GB, free: 77.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.645e-06/0.4376, allocations: 3.844 kB / 0.5438 GB, free: 77.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.005471/0.4431, allocations: 2.261 MB / 0.546 GB, free: 77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.4431, allocations: 60.19 kB / 0.5461 GB, free: 76.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.4466, allocations: 2.059 MB / 0.5481 GB, free: 76.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.4467, allocations: 36.3 kB / 0.5482 GB, free: 76.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.4478, allocations: 2.014 MB / 0.5501 GB, free: 74.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.448, allocations: 374.3 kB / 0.5505 GB, free: 74.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006768/0.4487, allocations: 0.6709 MB / 0.5511 GB, free: 73.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.22e-05/0.4488, allocations: 364.7 kB / 0.5515 GB, free: 73.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.4499, allocations: 0.9969 MB / 0.5525 GB, free: 73.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/0.4516, allocations: 2.992 MB / 0.5554 GB, free: 70.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.4545, allocations: 4.36 MB / 0.5596 GB, free: 66.69 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.247e-05/0.4545, allocations: 20.59 kB / 0.5597 GB, free: 66.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.004162/0.4587, allocations: 3.889 MB / 0.5634 GB, free: 65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.4587, allocations: 42.73 kB / 0.5635 GB, free: 64.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-05/0.4588, allocations: 73.06 kB / 0.5636 GB, free: 64.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.15e-05/0.4589, allocations: 91.09 kB / 0.5636 GB, free: 64.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.4606, allocations: 0.7234 MB / 0.5644 GB, free: 64.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.311e-05/0.4607, allocations: 139.9 kB / 0.5645 GB, free: 64.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.4625, allocations: 459.4 kB / 0.5649 GB, free: 64.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.4627, allocations: 204 kB / 0.5651 GB, free: 64.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 24 (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 (401): * Single equations (assignments): 396 * 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.001451/0.4641, allocations: 1.466 MB / 0.5666 GB, free: 62.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.4643, allocations: 173.7 kB / 0.5667 GB, free: 62.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.4658, allocations: 1.237 MB / 0.5679 GB, free: 61.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.4658, allocations: 12 kB / 0.5679 GB, free: 61.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4658, allocations: 0 / 0.5679 GB, free: 61.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4658, allocations: 4.797 kB / 0.5679 GB, free: 61.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005488/0.4713, allocations: 5.035 MB / 0.5729 GB, free: 55.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.4713, allocations: 8.969 kB / 0.5729 GB, free: 55.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.4718, allocations: 143.7 kB / 0.573 GB, free: 55.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.237e-06/0.4718, allocations: 16 kB / 0.573 GB, free: 55.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/0.4719, allocations: 29.92 kB / 0.573 GB, free: 55.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.4719, allocations: 19.94 kB / 0.5731 GB, free: 55.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.4719, allocations: 15.94 kB / 0.5731 GB, free: 55.69 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.4732, allocations: 1.581 MB / 0.5746 GB, free: 53.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.4735, allocations: 271.6 kB / 0.5749 GB, free: 53.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.4737, allocations: 27.98 kB / 0.5749 GB, free: 53.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000542/0.4742, allocations: 47.31 kB / 0.575 GB, free: 53.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4743, allocations: 75.69 kB / 0.575 GB, free: 53.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.497e-05/0.4744, allocations: 39.98 kB / 0.5751 GB, free: 53.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.4756, allocations: 1.352 MB / 0.5764 GB, free: 52.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4756, allocations: 0 / 0.5764 GB, free: 52.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002184/0.4778, allocations: 0.7632 MB / 0.5771 GB, free: 51.34 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.001601/0.4794, allocations: 2.209 MB / 0.5793 GB, free: 48.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.4823, allocations: 2.559 MB / 0.5818 GB, free: 46.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.4823, allocations: 4 kB / 0.5818 GB, free: 46.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005485/0.4829, allocations: 0.5611 MB / 0.5823 GB, free: 45.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.4841, allocations: 265.1 kB / 0.5826 GB, free: 45.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/0.5078, allocations: 26 MB / 0.608 GB, free: 16.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001724/0.5095, allocations: 2.459 MB / 0.6104 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002071/0.5116, allocations: 1.049 MB / 0.6114 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.5127, allocations: 1.163 MB / 0.6125 GB, free: 11.55 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5127, allocations: 0 / 0.6125 GB, free: 11.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05386/0.5666, allocations: 35.04 MB / 0.6468 GB, free: 8.551 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.5668, allocations: 188.4 kB / 0.6469 GB, free: 8.301 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.296, allocations: 0 / 0.6469 GB, free: 8.301 MB / 446.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches