Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 120.1 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00211/0.00211, allocations: 215.1 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2223/0.2223, allocations: 46.91 MB / 357.8 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.91 kB / 0.4916 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1138, allocations: 65.99 MB / 0.5561 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01235/0.1261, allocations: 9.568 MB / 0.5654 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00721/0.1333, allocations: 2.936 MB / 0.5683 GB, free: 9.301 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.1348, allocations: 55.81 kB / 0.5683 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004257/0.139, allocations: 2.025 MB / 0.5703 GB, free: 7.215 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.1421, allocations: 1.129 MB / 0.5714 GB, free: 6.082 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009715/0.1431, allocations: 287.4 kB / 0.5717 GB, free: 5.801 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003807/0.1469, allocations: 2.325 MB / 0.5739 GB, free: 3.473 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002912/0.1498, allocations: 1.926 MB / 0.5758 GB, free: 1.504 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.1514, allocations: 0.8839 MB / 0.5767 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002014/0.1534, allocations: 1.25 MB / 0.5779 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005776/0.154, allocations: 196 kB / 0.5781 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.1555, allocations: 0.7254 MB / 0.5788 GB, free: 14.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001461/0.157, allocations: 1.141 MB / 0.5799 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.1589, allocations: 1.308 MB / 0.5812 GB, free: 11.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005473/0.1644, allocations: 4.334 MB / 0.5854 GB, free: 7.633 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1644, allocations: 0 / 0.5854 GB, free: 7.633 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1644, allocations: 0 / 0.5854 GB, free: 7.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.1645, allocations: 0 / 0.5854 GB, free: 7.633 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.005689/0.1702, allocations: 2.945 MB / 0.5883 GB, free: 4.625 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.1702, allocations: 8.031 kB / 0.5883 GB, free: 4.617 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001025/0.1703, allocations: 67.94 kB / 0.5884 GB, free: 4.551 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007666/0.1711, allocations: 487 kB / 0.5888 GB, free: 4.066 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005613/0.1767, allocations: 1.578 MB / 0.5904 GB, free: 2.484 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003091/0.1798, allocations: 1.336 MB / 0.5917 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.1799, allocations: 151.6 kB / 0.5918 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005588/0.1805, allocations: 187.9 kB / 0.592 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2318/0.4123, allocations: 6.242 MB / 0.5981 GB, free: 31.83 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/0.4124, allocations: 16.91 kB / 0.5981 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003833/0.4128, allocations: 85.81 kB / 0.5982 GB, free: 31.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002448/0.4152, allocations: 1.344 MB / 0.5995 GB, free: 31.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.4272, allocations: 5.335 MB / 0.6047 GB, free: 29.88 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02821/0.4554, allocations: 20.07 MB / 0.6243 GB, free: 16.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/0.4592, allocations: 1.944 MB / 0.6262 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007672/0.46, allocations: 0.6398 MB / 0.6268 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005306/0.4653, allocations: 3.621 MB / 0.6304 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.4653, allocations: 35 kB / 0.6304 GB, free: 12.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 3.346e-06/0.4653, allocations: 0 / 0.6304 GB, free: 12.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.004701/0.47, allocations: 1.994 MB / 0.6324 GB, free: 10.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.47, allocations: 59.78 kB / 0.6324 GB, free: 10.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001966/0.472, allocations: 1.94 MB / 0.6343 GB, free: 8.918 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.413e-05/0.4721, allocations: 39.73 kB / 0.6344 GB, free: 8.875 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007368/0.4728, allocations: 1.907 MB / 0.6362 GB, free: 7.094 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.473, allocations: 336.7 kB / 0.6365 GB, free: 6.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006054/0.4736, allocations: 0.6176 MB / 0.6371 GB, free: 6.145 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.4737, allocations: 353.9 kB / 0.6375 GB, free: 5.793 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009649/0.4747, allocations: 0.8881 MB / 0.6383 GB, free: 4.902 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.4761, allocations: 2.751 MB / 0.641 GB, free: 1.219 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004264/0.4804, allocations: 3.977 MB / 0.6449 GB, free: 12.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.602e-05/0.4805, allocations: 20 kB / 0.6449 GB, free: 12.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006081/0.4865, allocations: 3.524 MB / 0.6484 GB, free: 8.773 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.4866, allocations: 36.22 kB / 0.6484 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.974e-05/0.4867, allocations: 68 kB / 0.6485 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000106/0.4868, allocations: 84 kB / 0.6486 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/0.4888, allocations: 0.6666 MB / 0.6492 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001157/0.489, allocations: 123.5 kB / 0.6493 GB, free: 7.801 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/0.491, allocations: 428.8 kB / 0.6497 GB, free: 7.379 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000329/0.4913, allocations: 188 kB / 0.6499 GB, free: 7.195 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.002223/0.4935, allocations: 1.346 MB / 0.6512 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/0.4938, allocations: 162.9 kB / 0.6514 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000473/0.4943, allocations: 200.9 kB / 0.6516 GB, free: 5.477 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-05/0.4943, allocations: 15.92 kB / 0.6516 GB, free: 5.461 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.4943, allocations: 3 kB / 0.6516 GB, free: 5.461 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.4943, allocations: 0 / 0.6516 GB, free: 5.461 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007147/0.5015, allocations: 4.036 MB / 0.6555 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.5015, allocations: 4 kB / 0.6555 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004326/0.5019, allocations: 103.8 kB / 0.6556 GB, free: 1.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.5019, allocations: 11.98 kB / 0.6556 GB, free: 1.156 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.502, allocations: 20 kB / 0.6557 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-05/0.502, allocations: 13.47 kB / 0.6557 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.502, allocations: 11.94 kB / 0.6557 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.5037, allocations: 1.271 MB / 0.6569 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004098/0.5041, allocations: 255.7 kB / 0.6572 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.5043, allocations: 16 kB / 0.6572 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005042/0.5048, allocations: 35.88 kB / 0.6572 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.5049, allocations: 63.72 kB / 0.6573 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/0.505, allocations: 24 kB / 0.6573 GB, free: 15.33 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001964/0.5069, allocations: 1.267 MB / 0.6585 GB, free: 14.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5069, allocations: 4 kB / 0.6585 GB, free: 14.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002631/0.5096, allocations: 0.6891 MB / 0.6592 GB, free: 13.38 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.00227/0.5118, allocations: 1.874 MB / 0.6611 GB, free: 11.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003314/0.5152, allocations: 1.957 MB / 0.663 GB, free: 9.453 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.5152, allocations: 4 kB / 0.663 GB, free: 9.449 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006398/0.5158, allocations: 429.5 kB / 0.6634 GB, free: 9.031 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.5172, allocations: 232.7 kB / 0.6636 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03356/0.5507, allocations: 20.95 MB / 0.6841 GB, free: 1.316 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.554, allocations: 2.276 MB / 0.6863 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002338/0.5563, allocations: 0.9615 MB / 0.6872 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/0.5581, allocations: 1.042 MB / 0.6882 GB, free: 13 MB / 0.4981 GB Notification: Performance of SimCode: time 1.453e-06/0.5581, allocations: 0 / 0.6882 GB, free: 13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06857/0.6267, allocations: 32.84 MB / 0.7203 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.38, allocations: 10.59 kB / 0.7203 GB, free: 12.36 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/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_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.98314935102826]