Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2") translateModel(ModelicaTest.MultiBody.Forces.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2204/0.2204, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 67.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1273, allocations: 62.45 MB / 481.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.01566/0.143, allocations: 15.41 MB / 496.9 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.1539, allocations: 5.061 MB / 0.4902 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.1568, allocations: 103.7 kB / 0.4903 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008187/0.1651, allocations: 4.992 MB / 0.4951 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006499/0.1716, allocations: 2.501 MB / 0.4976 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.1747, allocations: 1.248 MB / 0.4988 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2991/0.4738, allocations: 7.913 MB / 0.5065 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00937/0.4832, allocations: 5.951 MB / 0.5123 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006868/0.4901, allocations: 2.502 MB / 0.5148 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007367/0.4975, allocations: 3.43 MB / 0.5181 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002102/0.4996, allocations: 0.5347 MB / 0.5186 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004411/0.504, allocations: 1.548 MB / 0.5202 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004733/0.5088, allocations: 3.128 MB / 0.5232 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006152/0.515, allocations: 3.462 MB / 0.5266 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.5275, allocations: 10.79 MB / 0.5371 GB, free: 5.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.5275, allocations: 0 / 0.5371 GB, free: 5.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5275, allocations: 4 kB / 0.5371 GB, free: 5.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004136/0.528, allocations: 0 / 0.5371 GB, free: 5.609 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: 2127 * Number of variables: 2127 Notification: Performance of Generate backend data structure: time 0.02303/0.551, allocations: 7.489 MB / 0.5444 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.5511, allocations: 13.19 kB / 0.5445 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0152/0.5663, allocations: 3.047 MB / 0.5474 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.5791, allocations: 4.799 MB / 0.5521 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000365/0.5795, allocations: 362.5 kB / 0.5525 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002168/0.5817, allocations: 498.6 kB / 0.5529 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02822/0.6099, allocations: 14.26 MB / 0.5669 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002697/0.6102, allocations: 71.59 kB / 0.5669 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007456/0.611, allocations: 225.8 kB / 0.5672 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003991/0.615, allocations: 2.539 MB / 0.5696 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02449/0.6395, allocations: 11.78 MB / 0.5811 GB, free: 12.06 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07538/0.7149, allocations: 55.67 MB / 0.6355 GB, free: 3.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.7271, allocations: 4.685 MB / 0.6401 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004234/0.7314, allocations: 2.939 MB / 0.6429 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.7316, allocations: 34.73 kB / 0.643 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.577e-05/0.7317, allocations: 66.11 kB / 0.643 GB, free: 11.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=190): time 6.893e-06/0.7317, allocations: 0 / 0.643 GB, free: 11.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=208): time 0.05889/0.7906, allocations: 23.22 MB / 0.6657 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.7908, allocations: 260.2 kB / 0.666 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/0.8017, allocations: 6.711 MB / 0.6725 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000705/0.8025, allocations: 53.7 kB / 0.6726 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003859/0.8064, allocations: 4.463 MB / 0.6769 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/0.8078, allocations: 0.8361 MB / 0.6777 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002534/0.8104, allocations: 1.673 MB / 0.6794 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.8105, allocations: 301.1 kB / 0.6797 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004212/0.8147, allocations: 2.877 MB / 0.6825 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007596/0.8223, allocations: 7.792 MB / 0.6901 GB, free: 9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.8354, allocations: 11.43 MB / 0.7012 GB, free: 11.54 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/0.8355, allocations: 52 kB / 0.7013 GB, free: 11.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=1057) (initialization): time 0.3241/1.16, allocations: 11.89 MB / 0.7129 GB, free: 177.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/1.16, allocations: 80.8 kB / 0.713 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004096/1.16, allocations: 176.2 kB / 0.7132 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00616/1.166, allocations: 1.766 MB / 0.7149 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008012/1.175, allocations: 1.918 MB / 0.7168 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/1.191, allocations: 12.39 MB / 0.7289 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008061/1.199, allocations: 445.6 kB / 0.7293 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/1.201, allocations: 493.2 kB / 0.7297 GB, free: 171.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce1.arrow.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce.arrow.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (994): * Single equations (assignments): 988 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007052/1.208, allocations: 2.964 MB / 0.7326 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/1.21, allocations: 0.5402 MB / 0.7332 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009826/1.219, allocations: 4.846 MB / 0.7379 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.583e-05/1.22, allocations: 25.55 kB / 0.7379 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.892e-05/1.22, allocations: 8.156 kB / 0.7379 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.589e-05/1.22, allocations: 13.56 kB / 0.7379 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02164/1.241, allocations: 11.04 MB / 0.7487 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.241, allocations: 0 / 0.7487 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/1.243, allocations: 394.5 kB / 0.7491 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003959/1.247, allocations: 1.474 MB / 0.7505 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003356/1.248, allocations: 39.62 kB / 0.7506 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.259, allocations: 11.49 MB / 0.7618 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/1.259, allocations: 2.672 kB / 0.7618 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/1.27, allocations: 7.942 MB / 0.7696 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/1.273, allocations: 0.6029 MB / 0.7702 GB, free: 153.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001909/1.275, allocations: 39.94 kB / 0.7702 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003046/1.278, allocations: 133.2 kB / 0.7703 GB, free: 153.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005308/1.278, allocations: 123.3 kB / 0.7704 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.278, allocations: 52 kB / 0.7705 GB, free: 153 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007186/1.286, allocations: 4.277 MB / 0.7747 GB, free: 148.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.242e-06/1.286, allocations: 0 / 0.7747 GB, free: 148.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009601/1.295, allocations: 1.459 MB / 0.7761 GB, free: 147.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (160): * Single equations (assignments): 154 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,10,100.0%), (1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007321/1.296, allocations: 168.2 kB / 0.7762 GB, free: 147.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01044/1.307, allocations: 7.081 MB / 0.7832 GB, free: 140.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/1.307, allocations: 0 / 0.7832 GB, free: 140.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002702/1.309, allocations: 2.264 MB / 0.7854 GB, free: 138.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004542/1.314, allocations: 0.772 MB / 0.7861 GB, free: 137.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/1.335, allocations: 13.54 MB / 0.7994 GB, free: 123.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004851/1.34, allocations: 4.501 MB / 0.8037 GB, free: 119.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005135/1.345, allocations: 2.504 MB / 0.8062 GB, free: 116.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.346, allocations: 351.4 kB / 0.8065 GB, free: 116.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.346, allocations: 4 kB / 0.8065 GB, free: 116.4 MB / 0.545 GB Notification: Performance of Templates: time 0.08359/1.43, allocations: 50.81 MB / 0.8562 GB, free: 66.01 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces2/WorldForces2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches