Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.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.WorldForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces") translateModel(ModelicaTest.MultiBody.Forces.WorldForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0016/0.0016, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002211/0.002212, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.643/1.643, allocations: 227.4 MB / 247.1 MB, free: 10.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 46.1 MB / 344.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 78.38 kB / 417.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1155, allocations: 62.44 MB / 480.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.2987/0.4143, allocations: 96.13 MB / 0.5628 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04575/0.4601, allocations: 18.19 MB / 0.5805 GB, free: 380 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0198/0.4799, allocations: 419 kB / 0.5809 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01032/0.4903, allocations: 5.329 MB / 0.5861 GB, free: 10.62 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008191/0.4986, allocations: 2.417 MB / 0.5885 GB, free: 8.195 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003302/0.5019, allocations: 1.116 MB / 0.5896 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01266/0.5146, allocations: 8.801 MB / 0.5982 GB, free: 14.26 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.5249, allocations: 7.256 MB / 0.6053 GB, free: 6.938 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005331/0.5302, allocations: 2.722 MB / 0.6079 GB, free: 4.207 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006081/0.5364, allocations: 4.051 MB / 0.6119 GB, free: 148 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001938/0.5383, allocations: 0.5782 MB / 0.6124 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003663/0.542, allocations: 1.452 MB / 0.6139 GB, free: 14.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004129/0.5462, allocations: 3.386 MB / 0.6172 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00588/0.5521, allocations: 3.741 MB / 0.6208 GB, free: 6.953 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.5629, allocations: 9.215 MB / 0.6298 GB, free: 13.72 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.709e-06/0.563, allocations: 0 / 0.6298 GB, free: 13.72 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.563, allocations: 0 / 0.6298 GB, free: 13.72 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004356/0.5634, allocations: 0 / 0.6298 GB, free: 13.72 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2313 * Number of variables: 2313 Notification: Performance of Generate backend data structure: time 0.01989/0.5833, allocations: 8.032 MB / 0.6377 GB, free: 5.602 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.5834, allocations: 12.03 kB / 0.6377 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01502/0.5984, allocations: 3.088 MB / 0.6407 GB, free: 2.488 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.6096, allocations: 4.908 MB / 0.6455 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003921/0.61, allocations: 390.5 kB / 0.6459 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002168/0.6122, allocations: 0.5311 MB / 0.6464 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/0.6431, allocations: 15.36 MB / 0.6614 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003672/0.6435, allocations: 79.25 kB / 0.6614 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00193/0.6454, allocations: 243.8 kB / 0.6617 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005076/0.6505, allocations: 2.809 MB / 0.6644 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/0.6763, allocations: 12.78 MB / 0.6769 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3155/0.9919, allocations: 61.84 MB / 0.7373 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01416/1.006, allocations: 5.64 MB / 0.7428 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004716/1.011, allocations: 3.8 MB / 0.7465 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001953/1.011, allocations: 47.19 kB / 0.7466 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.321e-05/1.011, allocations: 58.5 kB / 0.7466 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=229): time 6.492e-06/1.011, allocations: 0 / 0.7466 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.07412/1.085, allocations: 31.33 MB / 0.7772 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.085, allocations: 294.1 kB / 0.7775 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009623/1.095, allocations: 7.05 MB / 0.7844 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008269/1.096, allocations: 65.7 kB / 0.7844 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002639/1.099, allocations: 4.733 MB / 0.7891 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001447/1.1, allocations: 1.023 MB / 0.7901 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002435/1.102, allocations: 1.828 MB / 0.7918 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.055e-05/1.103, allocations: 308.2 kB / 0.7921 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004263/1.107, allocations: 3.515 MB / 0.7956 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006619/1.113, allocations: 8.724 MB / 0.8041 GB, free: 89.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/1.126, allocations: 13.1 MB / 0.8169 GB, free: 73.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001746/1.126, allocations: 59.94 kB / 0.8169 GB, free: 73.76 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.02502/1.151, allocations: 14 MB / 0.8306 GB, free: 59.74 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.151, allocations: 83.98 kB / 0.8307 GB, free: 59.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/1.151, allocations: 184 kB / 0.8309 GB, free: 59.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005392/1.157, allocations: 2.299 MB / 0.8331 GB, free: 57.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006677/1.164, allocations: 2.063 MB / 0.8351 GB, free: 55.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/1.179, allocations: 15.58 MB / 0.8503 GB, free: 39.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007725/1.187, allocations: 0.5033 MB / 0.8508 GB, free: 38.63 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/1.189, allocations: 0.5227 MB / 0.8513 GB, free: 38.11 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 830 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,worldTorque1.arrow.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldForce.arrow.twoHeadedArrow,worldForce.arrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 (1082): * Single equations (assignments): 1076 * 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,23,100.0%), (1,14,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005839/1.194, allocations: 3.191 MB / 0.8545 GB, free: 34.91 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/1.196, allocations: 0.5823 MB / 0.855 GB, free: 34.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/1.206, allocations: 6.712 MB / 0.8616 GB, free: 27.58 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.256e-05/1.207, allocations: 31.94 kB / 0.8616 GB, free: 27.55 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.697e-05/1.207, allocations: 8 kB / 0.8616 GB, free: 27.54 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.146e-05/1.207, allocations: 15.95 kB / 0.8616 GB, free: 27.52 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02526/1.232, allocations: 14.41 MB / 0.8757 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.496e-05/1.232, allocations: 4 kB / 0.8757 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/1.234, allocations: 463.2 kB / 0.8762 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005046/1.239, allocations: 2.011 MB / 0.8781 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005723/1.24, allocations: 51.34 kB / 0.8782 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/1.256, allocations: 14.61 MB / 0.8924 GB, free: 11.56 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.256, allocations: 4 kB / 0.8924 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02015/1.277, allocations: 10.72 MB / 0.9029 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003107/1.28, allocations: 0.6573 MB / 0.9035 GB, free: 72 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002647/1.282, allocations: 48 kB / 0.9036 GB, free: 24 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004238/1.287, allocations: 183.3 kB / 0.9038 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/1.288, allocations: 149.6 kB / 0.9039 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002432/1.288, allocations: 64 kB / 0.904 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009594/1.298, allocations: 4.495 MB / 0.9084 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.11e-07/1.298, allocations: 0 / 0.9084 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01039/1.308, allocations: 1.643 MB / 0.91 GB, free: 9.516 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (204): * Single equations (assignments): 198 * 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 {(4,18,75.0%), (1,11,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.0008854/1.309, allocations: 196.3 kB / 0.9102 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2717/1.581, allocations: 9.755 MB / 0.9197 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/1.581, allocations: 0 / 0.9197 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00652/1.587, allocations: 3.184 MB / 0.9228 GB, free: 195.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005893/1.593, allocations: 0.8167 MB / 0.9236 GB, free: 195.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03655/1.63, allocations: 19.05 MB / 0.9422 GB, free: 186.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00639/1.636, allocations: 4.81 MB / 0.9469 GB, free: 185 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001894/1.638, allocations: 440.9 kB / 0.9473 GB, free: 185 MB / 0.5606 GB Notification: Performance of SimCode: time 1.153e-06/1.638, allocations: 0 / 0.9473 GB, free: 185 MB / 0.5606 GB Notification: Performance of Templates: time 0.4416/2.08, allocations: 180.1 MB / 1.123 GB, free: 186.6 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces/WorldForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches