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: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_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_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001265, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2065/0.2065, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 76.44 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 62.45 MB / 481.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01007/0.1251, allocations: 9.482 MB / 490.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006424/0.1315, allocations: 3.825 MB / 494.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008716/0.1324, allocations: 51.88 kB / 494.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00447/0.137, allocations: 2.761 MB / 497.6 MB, free: 4.367 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.1411, allocations: 1.615 MB / 499.2 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.1427, allocations: 0.7135 MB / 499.9 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006105/0.1489, allocations: 3.88 MB / 0.492 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004662/0.1536, allocations: 3.686 MB / 0.4956 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002264/0.1559, allocations: 1.406 MB / 0.497 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002247/0.1581, allocations: 1.893 MB / 0.4988 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005295/0.1587, allocations: 316 kB / 0.4991 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.1607, allocations: 1.178 MB / 0.5003 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.1622, allocations: 1.749 MB / 0.502 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.164, allocations: 2.016 MB / 0.5039 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1976/0.3617, allocations: 6.662 MB / 0.5104 GB, free: 21.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.3617, allocations: 0 / 0.5104 GB, free: 21.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.3617, allocations: 0 / 0.5104 GB, free: 21.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003072/0.3621, allocations: 1.125 kB / 0.5104 GB, free: 21.94 MB / 382.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.01004/0.3721, allocations: 4.332 MB / 0.5147 GB, free: 20.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3722, allocations: 9.844 kB / 0.5147 GB, free: 20.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.3863, allocations: 2.449 MB / 0.5171 GB, free: 19.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006279/0.3926, allocations: 2.457 MB / 0.5195 GB, free: 19.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.3928, allocations: 216.6 kB / 0.5197 GB, free: 19.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000847/0.3936, allocations: 296.4 kB / 0.52 GB, free: 19.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/0.4098, allocations: 8.723 MB / 0.5285 GB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/0.41, allocations: 48.92 kB / 0.5285 GB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/0.4104, allocations: 139.5 kB / 0.5287 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002408/0.4129, allocations: 1.65 MB / 0.5303 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.4243, allocations: 7.219 MB / 0.5373 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03399/0.4583, allocations: 33.41 MB / 0.5699 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004613/0.463, allocations: 2.447 MB / 0.5723 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.4647, allocations: 1.281 MB / 0.5736 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003547/0.465, allocations: 325.1 kB / 0.5739 GB, free: 7.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.4651, allocations: 45.75 kB / 0.5739 GB, free: 7.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.848e-06/0.4651, allocations: 4 kB / 0.5739 GB, free: 7.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02631/0.4914, allocations: 11.45 MB / 0.5851 GB, free: 11.72 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/0.4915, allocations: 204.1 kB / 0.5853 GB, free: 11.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/0.4961, allocations: 3.573 MB / 0.5888 GB, free: 7.914 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.4963, allocations: 45.7 kB / 0.5889 GB, free: 7.863 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.498, allocations: 2.822 MB / 0.5916 GB, free: 5.062 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.4985, allocations: 0.5529 MB / 0.5921 GB, free: 4.516 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.4999, allocations: 1.102 MB / 0.5932 GB, free: 3.402 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.5, allocations: 309.1 kB / 0.5935 GB, free: 3.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/0.5026, allocations: 1.806 MB / 0.5953 GB, free: 1.285 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004849/0.5074, allocations: 5.184 MB / 0.6003 GB, free: 10.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007906/0.5153, allocations: 7.519 MB / 0.6077 GB, free: 1.762 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.213e-05/0.5154, allocations: 37.42 kB / 0.6077 GB, free: 1.727 MB / 446.1 MB Notification: Performance of matching and sorting (n=701) (initialization): time 0.0117/0.5271, allocations: 7.228 MB / 0.6148 GB, free: 10.67 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/0.5273, allocations: 56 kB / 0.6148 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.5274, allocations: 120.1 kB / 0.6149 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.5289, allocations: 0.676 MB / 0.6156 GB, free: 9.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003475/0.5324, allocations: 1.236 MB / 0.6168 GB, free: 8.582 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005293/0.5377, allocations: 4.349 MB / 0.6211 GB, free: 4.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/0.5417, allocations: 295.6 kB / 0.6213 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006438/0.5424, allocations: 340 kB / 0.6217 GB, free: 3.48 MB / 462.1 MB 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 (663): * Single equations (assignments): 659 * 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 {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00318/0.5456, allocations: 1.957 MB / 0.6236 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000561/0.5462, allocations: 296.2 kB / 0.6239 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004381/0.5505, allocations: 2.256 MB / 0.6261 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/0.5506, allocations: 16 kB / 0.6261 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.5506, allocations: 4 kB / 0.6261 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.5506, allocations: 3.984 kB / 0.6261 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.5624, allocations: 6.13 MB / 0.6321 GB, free: 8.762 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.5624, allocations: 0 / 0.6321 GB, free: 8.762 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.5635, allocations: 211.7 kB / 0.6323 GB, free: 8.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.5648, allocations: 0.5041 MB / 0.6328 GB, free: 8.047 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.565, allocations: 19.98 kB / 0.6328 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004872/0.5698, allocations: 3.923 MB / 0.6366 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5699, allocations: 0 / 0.6366 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0067/0.5766, allocations: 4.405 MB / 0.6409 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.5775, allocations: 357 kB / 0.6413 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/0.5779, allocations: 16 kB / 0.6413 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.579, allocations: 83.97 kB / 0.6414 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002641/0.5793, allocations: 100.4 kB / 0.6415 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.5794, allocations: 43.34 kB / 0.6415 GB, free: 14.94 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003184/0.5826, allocations: 2.225 MB / 0.6437 GB, free: 12.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5826, allocations: 0 / 0.6437 GB, free: 12.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003923/0.5865, allocations: 0.8476 MB / 0.6445 GB, free: 11.88 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 (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.0003483/0.5869, allocations: 156.6 kB / 0.6446 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006484/0.5934, allocations: 4.302 MB / 0.6488 GB, free: 7.434 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5934, allocations: 0 / 0.6488 GB, free: 7.434 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.5952, allocations: 1.232 MB / 0.6501 GB, free: 6.191 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.5974, allocations: 384.5 kB / 0.6504 GB, free: 5.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/0.611, allocations: 7.947 MB / 0.6582 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003103/0.6142, allocations: 3.03 MB / 0.6611 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003551/0.6177, allocations: 1.71 MB / 0.6628 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/0.6183, allocations: 215.4 kB / 0.663 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of SimCode: time 6.71e-07/0.6183, allocations: 2.625 kB / 0.663 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of Templates: time 0.04947/0.6678, allocations: 25.28 MB / 0.6877 GB, free: 15.8 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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