Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",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.001323/0.001324, allocations: 110.4 kB / 17.78 MB, free: 5.285 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.001429/0.001429, allocations: 183.9 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1921/0.1921, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2943, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01537/0.3097, allocations: 15.39 MB / 0.5334 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.3234, allocations: 5.107 MB / 0.5384 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003909/0.3274, allocations: 122.7 kB / 0.5386 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.3387, allocations: 6.02 MB / 0.5444 GB, free: 232 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007352/0.3462, allocations: 2.852 MB / 0.5472 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00378/0.35, allocations: 1.585 MB / 0.5488 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.361, allocations: 7.725 MB / 0.5563 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008623/0.3696, allocations: 7.466 MB / 0.5636 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.3745, allocations: 3.011 MB / 0.5665 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005546/0.3801, allocations: 3.867 MB / 0.5703 GB, free: 6.785 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002154/0.3823, allocations: 0.5859 MB / 0.5709 GB, free: 6.199 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004509/0.3869, allocations: 1.444 MB / 0.5723 GB, free: 4.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005981/0.3929, allocations: 3.659 MB / 0.5759 GB, free: 1.086 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004987/0.3979, allocations: 4 MB / 0.5798 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.4102, allocations: 12.13 MB / 0.5916 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4103, allocations: 0 / 0.5916 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4103, allocations: 0 / 0.5916 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003425/0.4106, allocations: 0 / 0.5916 GB, free: 0.8945 MB / 446.1 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.01741/0.4281, allocations: 8.777 MB / 0.6002 GB, free: 8.023 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4281, allocations: 12.02 kB / 0.6002 GB, free: 8.012 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002259/0.4304, allocations: 1.215 MB / 0.6014 GB, free: 6.785 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/0.4408, allocations: 2.634 MB / 0.604 GB, free: 4.137 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/0.4516, allocations: 5.918 MB / 0.6097 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004046/0.452, allocations: 438.9 kB / 0.6102 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/0.4537, allocations: 0.558 MB / 0.6107 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03165/0.4854, allocations: 17.43 MB / 0.6277 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002609/0.4857, allocations: 79.33 kB / 0.6278 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001445/0.4872, allocations: 263.8 kB / 0.628 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004813/0.492, allocations: 3.174 MB / 0.6311 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02802/0.52, allocations: 13.41 MB / 0.6442 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08641/0.6065, allocations: 65.76 MB / 0.7085 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/0.6218, allocations: 5.382 MB / 0.7137 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4271/1.049, allocations: 2.116 MB / 0.7158 GB, free: 166 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02021/1.069, allocations: 9.986 MB / 0.7255 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/1.069, allocations: 53.56 kB / 0.7256 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.29e-06/1.069, allocations: 1.094 kB / 0.7256 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03829/1.108, allocations: 14.19 MB / 0.7394 GB, free: 155.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/1.108, allocations: 162.9 kB / 0.7396 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008403/1.116, allocations: 6.41 MB / 0.7459 GB, free: 153.2 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003083/1.116, allocations: 57.02 kB / 0.7459 GB, free: 153.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002564/1.119, allocations: 5.245 MB / 0.751 GB, free: 149 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008016/1.12, allocations: 0.8243 MB / 0.7518 GB, free: 148.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00244/1.122, allocations: 1.686 MB / 0.7535 GB, free: 147.4 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.994e-05/1.122, allocations: 302.2 kB / 0.7538 GB, free: 147.1 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/1.125, allocations: 2.309 MB / 0.756 GB, free: 146 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00435/1.13, allocations: 7.728 MB / 0.7636 GB, free: 135.8 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007938/1.138, allocations: 10.93 MB / 0.7743 GB, free: 122.2 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/1.138, allocations: 56 kB / 0.7743 GB, free: 122.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01372/1.152, allocations: 9.664 MB / 0.7837 GB, free: 112.5 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001749/1.152, allocations: 88 kB / 0.7838 GB, free: 112.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.152, allocations: 192.8 kB / 0.784 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/1.152, allocations: 252 kB / 0.7843 GB, free: 111.9 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005323/1.157, allocations: 1.93 MB / 0.7861 GB, free: 110 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002343/1.158, allocations: 378.5 kB / 0.7865 GB, free: 109.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00561/1.163, allocations: 411.4 kB / 0.7869 GB, free: 109.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009414/1.164, allocations: 0.5193 MB / 0.7874 GB, free: 108.7 MB / 0.5607 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 (1039): * Single equations (assignments): 1028 * Array equations: 11 * 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.005492/1.17, allocations: 3.404 MB / 0.7907 GB, free: 105.3 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/1.171, allocations: 0.5282 MB / 0.7912 GB, free: 104.8 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/1.172, allocations: 0.6368 MB / 0.7919 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.821e-05/1.172, allocations: 31.88 kB / 0.7919 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/1.172, allocations: 0 / 0.7919 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/1.172, allocations: 7.969 kB / 0.7919 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/1.194, allocations: 15.27 MB / 0.8068 GB, free: 88.16 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.956e-05/1.194, allocations: 44 kB / 0.8069 GB, free: 88.12 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/1.195, allocations: 443.2 kB / 0.8073 GB, free: 87.68 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.945e-05/1.195, allocations: 61.08 kB / 0.8073 GB, free: 87.62 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/1.195, allocations: 104 kB / 0.8074 GB, free: 87.52 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-05/1.195, allocations: 91.64 kB / 0.8075 GB, free: 87.43 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-05/1.196, allocations: 75.62 kB / 0.8076 GB, free: 87.36 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/1.199, allocations: 4.312 MB / 0.8118 GB, free: 82.35 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/1.2, allocations: 0.6382 MB / 0.8124 GB, free: 81.68 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007049/1.201, allocations: 108 kB / 0.8125 GB, free: 81.58 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/1.203, allocations: 115.9 kB / 0.8126 GB, free: 81.46 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/1.203, allocations: 306.5 kB / 0.8129 GB, free: 81.16 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.204, allocations: 128 kB / 0.8131 GB, free: 81.04 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005511/1.209, allocations: 3.993 MB / 0.817 GB, free: 77.06 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.01e-07/1.209, allocations: 4 kB / 0.817 GB, free: 77.05 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006651/1.216, allocations: 1.362 MB / 0.8183 GB, free: 75.7 MB / 0.5607 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 (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.003969/1.22, allocations: 5.036 MB / 0.8232 GB, free: 69.96 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007231/1.227, allocations: 5.463 MB / 0.8285 GB, free: 64.57 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.182e-05/1.227, allocations: 8 kB / 0.8286 GB, free: 64.56 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001496/1.229, allocations: 1.198 MB / 0.8297 GB, free: 63.37 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006112/1.235, allocations: 0.9243 MB / 0.8306 GB, free: 62.46 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08264/1.317, allocations: 66.62 MB / 0.8957 GB, free: 2.367 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008947/1.326, allocations: 5.246 MB / 0.9008 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006164/1.333, allocations: 2.57 MB / 0.9033 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004425/1.337, allocations: 3.416 MB / 0.9067 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of SimCode: time 9.11e-07/1.337, allocations: 4 kB / 0.9067 GB, free: 7.086 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3729/1.71, allocations: 95.88 MB / 1 GB, free: 178.1 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.31/32.02, allocations: 15.73 kB / 1 GB, free: 178.1 MB / 0.6232 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches