Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.00129/0.00129, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 203.7 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.1 MB / 222.6 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3395/0.3395, allocations: 43.5 MB / 313.5 MB, free: 8.305 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 67.91 kB / 382.1 MB, free: 8.422 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1256, allocations: 57.78 MB / 439.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2971/0.4227, allocations: 53.2 MB / 493.1 MB, free: 17.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02482/0.4476, allocations: 11.15 MB / 0.4924 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01742/0.4651, allocations: 220.3 kB / 0.4927 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006163/0.4713, allocations: 2.82 MB / 0.4954 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005687/0.477, allocations: 1.77 MB / 0.4971 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.4789, allocations: 0.644 MB / 0.4978 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009572/0.4885, allocations: 6.134 MB / 0.5038 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005669/0.4942, allocations: 3.82 MB / 0.5075 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00318/0.4975, allocations: 1.393 MB / 0.5088 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004275/0.5018, allocations: 2.363 MB / 0.5112 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.5028, allocations: 257.6 kB / 0.5114 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002867/0.5057, allocations: 1.19 MB / 0.5126 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002417/0.5081, allocations: 1.96 MB / 0.5145 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002932/0.511, allocations: 2.336 MB / 0.5168 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009378/0.5204, allocations: 7.697 MB / 0.5243 GB, free: 10.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.5205, allocations: 4 kB / 0.5243 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5205, allocations: 3.938 kB / 0.5243 GB, free: 10.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002616/0.5207, allocations: 0 / 0.5243 GB, free: 10.8 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01193/0.5327, allocations: 5.114 MB / 0.5293 GB, free: 5.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5328, allocations: 8.031 kB / 0.5293 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/0.534, allocations: 0.7738 MB / 0.53 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07126/0.6053, allocations: 7.134 MB / 0.537 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007643/0.613, allocations: 3.097 MB / 0.54 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000359/0.6134, allocations: 258.3 kB / 0.5403 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/0.6155, allocations: 335.7 kB / 0.5406 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0193/0.6349, allocations: 10.38 MB / 0.5507 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.635, allocations: 43.59 kB / 0.5508 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004175/0.6354, allocations: 155.8 kB / 0.5509 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/0.6384, allocations: 2.108 MB / 0.553 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01523/0.6537, allocations: 8.6 MB / 0.5614 GB, free: 3.953 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04942/0.7032, allocations: 38.45 MB / 0.5989 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005839/0.709, allocations: 2.991 MB / 0.6018 GB, free: 9.281 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002474/0.7116, allocations: 1.678 MB / 0.6035 GB, free: 7.594 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004039/0.712, allocations: 340.1 kB / 0.6038 GB, free: 7.207 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.712, allocations: 59.5 kB / 0.6039 GB, free: 7.141 MB / 478.1 MB Notification: Performance of pre-optimization done (n=176): time 4.549e-06/0.7121, allocations: 4 kB / 0.6039 GB, free: 7.137 MB / 478.1 MB Notification: Performance of matching and sorting (n=194): time 0.03304/0.7451, allocations: 13.93 MB / 0.6175 GB, free: 9.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.7453, allocations: 205.2 kB / 0.6177 GB, free: 8.824 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005696/0.751, allocations: 3.854 MB / 0.6214 GB, free: 4.984 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005299/0.7515, allocations: 49.7 kB / 0.6215 GB, free: 4.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002532/0.7541, allocations: 3.214 MB / 0.6246 GB, free: 1.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/0.7553, allocations: 0.7405 MB / 0.6253 GB, free: 0.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2402/0.9955, allocations: 1.208 MB / 0.6265 GB, free: 141.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.9956, allocations: 301.7 kB / 0.6268 GB, free: 141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003221/0.9988, allocations: 2.146 MB / 0.6289 GB, free: 141 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004251/1.003, allocations: 5.829 MB / 0.6346 GB, free: 136.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007972/1.011, allocations: 8.632 MB / 0.643 GB, free: 129.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/1.011, allocations: 38.81 kB / 0.6431 GB, free: 129.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01434/1.026, allocations: 7.989 MB / 0.6509 GB, free: 126.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.048e-05/1.026, allocations: 64 kB / 0.6509 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/1.026, allocations: 127.8 kB / 0.6511 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000868/1.027, allocations: 445.8 kB / 0.6515 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/1.031, allocations: 1.421 MB / 0.6529 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003669/1.035, allocations: 3.357 MB / 0.6561 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00482/1.039, allocations: 358.7 kB / 0.6565 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009178/1.04, allocations: 372.1 kB / 0.6568 GB, free: 123.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (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 (745): * Single equations (assignments): 741 * 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.004536/1.045, allocations: 2.226 MB / 0.659 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00072/1.046, allocations: 345 kB / 0.6593 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004961/1.051, allocations: 2.883 MB / 0.6622 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/1.051, allocations: 25.31 kB / 0.6622 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.051, allocations: 7.25 kB / 0.6622 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/1.051, allocations: 11.34 kB / 0.6622 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/1.064, allocations: 7.8 MB / 0.6698 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/1.064, allocations: 1.125 kB / 0.6698 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/1.065, allocations: 340.4 kB / 0.6701 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008261/1.066, allocations: 251.8 kB / 0.6704 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/1.066, allocations: 41.2 kB / 0.6704 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003237/1.07, allocations: 2.93 MB / 0.6733 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/1.07, allocations: 1.5 kB / 0.6733 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008422/1.078, allocations: 5.478 MB / 0.6786 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/1.08, allocations: 0.6297 MB / 0.6793 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004444/1.08, allocations: 30.75 kB / 0.6793 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/1.082, allocations: 118.2 kB / 0.6794 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003551/1.082, allocations: 122.5 kB / 0.6795 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.082, allocations: 59.78 kB / 0.6796 GB, free: 114.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003532/1.086, allocations: 2.409 MB / 0.6819 GB, free: 113.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.086, allocations: 0 / 0.6819 GB, free: 113.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004717/1.09, allocations: 0.9914 MB / 0.6829 GB, free: 113.5 MB / 494.1 MB 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 (164): * Single equations (assignments): 160 * 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.007584/1.098, allocations: 6.124 MB / 0.6889 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008159/1.106, allocations: 5.167 MB / 0.6939 GB, free: 107.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.106, allocations: 0 / 0.6939 GB, free: 107.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/1.108, allocations: 1.649 MB / 0.6955 GB, free: 106.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/1.111, allocations: 420.9 kB / 0.6959 GB, free: 105.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07064/1.182, allocations: 51.97 MB / 0.7467 GB, free: 48.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004616/1.186, allocations: 3.456 MB / 0.7501 GB, free: 45.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004449/1.191, allocations: 1.95 MB / 0.752 GB, free: 43.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002715/1.194, allocations: 1.987 MB / 0.7539 GB, free: 41.22 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/1.194, allocations: 0 / 0.7539 GB, free: 41.22 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09008/1.284, allocations: 68.2 MB / 0.8205 GB, free: 5 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/1.284, allocations: 233.1 kB / 0.8207 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.435/4.719, allocations: 0 / 0.8207 GB, free: 4.742 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches