Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00204/0.00204, allocations: 127.4 kB / 17.79 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002501/0.002501, allocations: 211.6 kB / 20.75 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 230.5 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2344/0.2344, allocations: 46.91 MB / 357 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 79.88 kB / 0.491 GB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1285, allocations: 66.04 MB / 0.5555 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01169/0.1401, allocations: 9.564 MB / 0.5648 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006206/0.1463, allocations: 2.94 MB / 0.5677 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.148, allocations: 55.81 kB / 0.5677 GB, free: 8.941 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.1522, allocations: 2.017 MB / 0.5697 GB, free: 6.918 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003198/0.1554, allocations: 1.129 MB / 0.5708 GB, free: 5.785 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008925/0.1563, allocations: 291.4 kB / 0.5711 GB, free: 5.5 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003574/0.1598, allocations: 2.333 MB / 0.5734 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.1624, allocations: 1.907 MB / 0.5752 GB, free: 1.215 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.1637, allocations: 0.8995 MB / 0.5761 GB, free: 320 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.1655, allocations: 1.25 MB / 0.5773 GB, free: 15.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003732/0.1659, allocations: 192 kB / 0.5775 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.1671, allocations: 0.7294 MB / 0.5782 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.1683, allocations: 1.137 MB / 0.5793 GB, free: 13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.1698, allocations: 1.305 MB / 0.5806 GB, free: 11.69 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005153/0.1749, allocations: 4.33 MB / 0.5848 GB, free: 7.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1749, allocations: 0 / 0.5848 GB, free: 7.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1749, allocations: 0 / 0.5848 GB, free: 7.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.175, allocations: 8 kB / 0.5848 GB, free: 7.332 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.005643/0.1807, allocations: 2.942 MB / 0.5877 GB, free: 4.328 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.1807, allocations: 12.03 kB / 0.5877 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006781/0.1814, allocations: 483.1 kB / 0.5882 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005413/0.1868, allocations: 1.574 MB / 0.5897 GB, free: 2.258 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002901/0.1897, allocations: 1.344 MB / 0.591 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.1899, allocations: 151.7 kB / 0.5912 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000522/0.1904, allocations: 183.9 kB / 0.5913 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2366/0.427, allocations: 6.248 MB / 0.5974 GB, free: 31.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/0.4271, allocations: 13.64 kB / 0.5975 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000248/0.4273, allocations: 87.34 kB / 0.5975 GB, free: 31.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/0.4295, allocations: 1.348 MB / 0.5989 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.4397, allocations: 5.331 MB / 0.6041 GB, free: 29.67 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02536/0.4651, allocations: 20.07 MB / 0.6237 GB, free: 16.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003777/0.4688, allocations: 1.942 MB / 0.6256 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007783/0.4696, allocations: 0.6389 MB / 0.6262 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00564/0.4753, allocations: 3.625 MB / 0.6297 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.4753, allocations: 35 kB / 0.6298 GB, free: 12.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.976e-06/0.4753, allocations: 0 / 0.6298 GB, free: 12.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.00478/0.4801, allocations: 1.998 MB / 0.6317 GB, free: 10.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.4801, allocations: 55.84 kB / 0.6318 GB, free: 10.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002105/0.4822, allocations: 1.94 MB / 0.6337 GB, free: 8.504 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-05/0.4823, allocations: 33.7 kB / 0.6337 GB, free: 8.465 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007819/0.4831, allocations: 1.915 MB / 0.6356 GB, free: 6.676 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.4833, allocations: 327.5 kB / 0.6359 GB, free: 6.359 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000651/0.484, allocations: 0.6215 MB / 0.6365 GB, free: 5.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.532e-05/0.4841, allocations: 353.9 kB / 0.6368 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009573/0.485, allocations: 0.8842 MB / 0.6377 GB, free: 4.492 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4865, allocations: 2.751 MB / 0.6404 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/0.4909, allocations: 3.974 MB / 0.6442 GB, free: 11.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-05/0.4909, allocations: 16 kB / 0.6443 GB, free: 11.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006101/0.497, allocations: 3.543 MB / 0.6477 GB, free: 8.348 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/0.4971, allocations: 33.72 kB / 0.6478 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.851e-05/0.4971, allocations: 68 kB / 0.6478 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.36e-05/0.4972, allocations: 87.94 kB / 0.6479 GB, free: 8.164 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002006/0.4992, allocations: 0.652 MB / 0.6485 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000113/0.4994, allocations: 131.4 kB / 0.6487 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.5014, allocations: 432.8 kB / 0.6491 GB, free: 6.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.5017, allocations: 184 kB / 0.6493 GB, free: 6.781 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.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 (362): * Single equations (assignments): 357 * 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.002217/0.5039, allocations: 1.341 MB / 0.6506 GB, free: 5.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003081/0.5042, allocations: 166.9 kB / 0.6507 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.5047, allocations: 196.8 kB / 0.6509 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.5047, allocations: 11.94 kB / 0.6509 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5047, allocations: 3.938 kB / 0.6509 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.5047, allocations: 3.984 kB / 0.6509 GB, free: 5.051 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00637/0.5111, allocations: 4.029 MB / 0.6549 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.5111, allocations: 4 kB / 0.6549 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.5115, allocations: 107.8 kB / 0.655 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.5115, allocations: 8.812 kB / 0.655 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.266e-05/0.5116, allocations: 23.98 kB / 0.655 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.407e-05/0.5116, allocations: 19.92 kB / 0.655 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.5116, allocations: 12.59 kB / 0.655 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.5132, allocations: 1.263 MB / 0.6563 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005289/0.5137, allocations: 255.7 kB / 0.6565 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.5139, allocations: 19.98 kB / 0.6565 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.5144, allocations: 31.94 kB / 0.6566 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.5145, allocations: 55.77 kB / 0.6566 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.608e-05/0.5146, allocations: 31.98 kB / 0.6566 GB, free: 14.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001809/0.5164, allocations: 1.275 MB / 0.6579 GB, free: 13.65 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5164, allocations: 0 / 0.6579 GB, free: 13.65 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00245/0.5189, allocations: 0.6929 MB / 0.6586 GB, free: 12.96 MB / 478.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.0021/0.521, allocations: 1.87 MB / 0.6604 GB, free: 10.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.5242, allocations: 1.956 MB / 0.6623 GB, free: 9.047 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.5242, allocations: 1 kB / 0.6623 GB, free: 9.047 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005911/0.5248, allocations: 440.7 kB / 0.6627 GB, free: 8.617 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.5261, allocations: 244.8 kB / 0.663 GB, free: 8.391 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03045/0.5566, allocations: 20.94 MB / 0.6834 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002639/0.5592, allocations: 2.276 MB / 0.6856 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002047/0.5613, allocations: 0.9586 MB / 0.6866 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/0.5628, allocations: 1.038 MB / 0.6876 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/0.5628, allocations: 0 / 0.6876 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07147/0.6342, allocations: 32.8 MB / 0.7196 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.98, allocations: 7.984 kB / 0.7196 GB, free: 11.92 MB / 0.5294 GB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable cutTorque.torque[3] in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[3] from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[2] in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[2] from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[1] in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[1] from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.203955481993034]