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.001435/0.001435, allocations: 118.4 kB / 17.79 MB, free: 5.262 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.001636/0.001636, allocations: 183 kB / 18.71 MB, free: 4.34 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.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.1887/0.1887, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2933, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01425/0.3076, allocations: 15.4 MB / 0.5335 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.3179, allocations: 5.103 MB / 0.5384 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002468/0.3204, allocations: 124.2 kB / 0.5386 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01034/0.3307, allocations: 6.023 MB / 0.5444 GB, free: 212 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007308/0.3381, allocations: 2.94 MB / 0.5473 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003403/0.3415, allocations: 1.587 MB / 0.5489 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009499/0.3511, allocations: 7.718 MB / 0.5564 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008305/0.3594, allocations: 7.466 MB / 0.5637 GB, free: 13.58 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004273/0.3637, allocations: 3.007 MB / 0.5666 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005042/0.3687, allocations: 3.871 MB / 0.5704 GB, free: 6.684 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001649/0.3704, allocations: 0.5859 MB / 0.571 GB, free: 6.098 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003339/0.3738, allocations: 1.444 MB / 0.5724 GB, free: 4.652 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004012/0.3778, allocations: 3.655 MB / 0.576 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005889/0.3837, allocations: 3.996 MB / 0.5799 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.3967, allocations: 12.13 MB / 0.5917 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3968, allocations: 0 / 0.5917 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.3968, allocations: 4 kB / 0.5917 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003756/0.3972, allocations: 3.938 kB / 0.5917 GB, free: 0.793 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.01733/0.4145, allocations: 8.777 MB / 0.6003 GB, free: 7.922 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4146, allocations: 8.031 kB / 0.6003 GB, free: 7.914 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002451/0.417, allocations: 1.227 MB / 0.6015 GB, free: 6.676 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/0.4271, allocations: 2.615 MB / 0.604 GB, free: 4.047 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.4375, allocations: 5.914 MB / 0.6098 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.4379, allocations: 450.8 kB / 0.6102 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001699/0.4397, allocations: 0.5504 MB / 0.6108 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02965/0.4693, allocations: 17.44 MB / 0.6278 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002453/0.4696, allocations: 75.33 kB / 0.6279 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001332/0.471, allocations: 271.8 kB / 0.6281 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/0.4753, allocations: 3.174 MB / 0.6312 GB, free: 6.973 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02688/0.5022, allocations: 13.4 MB / 0.6443 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08101/0.5833, allocations: 65.76 MB / 0.7085 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01509/0.5984, allocations: 5.394 MB / 0.7138 GB, free: 400 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4083/1.007, allocations: 2.112 MB / 0.7159 GB, free: 166.1 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01538/1.022, allocations: 9.979 MB / 0.7256 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/1.022, allocations: 55.28 kB / 0.7257 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.059e-06/1.022, allocations: 0 / 0.7257 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.0334/1.056, allocations: 14.2 MB / 0.7395 GB, free: 155.6 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/1.056, allocations: 155.6 kB / 0.7397 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006873/1.063, allocations: 6.416 MB / 0.746 GB, free: 153.2 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002222/1.063, allocations: 56.56 kB / 0.746 GB, free: 153.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002105/1.065, allocations: 5.249 MB / 0.7511 GB, free: 148.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006051/1.066, allocations: 0.8129 MB / 0.7519 GB, free: 148.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/1.067, allocations: 1.683 MB / 0.7536 GB, free: 147.3 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.031e-05/1.067, allocations: 301.1 kB / 0.7539 GB, free: 147 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/1.07, allocations: 2.313 MB / 0.7561 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004424/1.075, allocations: 7.729 MB / 0.7637 GB, free: 135.7 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007896/1.082, allocations: 10.94 MB / 0.7743 GB, free: 122.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.083, allocations: 56 kB / 0.7744 GB, free: 122 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01411/1.097, allocations: 9.655 MB / 0.7838 GB, free: 112.4 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.097, allocations: 90.66 kB / 0.7839 GB, free: 112.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/1.097, allocations: 192 kB / 0.7841 GB, free: 112.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/1.097, allocations: 256 kB / 0.7843 GB, free: 111.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004962/1.102, allocations: 1.926 MB / 0.7862 GB, free: 109.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001739/1.102, allocations: 374.5 kB / 0.7866 GB, free: 109.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004949/1.107, allocations: 415.4 kB / 0.787 GB, free: 109.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006177/1.108, allocations: 0.5205 MB / 0.7875 GB, free: 108.6 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.003736/1.112, allocations: 3.406 MB / 0.7908 GB, free: 105.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006608/1.112, allocations: 0.5321 MB / 0.7913 GB, free: 104.7 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008157/1.113, allocations: 0.629 MB / 0.7919 GB, free: 104 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/1.113, allocations: 27.94 kB / 0.792 GB, free: 104 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/1.113, allocations: 3.984 kB / 0.792 GB, free: 104 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/1.113, allocations: 11.97 kB / 0.792 GB, free: 104 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/1.13, allocations: 15.26 MB / 0.8069 GB, free: 88.06 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.243e-05/1.13, allocations: 47.94 kB / 0.8069 GB, free: 88.02 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/1.131, allocations: 447.2 kB / 0.8074 GB, free: 87.58 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-05/1.131, allocations: 60 kB / 0.8074 GB, free: 87.52 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/1.131, allocations: 104.6 kB / 0.8075 GB, free: 87.42 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.07e-05/1.131, allocations: 91.64 kB / 0.8076 GB, free: 87.33 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.752e-05/1.131, allocations: 78.89 kB / 0.8077 GB, free: 87.26 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00323/1.134, allocations: 4.316 MB / 0.8119 GB, free: 82.24 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/1.135, allocations: 0.6376 MB / 0.8125 GB, free: 81.58 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/1.136, allocations: 104 kB / 0.8126 GB, free: 81.48 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.138, allocations: 115.9 kB / 0.8127 GB, free: 81.36 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002386/1.138, allocations: 306.5 kB / 0.813 GB, free: 81.06 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.138, allocations: 131.4 kB / 0.8131 GB, free: 80.94 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004914/1.143, allocations: 4.001 MB / 0.8171 GB, free: 76.95 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.21e-07/1.143, allocations: 3.938 kB / 0.8171 GB, free: 76.95 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006564/1.149, allocations: 1.354 MB / 0.8184 GB, free: 75.59 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.003723/1.153, allocations: 5.034 MB / 0.8233 GB, free: 69.86 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007054/1.16, allocations: 5.47 MB / 0.8286 GB, free: 64.46 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.734e-05/1.16, allocations: 8 kB / 0.8286 GB, free: 64.45 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001404/1.162, allocations: 1.194 MB / 0.8298 GB, free: 63.27 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005061/1.167, allocations: 0.9194 MB / 0.8307 GB, free: 62.36 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07253/1.239, allocations: 66.62 MB / 0.8958 GB, free: 2.266 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007709/1.247, allocations: 5.25 MB / 0.9009 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006252/1.253, allocations: 2.566 MB / 0.9034 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004765/1.258, allocations: 3.428 MB / 0.9068 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of SimCode: time 1.072e-06/1.258, allocations: 0 / 0.9068 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3806/1.639, allocations: 94.7 MB / 0.9992 GB, free: 179 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.67/31.31, allocations: 4.75 kB / 0.9992 GB, free: 179 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