Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001685/0.001685, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.304/2.304, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3988/0.3988, allocations: 46.1 MB / 344.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001905, allocations: 82.67 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.1805, allocations: 62.45 MB / 479.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.5252/0.7058, allocations: 64.72 MB / 0.5319 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06509/0.771, allocations: 13.01 MB / 0.5446 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02942/0.8006, allocations: 292.5 kB / 0.5449 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01369/0.8143, allocations: 3.706 MB / 0.5485 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01186/0.8263, allocations: 2.051 MB / 0.5505 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004852/0.8312, allocations: 0.9385 MB / 0.5514 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02019/0.8514, allocations: 8.668 MB / 0.5599 GB, free: 5.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0115/0.863, allocations: 4.517 MB / 0.5643 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0057/0.8688, allocations: 1.736 MB / 0.566 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008469/0.8773, allocations: 2.812 MB / 0.5687 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002174/0.8796, allocations: 288 kB / 0.569 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006124/0.8857, allocations: 1.404 MB / 0.5704 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005502/0.8913, allocations: 2.353 MB / 0.5727 GB, free: 8.336 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00854/0.8999, allocations: 2.605 MB / 0.5752 GB, free: 5.715 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.9148, allocations: 6.775 MB / 0.5818 GB, free: 14.92 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/0.9149, allocations: 0 / 0.5818 GB, free: 14.92 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.9149, allocations: 4 kB / 0.5818 GB, free: 14.92 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004157/0.9153, allocations: 0 / 0.5818 GB, free: 14.92 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02972/0.9451, allocations: 6.012 MB / 0.5877 GB, free: 8.836 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.73e-05/0.9452, allocations: 12.03 kB / 0.5877 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02179/0.967, allocations: 2.54 MB / 0.5902 GB, free: 6.273 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.9835, allocations: 3.668 MB / 0.5938 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005629/0.9841, allocations: 279.7 kB / 0.5941 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002866/0.987, allocations: 375.7 kB / 0.5944 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04379/1.031, allocations: 11.61 MB / 0.6057 GB, free: 5.449 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004655/1.031, allocations: 63.42 kB / 0.6058 GB, free: 5.387 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002335/1.034, allocations: 179.8 kB / 0.606 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007383/1.041, allocations: 2.151 MB / 0.6081 GB, free: 3.059 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03661/1.078, allocations: 9.621 MB / 0.6175 GB, free: 9.414 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1078/1.186, allocations: 45.97 MB / 0.6624 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0195/1.205, allocations: 3.907 MB / 0.6662 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005569/1.211, allocations: 2.143 MB / 0.6683 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02104/1.232, allocations: 5.859 MB / 0.674 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/1.232, allocations: 70.94 kB / 0.6741 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 8.947e-06/1.232, allocations: 0 / 0.6741 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of matching and sorting (n=162): time 0.08936/1.322, allocations: 17.36 MB / 0.691 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003563/1.322, allocations: 226.1 kB / 0.6912 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02114/1.343, allocations: 5.619 MB / 0.6967 GB, free: 6.465 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00067/1.344, allocations: 49.69 kB / 0.6968 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.006023/1.35, allocations: 3.705 MB / 0.7004 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.352, allocations: 0.6599 MB / 0.701 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007105/1.359, allocations: 1.415 MB / 0.7024 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002501/1.359, allocations: 309.1 kB / 0.7027 GB, free: 264 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007628/1.367, allocations: 2.286 MB / 0.7049 GB, free: 13.96 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/1.381, allocations: 6.555 MB / 0.7113 GB, free: 5.293 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4974/1.879, allocations: 9.505 MB / 0.7206 GB, free: 185.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002529/1.879, allocations: 44.23 kB / 0.7207 GB, free: 185.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=898) (initialization): time 0.03693/1.916, allocations: 9.582 MB / 0.73 GB, free: 183.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003476/1.917, allocations: 69.31 kB / 0.7301 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006332/1.917, allocations: 150.1 kB / 0.7302 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00647/1.924, allocations: 1.233 MB / 0.7314 GB, free: 183 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01053/1.934, allocations: 1.558 MB / 0.733 GB, free: 182.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/1.95, allocations: 7.894 MB / 0.7407 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009427/1.96, allocations: 367.8 kB / 0.741 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002163/1.962, allocations: 418.6 kB / 0.7414 GB, free: 178.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (836): * Single equations (assignments): 829 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008896/1.971, allocations: 2.466 MB / 0.7438 GB, free: 177 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002332/1.973, allocations: 452.6 kB / 0.7443 GB, free: 177 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.983, allocations: 3.387 MB / 0.7476 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-05/1.984, allocations: 22.78 kB / 0.7476 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.03e-05/1.984, allocations: 3.938 kB / 0.7476 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.166e-05/1.984, allocations: 11.34 kB / 0.7476 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02875/2.012, allocations: 8.202 MB / 0.7556 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-05/2.013, allocations: 7.719 kB / 0.7556 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/2.015, allocations: 252.7 kB / 0.7559 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004226/2.019, allocations: 1.005 MB / 0.7568 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004485/2.019, allocations: 30.73 kB / 0.7569 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/2.03, allocations: 7.23 MB / 0.7639 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/2.03, allocations: 7.938 kB / 0.7639 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/2.043, allocations: 5.851 MB / 0.7696 GB, free: 159.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002379/2.046, allocations: 0.5224 MB / 0.7702 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001979/2.048, allocations: 27.94 kB / 0.7702 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003804/2.052, allocations: 92.75 kB / 0.7703 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006709/2.052, allocations: 92.81 kB / 0.7704 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/2.053, allocations: 63.59 kB / 0.7704 GB, free: 158.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01105/2.064, allocations: 3.588 MB / 0.7739 GB, free: 155.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.042e-06/2.064, allocations: 0 / 0.7739 GB, free: 155.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01207/2.076, allocations: 1.148 MB / 0.775 GB, free: 154.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (120): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (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.001171/2.077, allocations: 162.2 kB / 0.7752 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01275/2.09, allocations: 5.536 MB / 0.7806 GB, free: 148.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/2.09, allocations: 0 / 0.7806 GB, free: 148.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003735/2.094, allocations: 1.62 MB / 0.7822 GB, free: 146.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008606/2.102, allocations: 0.5721 MB / 0.7827 GB, free: 146.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/2.137, allocations: 13.51 MB / 0.7959 GB, free: 132.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009142/2.146, allocations: 3.748 MB / 0.7996 GB, free: 128.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/2.148, allocations: 339.4 kB / 0.7999 GB, free: 128.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.663e-06/2.148, allocations: 0 / 0.7999 GB, free: 128.5 MB / 0.545 GB Notification: Performance of Templates: time 0.2381/2.387, allocations: 111.6 MB / 0.9089 GB, free: 16.94 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches