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.001146/0.001146, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001114/0.001114, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.291/1.291, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.1896/0.1896, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 64.14 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3124, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.009777/0.3222, allocations: 9.733 MB / 0.5279 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006057/0.3283, allocations: 2.928 MB / 0.5308 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.3299, allocations: 49.78 kB / 0.5308 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003808/0.3337, allocations: 1.999 MB / 0.5328 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002866/0.3367, allocations: 1.125 MB / 0.5339 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007476/0.3374, allocations: 290.5 kB / 0.5341 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00308/0.3405, allocations: 2.321 MB / 0.5364 GB, free: 6.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002691/0.3432, allocations: 2.339 MB / 0.5387 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00138/0.3446, allocations: 0.8994 MB / 0.5396 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.3461, allocations: 1.177 MB / 0.5407 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003399/0.3465, allocations: 197.4 kB / 0.5409 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.3477, allocations: 0.7076 MB / 0.5416 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009773/0.3487, allocations: 1.158 MB / 0.5427 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001198/0.3499, allocations: 1.351 MB / 0.5441 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004554/0.3545, allocations: 4.449 MB / 0.5484 GB, free: 13.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3545, allocations: 0 / 0.5484 GB, free: 13.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3545, allocations: 0 / 0.5484 GB, free: 13.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.523e-05/0.3547, allocations: 0 / 0.5484 GB, free: 13.3 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.004516/0.3592, allocations: 2.943 MB / 0.5513 GB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3592, allocations: 8.031 kB / 0.5513 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004978/0.3597, allocations: 499.7 kB / 0.5518 GB, free: 9.793 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004954/0.3647, allocations: 1.584 MB / 0.5533 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002619/0.3673, allocations: 1.363 MB / 0.5546 GB, free: 6.793 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.991e-05/0.3674, allocations: 151.9 kB / 0.5548 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003097/0.3677, allocations: 195.9 kB / 0.555 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008086/0.3758, allocations: 6.421 MB / 0.5612 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.371e-05/0.3759, allocations: 19.81 kB / 0.5613 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.3761, allocations: 87.91 kB / 0.5613 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001997/0.3781, allocations: 1.403 MB / 0.5627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008498/0.3866, allocations: 5.491 MB / 0.5681 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/0.4106, allocations: 20.45 MB / 0.588 GB, free: 3.703 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.4145, allocations: 2.005 MB / 0.59 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008867/0.4154, allocations: 0.6875 MB / 0.5907 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006512/0.4219, allocations: 3.639 MB / 0.5942 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.422, allocations: 39 kB / 0.5943 GB, free: 13.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 2.856e-06/0.422, allocations: 0 / 0.5943 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.0051/0.4271, allocations: 1.977 MB / 0.5962 GB, free: 11.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.4271, allocations: 59.84 kB / 0.5963 GB, free: 10.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.4294, allocations: 1.962 MB / 0.5982 GB, free: 9.027 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.76e-05/0.4295, allocations: 33.64 kB / 0.5982 GB, free: 8.988 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.4305, allocations: 1.891 MB / 0.6001 GB, free: 7.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.4308, allocations: 312.1 kB / 0.6003 GB, free: 6.758 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006813/0.4315, allocations: 0.6268 MB / 0.601 GB, free: 6.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4316, allocations: 357.9 kB / 0.6013 GB, free: 5.766 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.4328, allocations: 0.8881 MB / 0.6022 GB, free: 4.875 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002178/0.435, allocations: 2.778 MB / 0.6049 GB, free: 1.156 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003707/0.4387, allocations: 3.995 MB / 0.6088 GB, free: 12.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.742e-05/0.4387, allocations: 20 kB / 0.6088 GB, free: 12.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004824/0.4436, allocations: 3.55 MB / 0.6123 GB, free: 8.648 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.745e-05/0.4436, allocations: 36 kB / 0.6123 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.782e-05/0.4437, allocations: 64 kB / 0.6124 GB, free: 8.551 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.325e-05/0.4438, allocations: 91.98 kB / 0.6125 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.4455, allocations: 0.6628 MB / 0.6131 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.913e-05/0.4456, allocations: 131.5 kB / 0.6132 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.4473, allocations: 423.8 kB / 0.6136 GB, free: 7.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/0.4475, allocations: 192 kB / 0.6138 GB, free: 7.062 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.001647/0.4492, allocations: 1.365 MB / 0.6151 GB, free: 5.688 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.4494, allocations: 161.8 kB / 0.6153 GB, free: 5.527 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.4497, allocations: 197.2 kB / 0.6155 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.4497, allocations: 12 kB / 0.6155 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.4497, allocations: 7.938 kB / 0.6155 GB, free: 5.312 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4497, allocations: 3.984 kB / 0.6155 GB, free: 5.309 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005991/0.4557, allocations: 4.092 MB / 0.6195 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.4558, allocations: 8.844 kB / 0.6195 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.4562, allocations: 103.8 kB / 0.6196 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.4562, allocations: 12 kB / 0.6196 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.4562, allocations: 23.94 kB / 0.6196 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.4562, allocations: 19.92 kB / 0.6197 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4562, allocations: 4 kB / 0.6197 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.4576, allocations: 1.259 MB / 0.6209 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.4579, allocations: 250.7 kB / 0.6211 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.4581, allocations: 19.98 kB / 0.6212 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004638/0.4586, allocations: 35.88 kB / 0.6212 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.4587, allocations: 59.77 kB / 0.6213 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.4587, allocations: 31.98 kB / 0.6213 GB, free: 15.12 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001519/0.4602, allocations: 1.283 MB / 0.6225 GB, free: 13.85 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4602, allocations: 0 / 0.6225 GB, free: 13.85 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002243/0.4625, allocations: 0.7077 MB / 0.6232 GB, free: 13.14 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.001694/0.4642, allocations: 1.872 MB / 0.6251 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002729/0.4669, allocations: 2.058 MB / 0.6271 GB, free: 9.109 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.467, allocations: 4.125 kB / 0.6271 GB, free: 9.105 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.4675, allocations: 461.5 kB / 0.6275 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4687, allocations: 252.4 kB / 0.6277 GB, free: 8.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02454/0.4932, allocations: 21.1 MB / 0.6484 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002206/0.4955, allocations: 2.327 MB / 0.6506 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001952/0.4974, allocations: 0.9639 MB / 0.6516 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/0.4986, allocations: 1.069 MB / 0.6526 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of SimCode: time 7.81e-07/0.4986, allocations: 0 / 0.6526 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05366/0.5523, allocations: 33.44 MB / 0.6853 GB, free: 11.08 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.6, allocations: 9.078 kB / 0.6853 GB, free: 11.07 MB / 0.545 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