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.0009642/0.0009643, allocations: 195.5 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 244.1 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007621/0.0007622, allocations: 100.5 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.292/0.292, allocations: 44.82 MB / 392.9 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002611, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2676, allocations: 62.95 MB / 0.5165 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3857, allocations: 111.3 MB / 0.6251 GB, free: 10.11 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.386, allocations: 79.95 kB / 0.6252 GB, free: 10.03 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3776/0.7636, allocations: 82.87 MB / 0.7061 GB, free: 101.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.7636, allocations: 0 / 0.7061 GB, free: 101.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002364/0.7639, allocations: 84.16 kB / 0.7062 GB, free: 101.5 MB / 490.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.01162/0.7755, allocations: 3.96 MB / 0.7101 GB, free: 99.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.7756, allocations: 10.47 kB / 0.7101 GB, free: 99.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0145/0.7901, allocations: 3.593 MB / 0.7136 GB, free: 99.37 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008123/0.7982, allocations: 3.247 MB / 0.7168 GB, free: 98.72 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/0.7986, allocations: 312.1 kB / 0.7171 GB, free: 98.71 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001672/0.8003, allocations: 420.7 kB / 0.7175 GB, free: 98.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.8158, allocations: 9.618 MB / 0.7268 GB, free: 93.65 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000178/0.816, allocations: 58.59 kB / 0.7269 GB, free: 93.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009553/0.817, allocations: 205.2 kB / 0.7271 GB, free: 93.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009079/0.8179, allocations: 0.8601 MB / 0.7279 GB, free: 93.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01195/0.8299, allocations: 7.617 MB / 0.7354 GB, free: 90.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03618/0.8661, allocations: 43.22 MB / 0.7776 GB, free: 57.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/0.8701, allocations: 2.387 MB / 0.7799 GB, free: 55.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.8714, allocations: 1.189 MB / 0.7811 GB, free: 55.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002737/0.8717, allocations: 323.8 kB / 0.7814 GB, free: 55.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.8718, allocations: 49.88 kB / 0.7814 GB, free: 55.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=122): time 5.15e-06/0.8718, allocations: 0 / 0.7814 GB, free: 55.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=140): time 0.02228/0.8941, allocations: 10.65 MB / 0.7918 GB, free: 47.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.8942, allocations: 200.6 kB / 0.792 GB, free: 47 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/0.8993, allocations: 3.597 MB / 0.7955 GB, free: 43.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/0.8995, allocations: 45.7 kB / 0.7956 GB, free: 43.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.9008, allocations: 2.97 MB / 0.7985 GB, free: 40.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000457/0.9013, allocations: 0.5582 MB / 0.799 GB, free: 39.83 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/0.9016, allocations: 109.6 kB / 0.7991 GB, free: 39.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002499/0.9019, allocations: 0.5214 MB / 0.7996 GB, free: 39.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002272/0.9041, allocations: 1.693 MB / 0.8013 GB, free: 37.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003352/0.9075, allocations: 5.121 MB / 0.8063 GB, free: 30.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005753/0.9133, allocations: 7.4 MB / 0.8135 GB, free: 21.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.096e-05/0.9134, allocations: 32 kB / 0.8136 GB, free: 21.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=693) (initialization): time 0.008907/0.9223, allocations: 6.72 MB / 0.8201 GB, free: 14.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.101e-05/0.9224, allocations: 60 kB / 0.8202 GB, free: 14.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.9225, allocations: 120 kB / 0.8203 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000664/0.9232, allocations: 357.1 kB / 0.8206 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/0.9263, allocations: 1.24 MB / 0.8218 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.929, allocations: 2.991 MB / 0.8248 GB, free: 9.887 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/0.9321, allocations: 299.7 kB / 0.8251 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004745/0.9326, allocations: 332 kB / 0.8254 GB, free: 9.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,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 (655): * Single equations (assignments): 651 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002762/0.9354, allocations: 2.054 MB / 0.8274 GB, free: 7.211 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004596/0.9359, allocations: 308 kB / 0.8277 GB, free: 6.906 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002873/0.9388, allocations: 1.816 MB / 0.8294 GB, free: 5.078 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.9388, allocations: 19.98 kB / 0.8295 GB, free: 5.059 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.9388, allocations: 0 / 0.8295 GB, free: 5.059 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.9388, allocations: 7.984 kB / 0.8295 GB, free: 5.051 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009324/0.9481, allocations: 5.779 MB / 0.8351 GB, free: 15.23 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.9482, allocations: 8 kB / 0.8351 GB, free: 15.22 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.9492, allocations: 227.7 kB / 0.8353 GB, free: 15 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005076/0.9497, allocations: 180.7 kB / 0.8355 GB, free: 14.82 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.972e-05/0.9498, allocations: 27.98 kB / 0.8355 GB, free: 14.79 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.9525, allocations: 2.561 MB / 0.838 GB, free: 12.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.9525, allocations: 7.656 kB / 0.838 GB, free: 12.1 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005237/0.9578, allocations: 3.839 MB / 0.8418 GB, free: 8.227 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007747/0.9586, allocations: 353 kB / 0.8421 GB, free: 7.859 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005968/0.9592, allocations: 30.8 kB / 0.8422 GB, free: 7.832 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.9605, allocations: 76 kB / 0.8422 GB, free: 7.758 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.9608, allocations: 100.4 kB / 0.8423 GB, free: 7.66 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.9609, allocations: 39.98 kB / 0.8424 GB, free: 7.621 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004029/0.9649, allocations: 2.227 MB / 0.8445 GB, free: 5.406 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9649, allocations: 4 kB / 0.8445 GB, free: 5.402 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004769/0.9697, allocations: 0.8632 MB / 0.8454 GB, free: 4.539 MB / 0.4949 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.0004531/0.9702, allocations: 155 kB / 0.8455 GB, free: 4.383 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.006718/0.9769, allocations: 4.078 MB / 0.8495 GB, free: 332 kB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.9769, allocations: 0 / 0.8495 GB, free: 332 kB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.9787, allocations: 1.155 MB / 0.8506 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/0.9816, allocations: 405 kB / 0.851 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01675/0.9983, allocations: 10.17 MB / 0.861 GB, free: 4.559 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004344/1.003, allocations: 3.16 MB / 0.8641 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008664/1.004, allocations: 263.4 kB / 0.8643 GB, free: 1.121 MB / 0.5105 GB Notification: Performance of SimCode: time 6.71e-07/1.004, allocations: 0 / 0.8643 GB, free: 1.121 MB / 0.5105 GB Notification: Performance of Templates: time 0.3056/1.309, allocations: 68.66 MB / 0.9314 GB, free: 124.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/jenkins1/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