Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 68.38 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.0783, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0106/0.08892, allocations: 11.17 MB / 368.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1289/0.2179, allocations: 4.061 MB / 372.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.2189, allocations: 69.31 kB / 372.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004518/0.2235, allocations: 3.164 MB / 376.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002996/0.2265, allocations: 1.878 MB / 377.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.2278, allocations: 0.8265 MB / 378.8 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004064/0.2319, allocations: 4.395 MB / 383.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.235, allocations: 4.023 MB / 387.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.2364, allocations: 1.618 MB / 388.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001613/0.238, allocations: 2.108 MB / 390.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004629/0.2385, allocations: 348.9 kB / 391.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.2401, allocations: 1.236 MB / 392.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001051/0.2411, allocations: 1.993 MB / 394.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.2424, allocations: 2.307 MB / 396.8 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.2474, allocations: 7.202 MB / 404 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2474, allocations: 0 / 404 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2474, allocations: 0 / 404 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.2475, allocations: 0 / 404 MB, free: 10.79 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.007692/0.2552, allocations: 5.15 MB / 409.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.2552, allocations: 8.031 kB / 409.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007096/0.2559, allocations: 0.7329 MB / 409.9 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02066/0.2766, allocations: 3.87 MB / 413.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004255/0.2809, allocations: 2.915 MB / 416.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.281, allocations: 247.1 kB / 416.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004479/0.2815, allocations: 322.6 kB / 417.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.2945, allocations: 10.38 MB / 427.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.097e-05/0.2946, allocations: 43.69 kB / 427.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/0.295, allocations: 156.5 kB / 427.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/0.298, allocations: 2.037 MB / 429.8 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.3115, allocations: 8.782 MB / 438.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03668/0.3482, allocations: 40.76 MB / 479.4 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/0.3585, allocations: 4.429 MB / 483.8 MB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/0.361, allocations: 2.436 MB / 486.2 MB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008588/0.3696, allocations: 7.217 MB / 493.4 MB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3696, allocations: 55.48 kB / 493.5 MB, free: 15.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=177): time 3.346e-06/0.3696, allocations: 3.938 kB / 493.5 MB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=198): time 0.03917/0.4088, allocations: 17.79 MB / 0.4993 GB, free: 13.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.4089, allocations: 175.5 kB / 0.4995 GB, free: 13.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005044/0.414, allocations: 4.57 MB / 0.5039 GB, free: 8.855 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.4141, allocations: 57.7 kB / 0.504 GB, free: 8.793 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.4159, allocations: 3.144 MB / 0.5071 GB, free: 5.648 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005474/0.4165, allocations: 0.7561 MB / 0.5078 GB, free: 4.898 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.4178, allocations: 1.247 MB / 0.509 GB, free: 3.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.254e-05/0.4179, allocations: 301.1 kB / 0.5093 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/0.4207, allocations: 2.276 MB / 0.5115 GB, free: 1.062 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004856/0.4256, allocations: 5.957 MB / 0.5174 GB, free: 9.273 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1428/0.5684, allocations: 8.955 MB / 0.5261 GB, free: 135.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/0.5685, allocations: 40.53 kB / 0.5261 GB, free: 135.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01517/0.5837, allocations: 8.792 MB / 0.5347 GB, free: 133.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.5838, allocations: 60.23 kB / 0.5348 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002275/0.5841, allocations: 129.8 kB / 0.5349 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002401/0.5865, allocations: 0.9415 MB / 0.5358 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004324/0.5908, allocations: 1.407 MB / 0.5372 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007499/0.5983, allocations: 6.521 MB / 0.5436 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004253/0.6026, allocations: 342.5 kB / 0.5439 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008659/0.6035, allocations: 374.7 kB / 0.5443 GB, free: 129.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 738 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003216/0.6067, allocations: 2.173 MB / 0.5464 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006977/0.6074, allocations: 397.9 kB / 0.5468 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/0.6128, allocations: 3.691 MB / 0.5504 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.6129, allocations: 19.41 kB / 0.5504 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.6129, allocations: 11.75 kB / 0.5504 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.6129, allocations: 7.453 kB / 0.5504 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/0.6261, allocations: 9.151 MB / 0.5593 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.6262, allocations: 5.344 kB / 0.5593 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.6276, allocations: 318.9 kB / 0.5596 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.6293, allocations: 0.764 MB / 0.5604 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.6295, allocations: 43.14 kB / 0.5604 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006045/0.6355, allocations: 6.065 MB / 0.5664 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.6355, allocations: 11.94 kB / 0.5664 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006732/0.6423, allocations: 6.585 MB / 0.5728 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006001/0.6429, allocations: 459.9 kB / 0.5732 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/0.6433, allocations: 43.44 kB / 0.5733 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.6447, allocations: 111.8 kB / 0.5734 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.6449, allocations: 124.6 kB / 0.5735 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.645, allocations: 60 kB / 0.5736 GB, free: 111.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002881/0.6479, allocations: 2.932 MB / 0.5764 GB, free: 108.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6479, allocations: 0 / 0.5764 GB, free: 108.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003593/0.6515, allocations: 1.022 MB / 0.5774 GB, free: 107.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006836/0.6584, allocations: 7.242 MB / 0.5845 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007281/0.6657, allocations: 6.64 MB / 0.591 GB, free: 93.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.6657, allocations: 0.6875 kB / 0.591 GB, free: 93.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.668, allocations: 1.964 MB / 0.5929 GB, free: 91.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.6701, allocations: 0.5075 MB / 0.5934 GB, free: 91.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04418/0.7143, allocations: 58.07 MB / 0.6501 GB, free: 24.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002396/0.7167, allocations: 3.367 MB / 0.6534 GB, free: 21.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003738/0.7205, allocations: 2.029 MB / 0.6554 GB, free: 19.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001811/0.7223, allocations: 1.991 MB / 0.6573 GB, free: 17.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7223, allocations: 0 / 0.6573 GB, free: 17.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.764/5.487, allocations: 80.39 MB / 0.7358 GB, free: 126.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.68/22.17, allocations: 9.234 kB / 0.7358 GB, free: 126.7 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches