Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_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.001101/0.001101, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.372, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.009898/0.3819, allocations: 9.781 MB / 0.528 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008171/0.3901, allocations: 3.833 MB / 0.5317 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.392, allocations: 59.09 kB / 0.5318 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005463/0.3975, allocations: 2.782 MB / 0.5345 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005343/0.403, allocations: 1.714 MB / 0.5362 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.4049, allocations: 0.7019 MB / 0.5369 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006549/0.4115, allocations: 3.98 MB / 0.5407 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006517/0.418, allocations: 3.733 MB / 0.5444 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004172/0.4222, allocations: 1.452 MB / 0.5458 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003914/0.4262, allocations: 1.963 MB / 0.5477 GB, free: 14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001347/0.4276, allocations: 324 kB / 0.548 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.4308, allocations: 1.221 MB / 0.5492 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002733/0.4336, allocations: 1.839 MB / 0.551 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005288/0.4389, allocations: 2.187 MB / 0.5532 GB, free: 8.418 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009959/0.4489, allocations: 7.199 MB / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4489, allocations: 0 / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.4489, allocations: 0 / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002544/0.4492, allocations: 3.938 kB / 0.5602 GB, free: 1.191 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01133/0.4605, allocations: 4.642 MB / 0.5647 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4606, allocations: 12.03 kB / 0.5647 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009627/0.4616, allocations: 0.6947 MB / 0.5654 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09084/0.5524, allocations: 7.053 MB / 0.5723 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007516/0.56, allocations: 2.824 MB / 0.5751 GB, free: 1.816 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/0.5603, allocations: 230.2 kB / 0.5753 GB, free: 1.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/0.5616, allocations: 303.7 kB / 0.5756 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01704/0.5786, allocations: 9.235 MB / 0.5846 GB, free: 7.426 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.5788, allocations: 39.64 kB / 0.5846 GB, free: 7.387 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004062/0.5792, allocations: 143.9 kB / 0.5848 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003288/0.5825, allocations: 1.837 MB / 0.5866 GB, free: 5.402 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.5977, allocations: 7.553 MB / 0.5939 GB, free: 13.83 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03969/0.6375, allocations: 34.48 MB / 0.6276 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004519/0.642, allocations: 2.382 MB / 0.6299 GB, free: 7.738 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/0.6436, allocations: 1.215 MB / 0.6311 GB, free: 6.508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003622/0.644, allocations: 327.7 kB / 0.6314 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.644, allocations: 55.06 kB / 0.6315 GB, free: 6.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.406e-06/0.644, allocations: 0 / 0.6315 GB, free: 6.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02544/0.6695, allocations: 10.69 MB / 0.6419 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/0.6697, allocations: 196.6 kB / 0.6421 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/0.675, allocations: 3.632 MB / 0.6456 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.6753, allocations: 45.69 kB / 0.6457 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002334/0.6776, allocations: 2.961 MB / 0.6486 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006423/0.6782, allocations: 0.5595 MB / 0.6491 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.6796, allocations: 1.09 MB / 0.6502 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6797, allocations: 305.1 kB / 0.6505 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002643/0.6823, allocations: 1.705 MB / 0.6522 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004729/0.6871, allocations: 5.139 MB / 0.6572 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008052/0.6952, allocations: 7.42 MB / 0.6644 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.596e-05/0.6953, allocations: 36 kB / 0.6644 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.0109/0.7062, allocations: 6.801 MB / 0.6711 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.498e-05/0.7063, allocations: 68.19 kB / 0.6712 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.7064, allocations: 120 kB / 0.6713 GB, free: 9.637 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009185/0.7073, allocations: 428.9 kB / 0.6717 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/0.7108, allocations: 1.228 MB / 0.6729 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003995/0.7148, allocations: 3.597 MB / 0.6764 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.7185, allocations: 291.6 kB / 0.6767 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005141/0.719, allocations: 336 kB / 0.677 GB, free: 3.641 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.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 (653): * Single equations (assignments): 649 * 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.002928/0.7219, allocations: 2.033 MB / 0.679 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005332/0.7225, allocations: 307.9 kB / 0.6793 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.7258, allocations: 1.887 MB / 0.6811 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/0.7258, allocations: 16 kB / 0.6811 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.7258, allocations: 8 kB / 0.6811 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.7259, allocations: 7.922 kB / 0.6811 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.7371, allocations: 5.914 MB / 0.6869 GB, free: 9.379 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.7372, allocations: 4 kB / 0.6869 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.7383, allocations: 223.6 kB / 0.6871 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007102/0.739, allocations: 248.6 kB / 0.6874 GB, free: 8.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.7391, allocations: 31.97 kB / 0.6874 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003462/0.7426, allocations: 3.153 MB / 0.6905 GB, free: 5.582 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.7426, allocations: 8.016 kB / 0.6905 GB, free: 5.574 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006075/0.7487, allocations: 3.944 MB / 0.6943 GB, free: 1.602 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.75, allocations: 361 kB / 0.6947 GB, free: 1.227 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003425/0.7504, allocations: 20 kB / 0.6947 GB, free: 1.207 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.7515, allocations: 79.89 kB / 0.6948 GB, free: 1.129 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.7518, allocations: 92.52 kB / 0.6949 GB, free: 1.039 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.822e-05/0.7519, allocations: 43.92 kB / 0.6949 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003517/0.7554, allocations: 2.262 MB / 0.6971 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7554, allocations: 0 / 0.6971 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003994/0.7594, allocations: 0.8594 MB / 0.698 GB, free: 13.89 MB / 0.5606 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.006137/0.7656, allocations: 4.571 MB / 0.7024 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006677/0.7722, allocations: 4.135 MB / 0.7065 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.7723, allocations: 7.938 kB / 0.7065 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001738/0.774, allocations: 1.17 MB / 0.7076 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.7764, allocations: 436.3 kB / 0.708 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2893/1.066, allocations: 38.49 MB / 0.7456 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/1.069, allocations: 3.159 MB / 0.7487 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003195/1.072, allocations: 1.73 MB / 0.7504 GB, free: 172 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/1.073, allocations: 1.761 MB / 0.7521 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.41e-07/1.073, allocations: 0 / 0.7521 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08453/1.158, allocations: 58.35 MB / 0.8091 GB, free: 115 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.21/23.37, allocations: 14.8 kB / 0.8091 GB, free: 115 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches