Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001053, allocations: 199.2 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007726/0.0007726, allocations: 100.6 kB / 295.1 MB, free: 4.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1762/0.1762, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08669, allocations: 62.96 MB / 0.5153 GB, free: 5.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2253/0.312, allocations: 46.96 MB / 0.5612 GB, free: 9.781 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.3294, allocations: 10.38 MB / 0.5713 GB, free: 8.773 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006419/0.3359, allocations: 216 kB / 0.5715 GB, free: 8.742 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005103/0.341, allocations: 2.48 MB / 0.574 GB, free: 8.215 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01453/0.3555, allocations: 7.294 MB / 0.5811 GB, free: 5.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.3575, allocations: 0.6077 MB / 0.5817 GB, free: 5.316 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03156/0.3891, allocations: 32.16 MB / 0.6131 GB, free: 14.75 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005909/0.395, allocations: 4.216 MB / 0.6172 GB, free: 10.5 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002007/0.397, allocations: 1.125 MB / 0.6183 GB, free: 9.371 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002464/0.3995, allocations: 1.768 MB / 0.62 GB, free: 7.598 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005511/0.4001, allocations: 132 kB / 0.6201 GB, free: 7.469 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001951/0.4021, allocations: 0.9206 MB / 0.621 GB, free: 6.547 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001662/0.4037, allocations: 1.593 MB / 0.6226 GB, free: 4.949 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.4049, allocations: 0.7882 MB / 0.6234 GB, free: 4.152 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005263/0.4102, allocations: 5.393 MB / 0.6286 GB, free: 14.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4102, allocations: 0 / 0.6286 GB, free: 14.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4102, allocations: 0 / 0.6286 GB, free: 14.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002128/0.4104, allocations: 3.938 kB / 0.6286 GB, free: 14.74 MB / 426.7 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.007866/0.4183, allocations: 3.76 MB / 0.6323 GB, free: 10.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4183, allocations: 12.03 kB / 0.6323 GB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/0.4337, allocations: 2.596 MB / 0.6349 GB, free: 8.301 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005154/0.4389, allocations: 2.437 MB / 0.6372 GB, free: 5.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.4392, allocations: 221.8 kB / 0.6374 GB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.4402, allocations: 303.8 kB / 0.6377 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0137/0.4539, allocations: 9.294 MB / 0.6468 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.454, allocations: 35.66 kB / 0.6468 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003564/0.4544, allocations: 147.9 kB / 0.647 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.4571, allocations: 1.841 MB / 0.6488 GB, free: 9.328 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.4697, allocations: 7.682 MB / 0.6563 GB, free: 1.621 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0362/0.5059, allocations: 34.89 MB / 0.6904 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004262/0.5102, allocations: 2.445 MB / 0.6927 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.5118, allocations: 1.302 MB / 0.694 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003101/0.5121, allocations: 323.7 kB / 0.6943 GB, free: 9.391 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.5122, allocations: 47.06 kB / 0.6944 GB, free: 9.336 MB / 490.7 MB Notification: Performance of pre-optimization done (n=122): time 3.317e-06/0.5122, allocations: 0 / 0.6944 GB, free: 9.336 MB / 490.7 MB Notification: Performance of matching and sorting (n=140): time 0.0255/0.5377, allocations: 11.87 MB / 0.706 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.876e-05/0.5378, allocations: 200.5 kB / 0.7061 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004003/0.5418, allocations: 3.603 MB / 0.7097 GB, free: 9.484 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.542, allocations: 53.7 kB / 0.7097 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00169/0.5437, allocations: 2.942 MB / 0.7126 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004512/0.5441, allocations: 0.5478 MB / 0.7131 GB, free: 5.891 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.5443, allocations: 108 kB / 0.7132 GB, free: 5.785 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000284/0.5446, allocations: 0.5373 MB / 0.7138 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.5472, allocations: 1.822 MB / 0.7155 GB, free: 3.414 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004635/0.5518, allocations: 5.261 MB / 0.7207 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004073/0.5559, allocations: 3.008 MB / 0.7236 GB, free: 9.414 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.72e-05/0.5559, allocations: 36 kB / 0.7236 GB, free: 9.379 MB / 0.5105 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01111/0.5671, allocations: 7.314 MB / 0.7308 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/0.5672, allocations: 58.88 kB / 0.7308 GB, free: 2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.5673, allocations: 120 kB / 0.731 GB, free: 1.883 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.5688, allocations: 0.6955 MB / 0.7316 GB, free: 1.184 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00344/0.5723, allocations: 1.263 MB / 0.7329 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/0.5768, allocations: 4.062 MB / 0.7368 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.58, allocations: 315.7 kB / 0.7371 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004202/0.5804, allocations: 336 kB / 0.7375 GB, free: 11.09 MB / 0.5261 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 (672): * Single equations (assignments): 668 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002683/0.5831, allocations: 2.042 MB / 0.7395 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/0.5836, allocations: 304 kB / 0.7397 GB, free: 8.73 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004048/0.5876, allocations: 2.296 MB / 0.742 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.5876, allocations: 16 kB / 0.742 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5877, allocations: 4 kB / 0.742 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.5877, allocations: 3.984 kB / 0.742 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.187/0.7747, allocations: 6.341 MB / 0.7482 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/0.7747, allocations: 0.625 kB / 0.7482 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.776, allocations: 223.4 kB / 0.7484 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.7775, allocations: 0.5039 MB / 0.7489 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.7777, allocations: 30.66 kB / 0.7489 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004038/0.7817, allocations: 3.629 MB / 0.7525 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7817, allocations: 3.969 kB / 0.7525 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00657/0.7883, allocations: 4.456 MB / 0.7568 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007399/0.7891, allocations: 359.8 kB / 0.7572 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002727/0.7894, allocations: 23.45 kB / 0.7572 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.7905, allocations: 95.47 kB / 0.7573 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.7907, allocations: 102.1 kB / 0.7574 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.803e-05/0.7908, allocations: 40.48 kB / 0.7574 GB, free: 176 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003221/0.7941, allocations: 2.24 MB / 0.7596 GB, free: 175.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7941, allocations: 0 / 0.7596 GB, free: 175.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00393/0.798, allocations: 0.8855 MB / 0.7605 GB, free: 175.1 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003065/0.7983, allocations: 149.6 kB / 0.7606 GB, free: 175 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006471/0.8048, allocations: 4.348 MB / 0.7649 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.8049, allocations: 0 / 0.7649 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.8066, allocations: 1.253 MB / 0.7661 GB, free: 173.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/0.8089, allocations: 388.3 kB / 0.7665 GB, free: 173 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.8213, allocations: 10.31 MB / 0.7765 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.8237, allocations: 3.137 MB / 0.7796 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007176/0.8244, allocations: 262 kB / 0.7798 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of SimCode: time 9.21e-07/0.8244, allocations: 0 / 0.7798 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.07061/0.8951, allocations: 69.11 MB / 0.8473 GB, free: 101.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches