Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",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.001264/0.001264, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.001278/0.001278, allocations: 185 kB / 18.72 MB, free: 4.332 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.359/1.359, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2058/0.2058, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 75.86 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.288, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.0109/0.2989, allocations: 9.758 MB / 0.528 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006094/0.305, allocations: 2.931 MB / 0.5308 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.3061, allocations: 53.69 kB / 0.5309 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003652/0.3098, allocations: 2.004 MB / 0.5328 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.3123, allocations: 1.163 MB / 0.534 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006505/0.313, allocations: 287.3 kB / 0.5342 GB, free: 8.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002775/0.3157, allocations: 2.325 MB / 0.5365 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002271/0.318, allocations: 1.943 MB / 0.5384 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.3193, allocations: 0.9069 MB / 0.5393 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.3209, allocations: 1.172 MB / 0.5404 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003526/0.3213, allocations: 197.6 kB / 0.5406 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.3225, allocations: 0.7042 MB / 0.5413 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3237, allocations: 1.185 MB / 0.5425 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.325, allocations: 1.351 MB / 0.5438 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00471/0.3297, allocations: 4.47 MB / 0.5481 GB, free: 13.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3297, allocations: 0 / 0.5481 GB, free: 13.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3297, allocations: 0 / 0.5481 GB, free: 13.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.949e-05/0.3297, allocations: 0 / 0.5481 GB, free: 13.57 MB / 414.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.004666/0.3344, allocations: 3.024 MB / 0.5511 GB, free: 10.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3345, allocations: 8.031 kB / 0.5511 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006037/0.3351, allocations: 499.8 kB / 0.5516 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.3403, allocations: 1.602 MB / 0.5531 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002467/0.3428, allocations: 1.364 MB / 0.5545 GB, free: 6.965 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.3429, allocations: 155.8 kB / 0.5546 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003341/0.3433, allocations: 183.9 kB / 0.5548 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009479/0.3527, allocations: 6.432 MB / 0.5611 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.358e-05/0.3528, allocations: 11.88 kB / 0.5611 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002435/0.353, allocations: 91.89 kB / 0.5612 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002258/0.3553, allocations: 1.407 MB / 0.5626 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009981/0.3653, allocations: 5.49 MB / 0.5679 GB, free: 8.918 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02624/0.3915, allocations: 20.5 MB / 0.5879 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004216/0.3957, allocations: 1.935 MB / 0.5898 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009545/0.3967, allocations: 0.6406 MB / 0.5905 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006593/0.4033, allocations: 3.64 MB / 0.594 GB, free: 13.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.4033, allocations: 39 kB / 0.5941 GB, free: 13.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 2.725e-06/0.4033, allocations: 3.938 kB / 0.5941 GB, free: 13.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.00551/0.4088, allocations: 1.99 MB / 0.596 GB, free: 11.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.4089, allocations: 59.83 kB / 0.5961 GB, free: 11.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.4117, allocations: 1.959 MB / 0.598 GB, free: 9.266 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.268e-05/0.4118, allocations: 37.7 kB / 0.598 GB, free: 9.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001531/0.4133, allocations: 1.958 MB / 0.5999 GB, free: 7.242 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/0.4137, allocations: 329.5 kB / 0.6002 GB, free: 6.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008635/0.4146, allocations: 0.6313 MB / 0.6008 GB, free: 6.277 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.4148, allocations: 357.9 kB / 0.6012 GB, free: 5.922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.4161, allocations: 0.892 MB / 0.6021 GB, free: 5.027 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002937/0.419, allocations: 2.774 MB / 0.6048 GB, free: 1.312 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004673/0.4237, allocations: 4.004 MB / 0.6087 GB, free: 12.37 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.62e-05/0.4237, allocations: 16 kB / 0.6087 GB, free: 12.36 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005817/0.4295, allocations: 3.565 MB / 0.6122 GB, free: 8.785 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.564e-05/0.4296, allocations: 32 kB / 0.6122 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.568e-05/0.4297, allocations: 72 kB / 0.6123 GB, free: 8.684 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.4298, allocations: 91.94 kB / 0.6124 GB, free: 8.594 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.4317, allocations: 0.6589 MB / 0.613 GB, free: 7.934 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001091/0.4318, allocations: 127.5 kB / 0.6131 GB, free: 7.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.4337, allocations: 429.3 kB / 0.6135 GB, free: 7.387 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/0.4339, allocations: 192 kB / 0.6137 GB, free: 7.199 MB / 478.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.002043/0.436, allocations: 1.381 MB / 0.6151 GB, free: 5.809 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/0.4362, allocations: 166.8 kB / 0.6152 GB, free: 5.645 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.4366, allocations: 197.2 kB / 0.6154 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.4366, allocations: 12 kB / 0.6154 GB, free: 5.438 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4366, allocations: 0 / 0.6154 GB, free: 5.438 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4366, allocations: 0 / 0.6154 GB, free: 5.438 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006421/0.443, allocations: 4.101 MB / 0.6194 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.443, allocations: 4 kB / 0.6194 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/0.4434, allocations: 107.9 kB / 0.6195 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.149e-05/0.4435, allocations: 8 kB / 0.6195 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.4435, allocations: 20 kB / 0.6196 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.346e-05/0.4435, allocations: 15.92 kB / 0.6196 GB, free: 1.039 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/0.4435, allocations: 11.94 kB / 0.6196 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.4453, allocations: 1.268 MB / 0.6208 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005119/0.4458, allocations: 263.7 kB / 0.6211 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001937/0.446, allocations: 20 kB / 0.6211 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.4465, allocations: 27.92 kB / 0.6211 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.4466, allocations: 67.7 kB / 0.6212 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.549e-05/0.4467, allocations: 28 kB / 0.6212 GB, free: 15.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002118/0.4488, allocations: 1.291 MB / 0.6225 GB, free: 13.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4488, allocations: 4 kB / 0.6225 GB, free: 13.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002466/0.4513, allocations: 0.7086 MB / 0.6232 GB, free: 13.24 MB / 494.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.002014/0.4533, allocations: 1.873 MB / 0.625 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.4562, allocations: 1.984 MB / 0.6269 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4562, allocations: 4 kB / 0.6269 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005571/0.4568, allocations: 433.4 kB / 0.6274 GB, free: 8.859 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.458, allocations: 252.8 kB / 0.6276 GB, free: 8.613 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02846/0.4864, allocations: 21.21 MB / 0.6483 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00256/0.489, allocations: 2.316 MB / 0.6506 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002212/0.4912, allocations: 0.9679 MB / 0.6515 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/0.4926, allocations: 1.069 MB / 0.6526 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of SimCode: time 1.412e-06/0.4926, allocations: 4 kB / 0.6526 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06578/0.5584, allocations: 33.17 MB / 0.685 GB, free: 11.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.8, allocations: 17.64 kB / 0.685 GB, free: 11.43 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_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_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches