Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001056, allocations: 111.9 kB / 17.08 MB, free: 5.988 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.001126/0.001126, allocations: 195 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2034/0.2034, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 71.89 kB / 442.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1102, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01202/0.1223, allocations: 11.24 MB / 0.4995 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007967/0.1303, allocations: 4.058 MB / 0.5035 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.132, allocations: 59.88 kB / 0.5035 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005152/0.1371, allocations: 2.831 MB / 0.5063 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004766/0.142, allocations: 1.891 MB / 0.5081 GB, free: 7.629 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.1438, allocations: 0.7057 MB / 0.5088 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00567/0.1494, allocations: 4.179 MB / 0.5129 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004935/0.1544, allocations: 3.894 MB / 0.5167 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00265/0.1571, allocations: 1.592 MB / 0.5183 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003254/0.1603, allocations: 2.235 MB / 0.5205 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001147/0.1615, allocations: 372 kB / 0.5208 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002796/0.1643, allocations: 1.241 MB / 0.522 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002554/0.1669, allocations: 2.057 MB / 0.524 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004144/0.171, allocations: 2.389 MB / 0.5264 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2508/0.4218, allocations: 7.876 MB / 0.5341 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4219, allocations: 0 / 0.5341 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.4219, allocations: 0.9688 kB / 0.5341 GB, free: 15.47 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002539/0.4221, allocations: 0.7812 kB / 0.5341 GB, free: 15.47 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: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01242/0.4346, allocations: 4.975 MB / 0.5389 GB, free: 13.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.4346, allocations: 14.02 kB / 0.5389 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01689/0.4515, allocations: 2.539 MB / 0.5414 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007375/0.4589, allocations: 2.73 MB / 0.5441 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003298/0.4593, allocations: 254.2 kB / 0.5443 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.4609, allocations: 339.3 kB / 0.5446 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.4791, allocations: 10.45 MB / 0.5548 GB, free: 9.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001267/0.4793, allocations: 41.45 kB / 0.5549 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004755/0.4798, allocations: 160.4 kB / 0.555 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00318/0.483, allocations: 2.093 MB / 0.5571 GB, free: 9.461 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/0.4985, allocations: 8.741 MB / 0.5656 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04398/0.5426, allocations: 38.41 MB / 0.6031 GB, free: 1.875 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005779/0.5484, allocations: 3.063 MB / 0.6061 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002339/0.5507, allocations: 1.753 MB / 0.6078 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003835/0.5511, allocations: 331.6 kB / 0.6081 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.5512, allocations: 51.56 kB / 0.6082 GB, free: 12.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=176): time 3.897e-06/0.5512, allocations: 3.75 kB / 0.6082 GB, free: 12.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=194): time 0.03208/0.5833, allocations: 14.77 MB / 0.6226 GB, free: 13.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.753e-05/0.5834, allocations: 201.2 kB / 0.6228 GB, free: 13.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.5882, allocations: 3.848 MB / 0.6266 GB, free: 9.566 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002936/0.5885, allocations: 49.7 kB / 0.6266 GB, free: 9.512 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.5904, allocations: 3.188 MB / 0.6297 GB, free: 6.336 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007275/0.5912, allocations: 0.7405 MB / 0.6304 GB, free: 5.602 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001475/0.5926, allocations: 1.242 MB / 0.6317 GB, free: 4.348 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.5927, allocations: 305.1 kB / 0.6319 GB, free: 4.047 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003301/0.596, allocations: 2.265 MB / 0.6342 GB, free: 1.777 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005422/0.6015, allocations: 5.943 MB / 0.64 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.6116, allocations: 8.844 MB / 0.6486 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.262e-05/0.6117, allocations: 36 kB / 0.6486 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01609/0.6278, allocations: 8.477 MB / 0.6569 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.628, allocations: 63.94 kB / 0.657 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/0.6282, allocations: 136 kB / 0.6571 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.6299, allocations: 0.6805 MB / 0.6578 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004825/0.6347, allocations: 1.443 MB / 0.6592 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.6402, allocations: 4.366 MB / 0.6634 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005316/0.6456, allocations: 366.9 kB / 0.6638 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/0.6467, allocations: 376 kB / 0.6641 GB, free: 132 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (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 (764): * Single equations (assignments): 760 * 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.004359/0.651, allocations: 2.232 MB / 0.6663 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008878/0.6519, allocations: 347.5 kB / 0.6667 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006686/0.6586, allocations: 3.246 MB / 0.6698 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.682e-05/0.6587, allocations: 27.94 kB / 0.6699 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/0.6587, allocations: 7.984 kB / 0.6699 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/0.6587, allocations: 7.969 kB / 0.6699 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/0.676, allocations: 8.132 MB / 0.6778 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.6761, allocations: 1.094 kB / 0.6778 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.6778, allocations: 348 kB / 0.6781 GB, free: 1.746 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.6793, allocations: 0.5052 MB / 0.6786 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002202/0.6795, allocations: 31.98 kB / 0.6787 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004705/0.6843, allocations: 3.924 MB / 0.6825 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6843, allocations: 7.969 kB / 0.6825 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/0.6943, allocations: 5.93 MB / 0.6883 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/0.6963, allocations: 0.6372 MB / 0.6889 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008775/0.6972, allocations: 31.28 kB / 0.689 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/0.6992, allocations: 123.8 kB / 0.6891 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.6995, allocations: 129.1 kB / 0.6892 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/0.6997, allocations: 55.98 kB / 0.6892 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005114/0.7048, allocations: 2.393 MB / 0.6916 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7048, allocations: 4 kB / 0.6916 GB, free: 3.816 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005748/0.7106, allocations: 1.027 MB / 0.6926 GB, free: 2.789 MB / 0.5294 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 (164): * Single equations (assignments): 160 * 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.0005204/0.7111, allocations: 162.8 kB / 0.6927 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009397/0.7205, allocations: 5.371 MB / 0.698 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.7206, allocations: 0 / 0.698 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002907/0.7235, allocations: 1.712 MB / 0.6997 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/0.7269, allocations: 429.2 kB / 0.7001 GB, free: 11.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01991/0.7469, allocations: 10 MB / 0.7098 GB, free: 1.105 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005226/0.7521, allocations: 3.449 MB / 0.7132 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001432/0.7536, allocations: 307.4 kB / 0.7135 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.7536, allocations: 0 / 0.7135 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of Templates: time 0.3212/1.075, allocations: 79.54 MB / 0.7912 GB, free: 197 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches