Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001558, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.212/0.212, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 75.89 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3043, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01572/0.3201, allocations: 15 MB / 0.5452 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.3309, allocations: 5.034 MB / 0.5501 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002859/0.3338, allocations: 126.2 kB / 0.5502 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.3448, allocations: 5.966 MB / 0.556 GB, free: 7.598 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008286/0.3532, allocations: 2.816 MB / 0.5588 GB, free: 4.773 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003968/0.3572, allocations: 1.575 MB / 0.5603 GB, free: 3.195 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.3686, allocations: 7.792 MB / 0.5679 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01058/0.3792, allocations: 7.391 MB / 0.5751 GB, free: 3.898 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005345/0.3846, allocations: 2.933 MB / 0.578 GB, free: 0.957 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0056/0.3902, allocations: 3.793 MB / 0.5817 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002198/0.3924, allocations: 0.5742 MB / 0.5823 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003934/0.3964, allocations: 1.389 MB / 0.5836 GB, free: 11.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00497/0.4014, allocations: 3.527 MB / 0.5871 GB, free: 7.652 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006106/0.4076, allocations: 3.853 MB / 0.5908 GB, free: 3.777 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.4223, allocations: 11.68 MB / 0.6022 GB, free: 8.051 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4224, allocations: 0 / 0.6022 GB, free: 8.051 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.4224, allocations: 0 / 0.6022 GB, free: 8.051 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004614/0.4229, allocations: 0 / 0.6022 GB, free: 8.051 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.01825/0.4411, allocations: 8.724 MB / 0.6108 GB, free: 15.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.4412, allocations: 12.03 kB / 0.6108 GB, free: 15.22 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002581/0.4438, allocations: 1.17 MB / 0.6119 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.4541, allocations: 2.558 MB / 0.6144 GB, free: 11.47 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.4645, allocations: 5.432 MB / 0.6197 GB, free: 5.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004246/0.465, allocations: 422.6 kB / 0.6201 GB, free: 5.551 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002/0.467, allocations: 0.5427 MB / 0.6206 GB, free: 5.008 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/0.4977, allocations: 16.67 MB / 0.6369 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002847/0.4981, allocations: 75.39 kB / 0.637 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001556/0.4996, allocations: 263.8 kB / 0.6372 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004359/0.504, allocations: 2.931 MB / 0.6401 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02659/0.5306, allocations: 12.78 MB / 0.6526 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07908/0.6098, allocations: 64.1 MB / 0.7152 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4263/1.036, allocations: 5.377 MB / 0.7204 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/1.039, allocations: 2.118 MB / 0.7225 GB, free: 159.4 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/1.054, allocations: 9.941 MB / 0.7322 GB, free: 154.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/1.054, allocations: 52.69 kB / 0.7323 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.039e-06/1.054, allocations: 0 / 0.7323 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03385/1.088, allocations: 14.37 MB / 0.7463 GB, free: 148.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/1.088, allocations: 152.1 kB / 0.7464 GB, free: 148.3 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007981/1.096, allocations: 6.332 MB / 0.7526 GB, free: 142.8 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002832/1.096, allocations: 61.14 kB / 0.7527 GB, free: 142.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.099, allocations: 5.276 MB / 0.7578 GB, free: 137.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007333/1.1, allocations: 0.8582 MB / 0.7587 GB, free: 137 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001922/1.102, allocations: 1.667 MB / 0.7603 GB, free: 135.3 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.584e-05/1.102, allocations: 301.1 kB / 0.7606 GB, free: 135 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002999/1.105, allocations: 2.296 MB / 0.7628 GB, free: 132.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/1.109, allocations: 7.638 MB / 0.7703 GB, free: 122.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007993/1.117, allocations: 10.8 MB / 0.7808 GB, free: 109.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001635/1.118, allocations: 60 kB / 0.7809 GB, free: 109 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01548/1.133, allocations: 9.594 MB / 0.7903 GB, free: 99.43 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001428/1.133, allocations: 88 kB / 0.7904 GB, free: 99.35 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002535/1.134, allocations: 188 kB / 0.7905 GB, free: 99.16 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001954/1.134, allocations: 255.9 kB / 0.7908 GB, free: 98.91 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005544/1.139, allocations: 1.899 MB / 0.7926 GB, free: 97.01 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002445/1.14, allocations: 366.6 kB / 0.793 GB, free: 96.65 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005567/1.145, allocations: 415.6 kB / 0.7934 GB, free: 96.25 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.146, allocations: 0.5078 MB / 0.7939 GB, free: 95.74 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.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 (1027): * Single equations (assignments): 1016 * 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.004513/1.151, allocations: 3.293 MB / 0.7971 GB, free: 92.44 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009146/1.152, allocations: 0.5587 MB / 0.7976 GB, free: 91.88 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/1.153, allocations: 0.6243 MB / 0.7982 GB, free: 91.24 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/1.153, allocations: 20 kB / 0.7983 GB, free: 91.22 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.59e-05/1.153, allocations: 7.938 kB / 0.7983 GB, free: 91.21 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/1.153, allocations: 11.95 kB / 0.7983 GB, free: 91.2 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01901/1.172, allocations: 15 MB / 0.8129 GB, free: 75.54 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.266e-05/1.172, allocations: 51.94 kB / 0.813 GB, free: 75.48 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/1.174, allocations: 451.1 kB / 0.8134 GB, free: 75.04 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.702e-05/1.174, allocations: 60.78 kB / 0.8135 GB, free: 74.98 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/1.174, allocations: 96 kB / 0.8136 GB, free: 74.89 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-05/1.174, allocations: 95.64 kB / 0.8137 GB, free: 74.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.571e-05/1.174, allocations: 75.69 kB / 0.8137 GB, free: 74.72 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0033/1.177, allocations: 4.334 MB / 0.818 GB, free: 69.68 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/1.178, allocations: 0.6572 MB / 0.8186 GB, free: 69 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006252/1.179, allocations: 115.8 kB / 0.8187 GB, free: 68.89 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/1.181, allocations: 115.5 kB / 0.8188 GB, free: 68.79 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/1.181, allocations: 310.5 kB / 0.8191 GB, free: 68.48 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.181, allocations: 128 kB / 0.8192 GB, free: 68.36 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005128/1.186, allocations: 3.948 MB / 0.8231 GB, free: 64.42 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.81e-07/1.186, allocations: 0 / 0.8231 GB, free: 64.42 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006477/1.193, allocations: 1.305 MB / 0.8244 GB, free: 63.11 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.00401/1.197, allocations: 5.063 MB / 0.8293 GB, free: 57.35 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.006907/1.204, allocations: 5.427 MB / 0.8346 GB, free: 51.97 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.33e-05/1.204, allocations: 12.19 kB / 0.8346 GB, free: 51.96 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001345/1.205, allocations: 1.196 MB / 0.8358 GB, free: 50.77 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00587/1.211, allocations: 0.8824 MB / 0.8366 GB, free: 49.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08912/1.3, allocations: 65.78 MB / 0.9009 GB, free: 6.789 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01023/1.311, allocations: 5.068 MB / 0.9058 GB, free: 1.68 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006969/1.318, allocations: 2.542 MB / 0.9083 GB, free: 15.13 MB / 0.6076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005414/1.323, allocations: 3.295 MB / 0.9115 GB, free: 11.84 MB / 0.6076 GB Notification: Performance of SimCode: time 1.102e-06/1.323, allocations: 0 / 0.9115 GB, free: 11.84 MB / 0.6076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3626/1.686, allocations: 92.95 MB / 1.002 GB, free: 190 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.97/36.65, allocations: 26.05 kB / 1.002 GB, free: 190 MB / 0.6388 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv","/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_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches