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.001321/0.001321, allocations: 102.8 kB / 17.63 MB, free: 5.344 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.001365/0.001365, allocations: 192 kB / 18.56 MB, free: 4.434 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.319/1.319, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.1937/0.1937, allocations: 44.18 MB / 336.6 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002495/0.002496, allocations: 55.72 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1196, allocations: 60.82 MB / 469.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01086/0.1305, allocations: 9.735 MB / 479.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005401/0.136, allocations: 2.92 MB / 482 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008947/0.1369, allocations: 55.88 kB / 482.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.1403, allocations: 1.998 MB / 484.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00247/0.1428, allocations: 1.129 MB / 485.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.1435, allocations: 295.4 kB / 485.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002528/0.146, allocations: 2.325 MB / 487.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.1484, allocations: 2.34 MB / 490.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009854/0.1494, allocations: 0.8956 MB / 491 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.1507, allocations: 1.176 MB / 492.2 MB, free: 7.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003374/0.151, allocations: 204 kB / 492.4 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.1522, allocations: 0.7021 MB / 493.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008918/0.1531, allocations: 1.138 MB / 494.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.1543, allocations: 1.343 MB / 495.6 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003731/0.158, allocations: 4.291 MB / 499.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1581, allocations: 0 / 499.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1581, allocations: 0 / 499.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.1582, allocations: 0 / 499.9 MB, free: 15.56 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.004853/0.1631, allocations: 2.943 MB / 0.491 GB, free: 12.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1631, allocations: 12.03 kB / 0.4911 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005526/0.1637, allocations: 487.8 kB / 0.4915 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005121/0.1688, allocations: 1.596 MB / 0.4931 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002204/0.171, allocations: 1.336 MB / 0.4944 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.816e-05/0.1711, allocations: 151.8 kB / 0.4945 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.1715, allocations: 187.9 kB / 0.4947 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008524/0.18, allocations: 6.436 MB / 0.501 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/0.1801, allocations: 11.88 kB / 0.501 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002304/0.1803, allocations: 87.91 kB / 0.5011 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00205/0.1824, allocations: 1.403 MB / 0.5025 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.188/0.3704, allocations: 5.486 MB / 0.5078 GB, free: 45.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02429/0.3947, allocations: 20.61 MB / 0.5279 GB, free: 32.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003567/0.3983, allocations: 2.007 MB / 0.5299 GB, free: 30.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008193/0.3992, allocations: 0.6934 MB / 0.5306 GB, free: 30.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005366/0.4045, allocations: 3.628 MB / 0.5341 GB, free: 28.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.4046, allocations: 37.81 kB / 0.5342 GB, free: 28.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.908e-06/0.4046, allocations: 0 / 0.5342 GB, free: 28.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004715/0.4093, allocations: 1.984 MB / 0.5361 GB, free: 26.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.4094, allocations: 59.78 kB / 0.5361 GB, free: 26.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.4119, allocations: 1.968 MB / 0.5381 GB, free: 24.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.4119, allocations: 37.81 kB / 0.5381 GB, free: 24.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007646/0.4127, allocations: 1.885 MB / 0.5399 GB, free: 22.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.4129, allocations: 311.6 kB / 0.5402 GB, free: 21.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005819/0.4135, allocations: 0.6268 MB / 0.5409 GB, free: 21.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.188e-05/0.4136, allocations: 353.9 kB / 0.5412 GB, free: 20.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009318/0.4145, allocations: 0.8998 MB / 0.5421 GB, free: 20.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.416, allocations: 2.768 MB / 0.5448 GB, free: 16.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002848/0.4189, allocations: 4.002 MB / 0.5487 GB, free: 11.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.673e-05/0.4189, allocations: 20 kB / 0.5487 GB, free: 11.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004107/0.423, allocations: 3.546 MB / 0.5522 GB, free: 7.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.4231, allocations: 38.34 kB / 0.5522 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.042e-05/0.4232, allocations: 64 kB / 0.5523 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.877e-05/0.4232, allocations: 88.81 kB / 0.5523 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.4248, allocations: 0.6666 MB / 0.553 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-05/0.4249, allocations: 131.5 kB / 0.5531 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4266, allocations: 423.5 kB / 0.5535 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/0.4268, allocations: 184 kB / 0.5537 GB, free: 6.25 MB / 382.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.001374/0.4281, allocations: 1.379 MB / 0.5551 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.4283, allocations: 161.9 kB / 0.5552 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.4286, allocations: 193.2 kB / 0.5554 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.4286, allocations: 15.94 kB / 0.5554 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4286, allocations: 0 / 0.5554 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.4286, allocations: 3.984 kB / 0.5554 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004576/0.4332, allocations: 4.096 MB / 0.5594 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.4332, allocations: 8 kB / 0.5594 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/0.4336, allocations: 99.83 kB / 0.5595 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.4336, allocations: 8 kB / 0.5595 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.4336, allocations: 23.98 kB / 0.5595 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.4336, allocations: 8 kB / 0.5595 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.4337, allocations: 11.94 kB / 0.5596 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.435, allocations: 1.272 MB / 0.5608 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.4354, allocations: 258.6 kB / 0.561 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.4355, allocations: 15.98 kB / 0.5611 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004718/0.436, allocations: 30.33 kB / 0.5611 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.4361, allocations: 55.81 kB / 0.5611 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.4362, allocations: 32 kB / 0.5612 GB, free: 14.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.4377, allocations: 1.279 MB / 0.5624 GB, free: 13.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4377, allocations: 0 / 0.5624 GB, free: 13.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002407/0.4401, allocations: 0.7134 MB / 0.5631 GB, free: 12.35 MB / 398.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.001717/0.4418, allocations: 1.865 MB / 0.5649 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.445, allocations: 2.261 MB / 0.5672 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.445, allocations: 3.938 kB / 0.5672 GB, free: 8.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005098/0.4455, allocations: 465.1 kB / 0.5676 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.4469, allocations: 243.9 kB / 0.5678 GB, free: 7.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03246/0.4794, allocations: 22.38 MB / 0.5897 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/0.4827, allocations: 2.327 MB / 0.592 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002384/0.4851, allocations: 0.9597 MB / 0.5929 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.4866, allocations: 1.069 MB / 0.5939 GB, free: 9.664 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4866, allocations: 0 / 0.5939 GB, free: 9.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05724/0.5439, allocations: 32.49 MB / 0.6257 GB, free: 9.324 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/8.894, allocations: 15.34 kB / 0.6257 GB, free: 9.312 MB / 462.1 MB (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