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.001915/0.001915, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002122/0.002122, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 7.816 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.2319/0.2319, allocations: 46.96 MB / 361.7 MB, free: 4.055 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.001987/0.001987, allocations: 67.84 kB / 0.4969 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2846, allocations: 66.03 MB / 0.5613 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01091/0.2955, allocations: 8.35 MB / 0.5695 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005763/0.3013, allocations: 2.773 MB / 0.5722 GB, free: 9.102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009687/0.3023, allocations: 55.81 kB / 0.5723 GB, free: 9.047 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003947/0.3062, allocations: 1.939 MB / 0.5742 GB, free: 7.102 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002709/0.3089, allocations: 1.14 MB / 0.5753 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007328/0.3097, allocations: 279.5 kB / 0.5755 GB, free: 5.684 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003325/0.313, allocations: 2.337 MB / 0.5778 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002339/0.3153, allocations: 1.738 MB / 0.5795 GB, free: 1.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.3166, allocations: 0.8878 MB / 0.5804 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.3185, allocations: 1.258 MB / 0.5816 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004463/0.3189, allocations: 196 kB / 0.5818 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.3202, allocations: 0.6123 MB / 0.5824 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.3215, allocations: 1.133 MB / 0.5835 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.3228, allocations: 0.9509 MB / 0.5844 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.3281, allocations: 4.342 MB / 0.5887 GB, free: 8.148 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3282, allocations: 0 / 0.5887 GB, free: 8.148 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3282, allocations: 0 / 0.5887 GB, free: 8.148 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001364/0.3283, allocations: 0 / 0.5887 GB, free: 8.148 MB / 430.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.005805/0.3341, allocations: 2.866 MB / 0.5915 GB, free: 5.238 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3341, allocations: 12.03 kB / 0.5915 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001012/0.3342, allocations: 67.88 kB / 0.5915 GB, free: 5.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008174/0.3351, allocations: 479.1 kB / 0.592 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005253/0.3403, allocations: 1.578 MB / 0.5935 GB, free: 3.102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002811/0.3431, allocations: 1.283 MB / 0.5948 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.3433, allocations: 151.6 kB / 0.5949 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000479/0.3437, allocations: 183.9 kB / 0.5951 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.3543, allocations: 6.246 MB / 0.6012 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.717e-05/0.3544, allocations: 19.81 kB / 0.6012 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/0.3546, allocations: 87.91 kB / 0.6013 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/0.3568, allocations: 1.344 MB / 0.6026 GB, free: 9.488 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.3673, allocations: 5.334 MB / 0.6078 GB, free: 4.141 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02794/0.3952, allocations: 19.06 MB / 0.6264 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/0.3994, allocations: 1.484 MB / 0.6279 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.4004, allocations: 0.6392 MB / 0.6285 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006668/0.4071, allocations: 3.024 MB / 0.6315 GB, free: 11.31 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.4071, allocations: 39 kB / 0.6315 GB, free: 11.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 3.667e-06/0.4071, allocations: 0 / 0.6315 GB, free: 11.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005859/0.413, allocations: 1.998 MB / 0.6335 GB, free: 9.258 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.413, allocations: 55.84 kB / 0.6335 GB, free: 9.191 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002933/0.4159, allocations: 1.938 MB / 0.6354 GB, free: 7.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.786e-05/0.416, allocations: 41.7 kB / 0.6354 GB, free: 7.203 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.4175, allocations: 1.907 MB / 0.6373 GB, free: 5.273 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.4179, allocations: 333.5 kB / 0.6376 GB, free: 4.945 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008603/0.4188, allocations: 0.6156 MB / 0.6382 GB, free: 4.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000253/0.419, allocations: 357.9 kB / 0.6386 GB, free: 3.965 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.4205, allocations: 0.8842 MB / 0.6394 GB, free: 3.078 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/0.4236, allocations: 2.747 MB / 0.6421 GB, free: 15.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004935/0.4286, allocations: 3.97 MB / 0.646 GB, free: 10.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.535e-05/0.4286, allocations: 20 kB / 0.646 GB, free: 10.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006326/0.4349, allocations: 3.534 MB / 0.6495 GB, free: 6.945 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.905e-05/0.435, allocations: 36.94 kB / 0.6495 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.758e-05/0.4351, allocations: 67.94 kB / 0.6496 GB, free: 6.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-05/0.4352, allocations: 91.94 kB / 0.6497 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/0.4372, allocations: 0.6628 MB / 0.6503 GB, free: 6.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001192/0.4373, allocations: 139.4 kB / 0.6504 GB, free: 5.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.4392, allocations: 424.9 kB / 0.6508 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003901/0.4396, allocations: 184 kB / 0.651 GB, free: 5.355 MB / 494.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.002258/0.4419, allocations: 1.346 MB / 0.6523 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002868/0.4422, allocations: 166.9 kB / 0.6525 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004001/0.4426, allocations: 196.8 kB / 0.6527 GB, free: 3.637 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.4426, allocations: 12 kB / 0.6527 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4426, allocations: 0 / 0.6527 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.4426, allocations: 3.984 kB / 0.6527 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0072/0.4498, allocations: 3.907 MB / 0.6565 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.4498, allocations: 4.844 kB / 0.6565 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004556/0.4503, allocations: 107.8 kB / 0.6566 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.4503, allocations: 12 kB / 0.6566 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.193e-05/0.4503, allocations: 20 kB / 0.6566 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.42e-05/0.4504, allocations: 11.94 kB / 0.6567 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/0.4504, allocations: 8 kB / 0.6567 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.4521, allocations: 1.27 MB / 0.6579 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004047/0.4525, allocations: 182.6 kB / 0.6581 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002095/0.4527, allocations: 24 kB / 0.6581 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.4532, allocations: 27.94 kB / 0.6581 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4533, allocations: 59.73 kB / 0.6582 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.139e-05/0.4534, allocations: 28 kB / 0.6582 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002111/0.4555, allocations: 1.279 MB / 0.6595 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4555, allocations: 3.828 kB / 0.6595 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002721/0.4582, allocations: 0.6775 MB / 0.6601 GB, free: 11.77 MB / 0.4981 GB 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.002337/0.4605, allocations: 1.869 MB / 0.6619 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003435/0.464, allocations: 1.96 MB / 0.6639 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.464, allocations: 0 / 0.6639 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006445/0.4646, allocations: 441.1 kB / 0.6643 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.4661, allocations: 245.3 kB / 0.6645 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03376/0.4999, allocations: 20.95 MB / 0.685 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002495/0.5023, allocations: 1.701 MB / 0.6866 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0022/0.5045, allocations: 0.9597 MB / 0.6876 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/0.5061, allocations: 1.038 MB / 0.6886 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/0.5061, allocations: 0 / 0.6886 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06858/0.5746, allocations: 34.04 MB / 0.7218 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/16.68, allocations: 14.5 kB / 0.7218 GB, free: 10.33 MB / 0.5606 GB " [Timeout remaining time 643] (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: 20.459271250059828]