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.0009227/0.0009227, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1979/0.1979, allocations: 46.18 MB / 345.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 63.57 MB / 483.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.3094/0.429, allocations: 86.21 MB / 0.5566 GB, free: 8.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04127/0.4703, allocations: 16.91 MB / 0.5731 GB, free: 11.17 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0187/0.489, allocations: 383.1 kB / 0.5735 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.4915, allocations: 0.5946 MB / 0.5741 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006757/0.4983, allocations: 2.378 MB / 0.5764 GB, free: 7.809 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.5011, allocations: 1.038 MB / 0.5774 GB, free: 6.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01429/0.5154, allocations: 11.37 MB / 0.5885 GB, free: 11.38 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.5273, allocations: 8.033 MB / 0.5963 GB, free: 3.238 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003566/0.5309, allocations: 1.801 MB / 0.5981 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00489/0.5358, allocations: 3.153 MB / 0.6012 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001223/0.5371, allocations: 212 kB / 0.6014 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.5402, allocations: 1.303 MB / 0.6026 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003891/0.5442, allocations: 2.758 MB / 0.6053 GB, free: 9.988 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006898/0.5511, allocations: 3.021 MB / 0.6083 GB, free: 6.941 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009735/0.5609, allocations: 8.347 MB / 0.6164 GB, free: 14.57 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.5609, allocations: 0 / 0.6164 GB, free: 14.57 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.5609, allocations: 3.984 kB / 0.6164 GB, free: 14.57 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003988/0.5613, allocations: 0 / 0.6164 GB, free: 14.57 MB / 462.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.01522/0.5765, allocations: 6.157 MB / 0.6225 GB, free: 8.328 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.5766, allocations: 12.88 kB / 0.6225 GB, free: 8.316 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01584/0.5924, allocations: 3.108 MB / 0.6255 GB, free: 5.195 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/0.603, allocations: 4.724 MB / 0.6301 GB, free: 400 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003323/0.6034, allocations: 365.7 kB / 0.6305 GB, free: 32 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/0.6051, allocations: 488.1 kB / 0.6309 GB, free: 15.55 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02909/0.6342, allocations: 14.28 MB / 0.6449 GB, free: 248 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003457/0.6346, allocations: 83.14 kB / 0.645 GB, free: 164 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001547/0.6362, allocations: 227.8 kB / 0.6452 GB, free: 15.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00459/0.6408, allocations: 2.539 MB / 0.6477 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02496/0.6658, allocations: 11.8 MB / 0.6592 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3362/1.002, allocations: 55.94 MB / 0.7138 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01295/1.015, allocations: 4.693 MB / 0.7184 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004437/1.019, allocations: 2.938 MB / 0.7213 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001968/1.02, allocations: 39.98 kB / 0.7213 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/1.02, allocations: 58.55 kB / 0.7214 GB, free: 143 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=190): time 6.613e-06/1.02, allocations: 0 / 0.7214 GB, free: 143 MB / 0.5294 GB Notification: Performance of matching and sorting (n=208): time 0.06481/1.085, allocations: 23.19 MB / 0.744 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/1.085, allocations: 255 kB / 0.7443 GB, free: 135 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008631/1.093, allocations: 6.709 MB / 0.7508 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005303/1.094, allocations: 56.02 kB / 0.7509 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002665/1.097, allocations: 4.463 MB / 0.7552 GB, free: 128 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.098, allocations: 0.8328 MB / 0.756 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008884/1.099, allocations: 0.7145 MB / 0.7567 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.136e-05/1.099, allocations: 306.5 kB / 0.757 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/1.102, allocations: 2.885 MB / 0.7598 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005854/1.108, allocations: 7.794 MB / 0.7675 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/1.119, allocations: 11.44 MB / 0.7786 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/1.119, allocations: 48 kB / 0.7787 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1057) (initialization): time 0.02145/1.14, allocations: 11.89 MB / 0.7903 GB, free: 88.98 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003103/1.141, allocations: 76 kB / 0.7904 GB, free: 88.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004216/1.141, allocations: 172 kB / 0.7905 GB, free: 88.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005016/1.146, allocations: 1.775 MB / 0.7922 GB, free: 86.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005914/1.152, allocations: 1.91 MB / 0.7941 GB, free: 85.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/1.164, allocations: 11.54 MB / 0.8054 GB, free: 73.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006558/1.171, allocations: 443.2 kB / 0.8058 GB, free: 72.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001351/1.172, allocations: 489.1 kB / 0.8063 GB, free: 72.23 MB / 0.5294 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.005424/1.177, allocations: 2.962 MB / 0.8092 GB, free: 69.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/1.179, allocations: 0.536 MB / 0.8097 GB, free: 68.72 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009203/1.188, allocations: 4.853 MB / 0.8144 GB, free: 63.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.792e-05/1.188, allocations: 24 kB / 0.8145 GB, free: 63.81 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.171e-05/1.188, allocations: 12.5 kB / 0.8145 GB, free: 63.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.82e-05/1.188, allocations: 7.969 kB / 0.8145 GB, free: 63.79 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02009/1.208, allocations: 11.08 MB / 0.8253 GB, free: 52.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.855e-05/1.208, allocations: 4 kB / 0.8253 GB, free: 52.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/1.21, allocations: 399.4 kB / 0.8257 GB, free: 52.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003959/1.214, allocations: 1.471 MB / 0.8271 GB, free: 50.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/1.215, allocations: 43.88 kB / 0.8272 GB, free: 50.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.225, allocations: 10.62 MB / 0.8375 GB, free: 39.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.226, allocations: 4.047 kB / 0.8375 GB, free: 39.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/1.237, allocations: 7.944 MB / 0.8453 GB, free: 31.77 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.239, allocations: 0.6189 MB / 0.8459 GB, free: 31.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001378/1.241, allocations: 36 kB / 0.8459 GB, free: 31.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002794/1.243, allocations: 141.1 kB / 0.8461 GB, free: 30.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004422/1.244, allocations: 117.3 kB / 0.8462 GB, free: 30.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/1.244, allocations: 55.98 kB / 0.8462 GB, free: 30.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006986/1.251, allocations: 4.273 MB / 0.8504 GB, free: 26.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.251, allocations: 4 kB / 0.8504 GB, free: 26.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009316/1.26, allocations: 1.453 MB / 0.8518 GB, free: 25.07 MB / 0.5294 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.0007618/1.261, allocations: 172.6 kB / 0.852 GB, free: 24.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.272, allocations: 7.065 MB / 0.8589 GB, free: 17.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.272, allocations: 0 / 0.8589 GB, free: 17.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002972/1.275, allocations: 2.266 MB / 0.8611 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006706/1.282, allocations: 0.724 MB / 0.8618 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02586/1.308, allocations: 17.06 MB / 0.8785 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005531/1.314, allocations: 4.48 MB / 0.8828 GB, free: 9.195 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/1.315, allocations: 403.4 kB / 0.8832 GB, free: 8.805 MB / 0.545 GB Notification: Performance of SimCode: time 1.513e-06/1.315, allocations: 0 / 0.8832 GB, free: 8.805 MB / 0.545 GB Notification: Performance of Templates: time 0.4471/1.762, allocations: 163.2 MB / 1.043 GB, free: 107 MB / 0.5762 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 -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