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.001214/0.001214, allocations: 109.6 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 212.1 kB / 19.25 MB, free: 3.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2211/0.2211, allocations: 46.09 MB / 344.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 76.44 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1307, allocations: 62.45 MB / 480.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.0186/0.1494, allocations: 16.29 MB / 497 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.1611, allocations: 5.248 MB / 0.4905 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003552/0.1647, allocations: 115.7 kB / 0.4906 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.1759, allocations: 5.51 MB / 0.496 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008803/0.1848, allocations: 2.598 MB / 0.4985 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003609/0.1885, allocations: 1.189 MB / 0.4997 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2357/0.4241, allocations: 8.223 MB / 0.5077 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00967/0.4339, allocations: 6.919 MB / 0.5144 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00615/0.4401, allocations: 2.663 MB / 0.517 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007697/0.4478, allocations: 3.644 MB / 0.5206 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003144/0.451, allocations: 0.5759 MB / 0.5212 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005493/0.4565, allocations: 1.447 MB / 0.5226 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005875/0.4624, allocations: 3.339 MB / 0.5258 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007177/0.4696, allocations: 3.712 MB / 0.5295 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.4818, allocations: 11.16 MB / 0.5404 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.4819, allocations: 0 / 0.5404 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4819, allocations: 4 kB / 0.5404 GB, free: 2.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005328/0.4824, allocations: 0 / 0.5404 GB, free: 2.965 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: 2313 * Number of variables: 2313 Notification: Performance of Generate backend data structure: time 0.02231/0.5047, allocations: 8.036 MB / 0.5482 GB, free: 13.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.5048, allocations: 12.03 kB / 0.5482 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01613/0.521, allocations: 3.083 MB / 0.5512 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/0.5332, allocations: 4.917 MB / 0.556 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003748/0.5336, allocations: 396.9 kB / 0.5564 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001961/0.5356, allocations: 0.5204 MB / 0.5569 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03228/0.5679, allocations: 15.37 MB / 0.5719 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004014/0.5684, allocations: 84.89 kB / 0.572 GB, free: 4.383 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001997/0.5704, allocations: 249.1 kB / 0.5723 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005551/0.576, allocations: 2.803 MB / 0.575 GB, free: 1.422 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02871/0.6047, allocations: 12.77 MB / 0.5875 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08477/0.6895, allocations: 61.84 MB / 0.6479 GB, free: 6.348 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/0.7047, allocations: 5.644 MB / 0.6534 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005212/0.7099, allocations: 3.803 MB / 0.6571 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002512/0.7102, allocations: 44.31 kB / 0.6571 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/0.7103, allocations: 65.62 kB / 0.6572 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 7.555e-06/0.7103, allocations: 0 / 0.6572 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.08968/0.8, allocations: 31.33 MB / 0.6878 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.8002, allocations: 282.9 kB / 0.6881 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01357/0.8138, allocations: 7.049 MB / 0.6949 GB, free: 5.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006975/0.8146, allocations: 65.64 kB / 0.695 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004363/0.8189, allocations: 4.737 MB / 0.6996 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001598/0.8206, allocations: 1.021 MB / 0.7006 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005077/0.8257, allocations: 1.835 MB / 0.7024 GB, free: 14.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.8258, allocations: 301.1 kB / 0.7027 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006027/0.8318, allocations: 3.522 MB / 0.7061 GB, free: 10.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2247/1.057, allocations: 8.713 MB / 0.7147 GB, free: 178.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01405/1.071, allocations: 13.1 MB / 0.7274 GB, free: 169.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002118/1.071, allocations: 52.98 kB / 0.7275 GB, free: 169.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.02867/1.1, allocations: 14 MB / 0.7412 GB, free: 165 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/1.1, allocations: 83.38 kB / 0.7412 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003204/1.1, allocations: 184.3 kB / 0.7414 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005874/1.106, allocations: 2.294 MB / 0.7437 GB, free: 164.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006598/1.113, allocations: 2.075 MB / 0.7457 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/1.128, allocations: 15.57 MB / 0.7609 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007675/1.136, allocations: 0.4986 MB / 0.7614 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.138, allocations: 0.5233 MB / 0.7619 GB, free: 155.6 MB / 0.545 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.005935/1.144, allocations: 3.186 MB / 0.765 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.145, allocations: 0.5818 MB / 0.7656 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/1.156, allocations: 6.723 MB / 0.7721 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.808e-05/1.156, allocations: 28 kB / 0.7722 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.968e-05/1.156, allocations: 12 kB / 0.7722 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-05/1.156, allocations: 11.16 kB / 0.7722 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/1.179, allocations: 14.41 MB / 0.7863 GB, free: 136.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/1.179, allocations: 0 / 0.7863 GB, free: 136.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00226/1.182, allocations: 466.7 kB / 0.7867 GB, free: 135.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004869/1.186, allocations: 2.008 MB / 0.7887 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004791/1.187, allocations: 44.72 kB / 0.7887 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/1.201, allocations: 14.62 MB / 0.803 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.201, allocations: 4 kB / 0.803 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/1.215, allocations: 10.73 MB / 0.8135 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.217, allocations: 0.6497 MB / 0.8141 GB, free: 107.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/1.219, allocations: 40 kB / 0.8141 GB, free: 107.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004552/1.223, allocations: 181 kB / 0.8143 GB, free: 107.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008716/1.224, allocations: 161.5 kB / 0.8145 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003032/1.224, allocations: 64 kB / 0.8145 GB, free: 107 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01072/1.235, allocations: 4.491 MB / 0.8189 GB, free: 102.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.21e-07/1.235, allocations: 0 / 0.8189 GB, free: 102.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01497/1.25, allocations: 1.649 MB / 0.8205 GB, free: 100.9 MB / 0.545 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.001188/1.251, allocations: 190 kB / 0.8207 GB, free: 100.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02097/1.272, allocations: 9.757 MB / 0.8302 GB, free: 90.99 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/1.272, allocations: 4 kB / 0.8302 GB, free: 90.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006728/1.279, allocations: 3.184 MB / 0.8333 GB, free: 87.76 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008268/1.288, allocations: 0.8214 MB / 0.8341 GB, free: 86.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03659/1.324, allocations: 16.11 MB / 0.8499 GB, free: 70.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00695/1.331, allocations: 4.805 MB / 0.8546 GB, free: 65.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001831/1.333, allocations: 455.3 kB / 0.855 GB, free: 65.52 MB / 0.545 GB Notification: Performance of SimCode: time 1.272e-06/1.333, allocations: 0 / 0.855 GB, free: 65.52 MB / 0.545 GB Notification: Performance of Templates: time 0.4121/1.745, allocations: 180.1 MB / 1.031 GB, free: 72.23 MB / 0.545 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