Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.001332/0.001332, allocations: 127.4 kB / 17.79 MB, free: 5.246 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.001525/0.001525, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.1 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.2249/0.2249, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 67.91 kB / 0.4909 GB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1314, allocations: 66 MB / 0.5554 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01243/0.1439, allocations: 9.539 MB / 0.5647 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008578/0.1524, allocations: 3.847 MB / 0.5685 GB, free: 8.387 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.1545, allocations: 67.69 kB / 0.5685 GB, free: 8.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00617/0.1607, allocations: 2.784 MB / 0.5712 GB, free: 5.527 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005039/0.1657, allocations: 1.654 MB / 0.5729 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.1677, allocations: 0.7096 MB / 0.5736 GB, free: 3.156 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006176/0.1739, allocations: 3.903 MB / 0.5774 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004519/0.1784, allocations: 3.05 MB / 0.5803 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002549/0.1809, allocations: 1.421 MB / 0.5817 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003254/0.1842, allocations: 2.048 MB / 0.5837 GB, free: 8.648 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009948/0.1852, allocations: 315.9 kB / 0.584 GB, free: 8.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0026/0.1878, allocations: 1.225 MB / 0.5852 GB, free: 7.113 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.19, allocations: 1.796 MB / 0.587 GB, free: 5.312 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003331/0.1933, allocations: 2.078 MB / 0.589 GB, free: 3.223 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2731/0.4664, allocations: 6.856 MB / 0.5957 GB, free: 13.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4664, allocations: 0 / 0.5957 GB, free: 13.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4664, allocations: 0 / 0.5957 GB, free: 13.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002575/0.4666, allocations: 0 / 0.5957 GB, free: 13.99 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01429/0.4809, allocations: 4.581 MB / 0.6002 GB, free: 12.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.481, allocations: 9.406 kB / 0.6002 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001588/0.4826, allocations: 0.6583 MB / 0.6008 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08994/0.5725, allocations: 7.061 MB / 0.6077 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006556/0.5791, allocations: 2.677 MB / 0.6103 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.5793, allocations: 226.5 kB / 0.6106 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/0.5804, allocations: 290.5 kB / 0.6108 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/0.5939, allocations: 8.661 MB / 0.6193 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.594, allocations: 43.45 kB / 0.6193 GB, free: 8.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003966/0.5944, allocations: 139.4 kB / 0.6195 GB, free: 8.027 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.5967, allocations: 1.656 MB / 0.6211 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.6077, allocations: 7.086 MB / 0.628 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04093/0.6486, allocations: 33.28 MB / 0.6605 GB, free: 3.332 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004967/0.6536, allocations: 2.282 MB / 0.6627 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.6553, allocations: 1.128 MB / 0.6638 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003733/0.6556, allocations: 329.9 kB / 0.6641 GB, free: 15.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.6557, allocations: 43.12 kB / 0.6642 GB, free: 15.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.707e-06/0.6557, allocations: 0 / 0.6642 GB, free: 15.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02938/0.6851, allocations: 10.69 MB / 0.6746 GB, free: 4.613 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.6852, allocations: 198.7 kB / 0.6748 GB, free: 4.379 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007397/0.6926, allocations: 3.601 MB / 0.6783 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000319/0.6929, allocations: 45.7 kB / 0.6784 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002615/0.6955, allocations: 2.953 MB / 0.6813 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008522/0.6964, allocations: 0.5719 MB / 0.6818 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002137/0.6985, allocations: 1.073 MB / 0.6829 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6986, allocations: 305.1 kB / 0.6832 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003117/0.7018, allocations: 1.7 MB / 0.6848 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006029/0.7078, allocations: 5.063 MB / 0.6898 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009689/0.7175, allocations: 7.334 MB / 0.6969 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001151/0.7176, allocations: 36 kB / 0.697 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01392/0.7315, allocations: 6.75 MB / 0.7035 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.7316, allocations: 57.97 kB / 0.7036 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/0.7318, allocations: 120 kB / 0.7037 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.733, allocations: 429.1 kB / 0.7041 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/0.7371, allocations: 1.209 MB / 0.7053 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004646/0.7417, allocations: 3.595 MB / 0.7088 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/0.7454, allocations: 287.8 kB / 0.7091 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008024/0.7462, allocations: 339.8 kB / 0.7094 GB, free: 14.23 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (644): * Single equations (assignments): 640 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003622/0.7499, allocations: 1.943 MB / 0.7113 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/0.7506, allocations: 321.8 kB / 0.7116 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004176/0.7548, allocations: 1.874 MB / 0.7135 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.549e-05/0.7548, allocations: 23.98 kB / 0.7135 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.7548, allocations: 7.656 kB / 0.7135 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.7548, allocations: 3.984 kB / 0.7135 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.7677, allocations: 5.752 MB / 0.7191 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.7677, allocations: 0 / 0.7191 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.7688, allocations: 223.6 kB / 0.7193 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008333/0.7696, allocations: 255.2 kB / 0.7196 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.7698, allocations: 27.98 kB / 0.7196 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.7737, allocations: 3.172 MB / 0.7227 GB, free: 460 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.7737, allocations: 3.984 kB / 0.7227 GB, free: 456 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006884/0.7806, allocations: 3.957 MB / 0.7266 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.7816, allocations: 370.8 kB / 0.7269 GB, free: 12.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007611/0.7824, allocations: 24 kB / 0.7269 GB, free: 12.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/0.7839, allocations: 63.92 kB / 0.727 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.7842, allocations: 100.6 kB / 0.7271 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.7844, allocations: 42.8 kB / 0.7271 GB, free: 11.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004637/0.789, allocations: 2.242 MB / 0.7293 GB, free: 9.633 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.789, allocations: 0 / 0.7293 GB, free: 9.633 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004906/0.7939, allocations: 0.8124 MB / 0.7301 GB, free: 8.82 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * 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 (107): * Single equations (assignments): 103 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007902/0.8018, allocations: 4.596 MB / 0.7346 GB, free: 4.203 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007605/0.8094, allocations: 3.959 MB / 0.7385 GB, free: 252 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.8094, allocations: 4 kB / 0.7385 GB, free: 248 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.8114, allocations: 1.105 MB / 0.7395 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.8143, allocations: 404.4 kB / 0.7399 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06462/0.8789, allocations: 37.91 MB / 0.777 GB, free: 3.777 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004553/0.8834, allocations: 3.034 MB / 0.7799 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004048/0.8875, allocations: 1.709 MB / 0.7816 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002619/0.8901, allocations: 1.659 MB / 0.7832 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of SimCode: time 1.002e-06/0.8901, allocations: 0 / 0.7832 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/1.006, allocations: 56.89 MB / 0.8388 GB, free: 4.809 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.29/24.3, allocations: 12 kB / 0.8388 GB, free: 4.797 MB / 0.6544 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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: 28.145835330942646]