Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_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.001278/0.001278, allocations: 116.7 kB / 17.33 MB, free: 6.004 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.001331/0.001331, allocations: 193.3 kB / 18.25 MB, free: 5.098 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.38/1.38, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2341/0.2341, allocations: 44.18 MB / 336.2 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 63.8 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09905, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03616/0.1352, allocations: 37.7 MB / 0.4946 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.1514, allocations: 7.525 MB / 0.502 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007753/0.1592, allocations: 159.6 kB / 0.5021 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2213/0.3805, allocations: 1.925 MB / 0.504 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002768/0.3834, allocations: 1.06 MB / 0.5051 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006725/0.3841, allocations: 266.9 kB / 0.5053 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003048/0.3872, allocations: 2.351 MB / 0.5076 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002691/0.3899, allocations: 2.441 MB / 0.51 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.3913, allocations: 0.9188 MB / 0.5109 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.3928, allocations: 1.287 MB / 0.5121 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003785/0.3932, allocations: 197.6 kB / 0.5123 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.3949, allocations: 0.7069 MB / 0.513 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00166/0.3966, allocations: 1.165 MB / 0.5142 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001609/0.3982, allocations: 1.357 MB / 0.5155 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004026/0.4023, allocations: 4.316 MB / 0.5197 GB, free: 8.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4023, allocations: 0 / 0.5197 GB, free: 8.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4023, allocations: 0 / 0.5197 GB, free: 8.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001052/0.4024, allocations: 1.375 kB / 0.5197 GB, free: 8.988 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.005672/0.4081, allocations: 2.944 MB / 0.5226 GB, free: 7.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4081, allocations: 10.44 kB / 0.5226 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006347/0.4088, allocations: 497.2 kB / 0.5231 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004689/0.4135, allocations: 1.587 MB / 0.5246 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.4156, allocations: 1.339 MB / 0.5259 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.11e-05/0.4157, allocations: 152.8 kB / 0.5261 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003104/0.4161, allocations: 192.8 kB / 0.5262 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008288/0.4244, allocations: 6.433 MB / 0.5325 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/0.4244, allocations: 12.31 kB / 0.5325 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.4247, allocations: 93.86 kB / 0.5326 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/0.4264, allocations: 1.402 MB / 0.534 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008494/0.4349, allocations: 5.482 MB / 0.5394 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.028/0.463, allocations: 20.6 MB / 0.5595 GB, free: 9.238 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004516/0.4675, allocations: 2.008 MB / 0.5614 GB, free: 7.109 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.4686, allocations: 0.6973 MB / 0.5621 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006933/0.4756, allocations: 3.641 MB / 0.5657 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.4757, allocations: 38.09 kB / 0.5657 GB, free: 2.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 4.348e-06/0.4757, allocations: 0 / 0.5657 GB, free: 2.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005465/0.4811, allocations: 1.981 MB / 0.5676 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.4812, allocations: 55.84 kB / 0.5677 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.4852, allocations: 1.962 MB / 0.5696 GB, free: 14.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.243e-05/0.4853, allocations: 37.7 kB / 0.5696 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.4869, allocations: 1.883 MB / 0.5715 GB, free: 12.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000397/0.4874, allocations: 316.1 kB / 0.5718 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/0.4884, allocations: 0.6222 MB / 0.5724 GB, free: 11.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4886, allocations: 353.9 kB / 0.5727 GB, free: 11.37 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.4901, allocations: 0.8989 MB / 0.5736 GB, free: 10.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002699/0.4928, allocations: 2.767 MB / 0.5763 GB, free: 6.793 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004926/0.4977, allocations: 4 MB / 0.5802 GB, free: 2.133 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.287e-05/0.4978, allocations: 16 kB / 0.5802 GB, free: 2.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005927/0.5038, allocations: 3.561 MB / 0.5837 GB, free: 14.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.5038, allocations: 32 kB / 0.5837 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.504, allocations: 68 kB / 0.5838 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.524e-05/0.5041, allocations: 88 kB / 0.5839 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.506, allocations: 0.6582 MB / 0.5845 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001422/0.5062, allocations: 132.9 kB / 0.5847 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/0.5085, allocations: 423.5 kB / 0.5851 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003156/0.5088, allocations: 187.1 kB / 0.5852 GB, free: 13.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.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 (365): * Single equations (assignments): 360 * 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.00265/0.5115, allocations: 1.368 MB / 0.5866 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003657/0.5119, allocations: 165.9 kB / 0.5867 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005003/0.5124, allocations: 193.2 kB / 0.5869 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/0.5124, allocations: 12 kB / 0.5869 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.5124, allocations: 3.984 kB / 0.5869 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5124, allocations: 3.984 kB / 0.5869 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008341/0.5208, allocations: 4.099 MB / 0.5909 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/0.5208, allocations: 11.94 kB / 0.591 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.5213, allocations: 102.5 kB / 0.5911 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.209e-05/0.5213, allocations: 12 kB / 0.5911 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.5214, allocations: 20 kB / 0.5911 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.5214, allocations: 10.81 kB / 0.5911 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.5214, allocations: 10.72 kB / 0.5911 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.523, allocations: 1.275 MB / 0.5924 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005072/0.5235, allocations: 250.7 kB / 0.5926 GB, free: 5.805 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003525/0.5239, allocations: 16 kB / 0.5926 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000684/0.5246, allocations: 31.97 kB / 0.5926 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.5247, allocations: 53.55 kB / 0.5927 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.41e-05/0.5248, allocations: 38.73 kB / 0.5927 GB, free: 5.676 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002273/0.527, allocations: 1.279 MB / 0.594 GB, free: 4.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.527, allocations: 0 / 0.594 GB, free: 4.406 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003004/0.5301, allocations: 0.7076 MB / 0.5947 GB, free: 3.695 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.00209/0.5322, allocations: 1.869 MB / 0.5965 GB, free: 1.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003646/0.5358, allocations: 2.259 MB / 0.5987 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5358, allocations: 2.906 kB / 0.5987 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000551/0.5364, allocations: 460.9 kB / 0.5991 GB, free: 15.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.538, allocations: 244.7 kB / 0.5994 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0411/0.5791, allocations: 23.66 MB / 0.6225 GB, free: 4.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004202/0.5834, allocations: 2.327 MB / 0.6248 GB, free: 2.121 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002481/0.5859, allocations: 0.96 MB / 0.6257 GB, free: 1.156 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001841/0.5877, allocations: 1.069 MB / 0.6267 GB, free: 92 kB / 478.1 MB Notification: Performance of SimCode: time 1.273e-06/0.5878, allocations: 0 / 0.6267 GB, free: 92 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06519/0.653, allocations: 32.37 MB / 0.6583 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.6532, allocations: 196.5 kB / 0.6585 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.773/3.426, allocations: 0 / 0.6585 GB, free: 15.66 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches