Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001654/0.001659, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002031/0.002031, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2212/0.2212, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3674, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01118/0.3786, allocations: 9.493 MB / 0.5398 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008957/0.3877, allocations: 3.821 MB / 0.5435 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002293/0.39, allocations: 56.78 kB / 0.5436 GB, free: 3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005844/0.3959, allocations: 2.759 MB / 0.5463 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005709/0.4016, allocations: 1.609 MB / 0.5478 GB, free: 16 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.4036, allocations: 0.7176 MB / 0.5485 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005596/0.4092, allocations: 3.89 MB / 0.5523 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004588/0.4138, allocations: 3.674 MB / 0.5559 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00258/0.4164, allocations: 1.41 MB / 0.5573 GB, free: 6.242 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.4194, allocations: 1.9 MB / 0.5592 GB, free: 4.336 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009061/0.4203, allocations: 316 kB / 0.5595 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002635/0.4229, allocations: 1.182 MB / 0.5606 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.425, allocations: 1.746 MB / 0.5623 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00326/0.4283, allocations: 2.09 MB / 0.5644 GB, free: 14.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008781/0.4371, allocations: 6.837 MB / 0.571 GB, free: 8.133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4371, allocations: 0 / 0.571 GB, free: 8.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.4371, allocations: 0 / 0.571 GB, free: 8.133 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.4374, allocations: 0 / 0.571 GB, free: 8.133 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01176/0.4491, allocations: 4.461 MB / 0.5754 GB, free: 3.605 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4492, allocations: 8.031 kB / 0.5754 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009878/0.4502, allocations: 0.6612 MB / 0.576 GB, free: 2.926 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09196/0.5422, allocations: 7.033 MB / 0.5829 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008418/0.5506, allocations: 2.671 MB / 0.5855 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.5509, allocations: 222 kB / 0.5857 GB, free: 8.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.552, allocations: 299.7 kB / 0.586 GB, free: 8.633 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01238/0.5644, allocations: 8.653 MB / 0.5945 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-05/0.5646, allocations: 47.64 kB / 0.5945 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003455/0.5649, allocations: 131.9 kB / 0.5946 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002409/0.5673, allocations: 1.661 MB / 0.5963 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/0.5791, allocations: 7.086 MB / 0.6032 GB, free: 6.406 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/0.6177, allocations: 33.21 MB / 0.6356 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.6224, allocations: 2.375 MB / 0.6379 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.6242, allocations: 1.225 MB / 0.6391 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004246/0.6246, allocations: 323.8 kB / 0.6394 GB, free: 64 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.483e-05/0.6247, allocations: 47.06 kB / 0.6395 GB, free: 8 kB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 4.909e-06/0.6247, allocations: 0 / 0.6395 GB, free: 8 kB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02538/0.6501, allocations: 10.5 MB / 0.6497 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/0.6502, allocations: 192.6 kB / 0.6499 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004416/0.6546, allocations: 3.591 MB / 0.6534 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001776/0.6548, allocations: 45.7 kB / 0.6535 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.6566, allocations: 2.838 MB / 0.6563 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005305/0.6571, allocations: 0.5517 MB / 0.6568 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/0.6583, allocations: 1.059 MB / 0.6578 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.6584, allocations: 305.1 kB / 0.6581 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.6609, allocations: 1.704 MB / 0.6598 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004425/0.6653, allocations: 5.067 MB / 0.6647 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007928/0.6733, allocations: 7.336 MB / 0.6719 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.833e-05/0.6734, allocations: 32 kB / 0.6719 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01148/0.6849, allocations: 6.735 MB / 0.6785 GB, free: 4.426 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.685, allocations: 56 kB / 0.6786 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/0.6852, allocations: 116 kB / 0.6787 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.6862, allocations: 438.9 kB / 0.6791 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/0.69, allocations: 1.209 MB / 0.6803 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/0.6942, allocations: 3.59 MB / 0.6838 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003638/0.6979, allocations: 287.5 kB / 0.684 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007717/0.6987, allocations: 332 kB / 0.6844 GB, free: 14.29 MB / 0.545 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.005043/0.7037, allocations: 1.951 MB / 0.6863 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.7048, allocations: 304 kB / 0.6866 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/0.7093, allocations: 1.886 MB / 0.6884 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.689e-05/0.7094, allocations: 12 kB / 0.6884 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.7094, allocations: 8 kB / 0.6884 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.7094, allocations: 7.984 kB / 0.6884 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/0.7235, allocations: 5.765 MB / 0.6941 GB, free: 4.258 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.7235, allocations: 0 / 0.6941 GB, free: 4.258 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.7245, allocations: 207.7 kB / 0.6943 GB, free: 4.055 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/0.7253, allocations: 253 kB / 0.6945 GB, free: 3.805 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.7254, allocations: 31.97 kB / 0.6945 GB, free: 3.773 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/0.7289, allocations: 3.173 MB / 0.6976 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.7289, allocations: 0 / 0.6976 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.7347, allocations: 3.946 MB / 0.7015 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009218/0.7356, allocations: 357 kB / 0.7018 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005494/0.7362, allocations: 20 kB / 0.7018 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.7375, allocations: 67.92 kB / 0.7019 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.7378, allocations: 104.5 kB / 0.702 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.7379, allocations: 39.98 kB / 0.702 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0038/0.7417, allocations: 2.242 MB / 0.7042 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7417, allocations: 0 / 0.7042 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004243/0.7459, allocations: 0.8124 MB / 0.705 GB, free: 8.84 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.006208/0.7522, allocations: 4.579 MB / 0.7095 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006923/0.7591, allocations: 4.083 MB / 0.7135 GB, free: 152 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.7591, allocations: 4 kB / 0.7135 GB, free: 148 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.7609, allocations: 1.162 MB / 0.7146 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.7638, allocations: 408.7 kB / 0.715 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3215/1.085, allocations: 37.76 MB / 0.7519 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002227/1.088, allocations: 3.036 MB / 0.7548 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003071/1.091, allocations: 1.709 MB / 0.7565 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/1.092, allocations: 1.659 MB / 0.7581 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.264e-06/1.092, allocations: 4 kB / 0.7581 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08029/1.173, allocations: 57.25 MB / 0.814 GB, free: 98.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.28/23.45, allocations: 14.97 kB / 0.8141 GB, free: 98.29 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches