Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009862/0.0009862, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007587/0.0007587, allocations: 98.89 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002107/0.0002108, allocations: 8 kB / 356.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1745, allocations: 51.28 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03405/0.2086, allocations: 51.6 MB / 459.7 MB, free: 7.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02115/0.2298, allocations: 11.09 MB / 470.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007468/0.2373, allocations: 243.4 kB / 471.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006205/0.2435, allocations: 2.71 MB / 473.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01826/0.2618, allocations: 8.013 MB / 481.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003411/0.2652, allocations: 0.667 MB / 482.5 MB, free: 1.125 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.03779/0.3031, allocations: 32.82 MB / 0.5032 GB, free: 268 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1659/0.469, allocations: 5.505 MB / 0.5086 GB, free: 31.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.4708, allocations: 1.307 MB / 0.5099 GB, free: 31.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001777/0.4725, allocations: 1.957 MB / 0.5118 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003849/0.4729, allocations: 147.5 kB / 0.5119 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.4746, allocations: 1.095 MB / 0.513 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.476, allocations: 1.807 MB / 0.5147 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001973/0.478, allocations: 1.995 MB / 0.5167 GB, free: 31.01 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00596/0.484, allocations: 5.919 MB / 0.5225 GB, free: 30.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.484, allocations: 0 / 0.5225 GB, free: 30.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.484, allocations: 3.75 kB / 0.5225 GB, free: 30.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002432/0.4843, allocations: 0 / 0.5225 GB, free: 30.61 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.007971/0.4923, allocations: 4.359 MB / 0.5267 GB, free: 28.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4923, allocations: 7.844 kB / 0.5267 GB, free: 28.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008436/0.4932, allocations: 0.7646 MB / 0.5275 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02005/0.5132, allocations: 3.988 MB / 0.5314 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005097/0.5183, allocations: 2.957 MB / 0.5343 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.5185, allocations: 253.3 kB / 0.5345 GB, free: 25.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006346/0.5192, allocations: 329.9 kB / 0.5348 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/0.5342, allocations: 10.74 MB / 0.5453 GB, free: 19.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/0.5343, allocations: 47.73 kB / 0.5454 GB, free: 19.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/0.5347, allocations: 158.5 kB / 0.5455 GB, free: 19.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.5376, allocations: 2.148 MB / 0.5476 GB, free: 17.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.5508, allocations: 9.063 MB / 0.5565 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03876/0.5896, allocations: 41.71 MB / 0.5972 GB, free: 8.684 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.6002, allocations: 4.435 MB / 0.6015 GB, free: 4.656 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.603, allocations: 2.432 MB / 0.6039 GB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.6135, allocations: 7.238 MB / 0.611 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.6136, allocations: 53.2 kB / 0.611 GB, free: 10.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 4.008e-06/0.6136, allocations: 0 / 0.611 GB, free: 10.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.04274/0.6564, allocations: 17.9 MB / 0.6285 GB, free: 8.797 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/0.6565, allocations: 175.5 kB / 0.6287 GB, free: 8.586 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/0.6625, allocations: 4.598 MB / 0.6331 GB, free: 3.977 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.6627, allocations: 56.44 kB / 0.6332 GB, free: 3.918 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001969/0.6646, allocations: 3.239 MB / 0.6364 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006531/0.6653, allocations: 0.7524 MB / 0.6371 GB, free: 15.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.6656, allocations: 122.6 kB / 0.6372 GB, free: 15.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003368/0.6659, allocations: 0.5725 MB / 0.6378 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00304/0.669, allocations: 2.265 MB / 0.64 GB, free: 12.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005009/0.674, allocations: 6.004 MB / 0.6459 GB, free: 5.184 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008698/0.6827, allocations: 9.022 MB / 0.6547 GB, free: 10.86 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.893e-05/0.6828, allocations: 36 kB / 0.6547 GB, free: 10.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.0133/0.6961, allocations: 8.821 MB / 0.6633 GB, free: 2.473 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.11e-05/0.6962, allocations: 60 kB / 0.6634 GB, free: 2.414 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001543/0.6964, allocations: 132 kB / 0.6635 GB, free: 2.285 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.6986, allocations: 0.9453 MB / 0.6644 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/0.7027, allocations: 1.423 MB / 0.6658 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007412/0.7101, allocations: 6.098 MB / 0.6718 GB, free: 9.672 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003959/0.7141, allocations: 339.5 kB / 0.6721 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006283/0.7147, allocations: 386.8 kB / 0.6725 GB, free: 8.965 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (753): * Single equations (assignments): 747 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003592/0.7183, allocations: 2.233 MB / 0.6746 GB, free: 6.719 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006612/0.719, allocations: 401 kB / 0.675 GB, free: 6.324 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006131/0.7251, allocations: 3.68 MB / 0.6786 GB, free: 2.629 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-05/0.7252, allocations: 24 kB / 0.6786 GB, free: 2.605 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.7252, allocations: 4 kB / 0.6786 GB, free: 2.602 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/0.7252, allocations: 7.969 kB / 0.6786 GB, free: 2.594 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1717/0.8969, allocations: 9.25 MB / 0.6877 GB, free: 184.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.8969, allocations: 9.266 kB / 0.6877 GB, free: 184.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.8984, allocations: 321.2 kB / 0.688 GB, free: 184.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/0.9002, allocations: 0.762 MB / 0.6887 GB, free: 184.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.9004, allocations: 41.3 kB / 0.6888 GB, free: 184.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/0.9064, allocations: 5.631 MB / 0.6943 GB, free: 181.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.9064, allocations: 7.75 kB / 0.6943 GB, free: 181.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007707/0.9141, allocations: 6.573 MB / 0.7007 GB, free: 179.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009665/0.9151, allocations: 481.7 kB / 0.7012 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/0.9155, allocations: 38.97 kB / 0.7012 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.917, allocations: 118.7 kB / 0.7013 GB, free: 179.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004305/0.9174, allocations: 120.8 kB / 0.7014 GB, free: 179 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.9175, allocations: 61.92 kB / 0.7015 GB, free: 179 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003617/0.9212, allocations: 2.937 MB / 0.7044 GB, free: 178 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9212, allocations: 0 / 0.7044 GB, free: 178 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003975/0.9251, allocations: 1.053 MB / 0.7054 GB, free: 177.9 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007515/0.9327, allocations: 7.236 MB / 0.7125 GB, free: 172.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00638/0.9391, allocations: 5.51 MB / 0.7178 GB, free: 167.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.9391, allocations: 0 / 0.7178 GB, free: 167.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002434/0.9415, allocations: 1.966 MB / 0.7198 GB, free: 165.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005548/0.9471, allocations: 495.8 kB / 0.7202 GB, free: 165.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0458/0.9929, allocations: 39.92 MB / 0.7592 GB, free: 122.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002612/0.9956, allocations: 3.457 MB / 0.7626 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/0.9977, allocations: 2.103 MB / 0.7646 GB, free: 117.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.342e-06/0.9977, allocations: 0 / 0.7646 GB, free: 117.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.899/7.896, allocations: 98.6 MB / 0.8609 GB, free: 18.59 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches