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.001028/0.001028, 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.001864/0.001864, 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.348/1.348, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.19 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.0854, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01187/0.09729, allocations: 11.17 MB / 368.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1566/0.2539, allocations: 4.056 MB / 372.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.2556, allocations: 69.12 kB / 372.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005999/0.2616, allocations: 3.174 MB / 376.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004498/0.2662, allocations: 1.875 MB / 377.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.268, allocations: 0.8306 MB / 378.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006052/0.2741, allocations: 4.391 MB / 383.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00426/0.2784, allocations: 4.025 MB / 387.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.2807, allocations: 1.616 MB / 388.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.2834, allocations: 2.114 MB / 390.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000788/0.2842, allocations: 345.3 kB / 391.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002212/0.2864, allocations: 1.23 MB / 392.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001421/0.2878, allocations: 1.995 MB / 394.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.2896, allocations: 2.306 MB / 396.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006712/0.2964, allocations: 7.201 MB / 404 MB, free: 10.78 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2964, allocations: 0 / 404 MB, free: 10.78 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2964, allocations: 4 kB / 404 MB, free: 10.78 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001842/0.2966, allocations: 0 / 404 MB, free: 10.78 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.01048/0.3071, allocations: 5.149 MB / 409.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3072, allocations: 12.03 kB / 409.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/0.3083, allocations: 0.7335 MB / 409.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02292/0.3312, allocations: 3.866 MB / 413.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005805/0.337, allocations: 2.922 MB / 416.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.3372, allocations: 244.7 kB / 416.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008188/0.3381, allocations: 318.3 kB / 417.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/0.3552, allocations: 10.38 MB / 427.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/0.3554, allocations: 39.67 kB / 427.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004062/0.3558, allocations: 157 kB / 427.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003423/0.3592, allocations: 2.025 MB / 429.8 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0165/0.3757, allocations: 8.786 MB / 438.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04547/0.4212, allocations: 40.78 MB / 479.4 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0115/0.4327, allocations: 4.42 MB / 483.8 MB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00293/0.4357, allocations: 2.436 MB / 486.2 MB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01029/0.446, allocations: 7.225 MB / 493.5 MB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.4461, allocations: 55.5 kB / 493.5 MB, free: 15.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=177): time 4.288e-06/0.4461, allocations: 0 / 493.5 MB, free: 15.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=198): time 0.04566/0.4917, allocations: 17.79 MB / 0.4993 GB, free: 13.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.4919, allocations: 183.5 kB / 0.4995 GB, free: 13.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/0.4979, allocations: 4.566 MB / 0.504 GB, free: 8.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004054/0.4983, allocations: 53.7 kB / 0.504 GB, free: 8.781 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002011/0.5004, allocations: 3.148 MB / 0.5071 GB, free: 5.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007617/0.5011, allocations: 0.7527 MB / 0.5078 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001487/0.5026, allocations: 1.244 MB / 0.509 GB, free: 3.633 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.5027, allocations: 309.1 kB / 0.5093 GB, free: 3.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/0.5058, allocations: 2.276 MB / 0.5115 GB, free: 1.047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005158/0.511, allocations: 5.953 MB / 0.5174 GB, free: 9.262 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.178/0.689, allocations: 8.952 MB / 0.5261 GB, free: 135.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001643/0.6892, allocations: 36.59 kB / 0.5261 GB, free: 135.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01724/0.7065, allocations: 8.793 MB / 0.5347 GB, free: 133.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/0.7067, allocations: 60.69 kB / 0.5348 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/0.7069, allocations: 129.8 kB / 0.5349 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002629/0.7096, allocations: 0.9414 MB / 0.5358 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004854/0.7145, allocations: 1.41 MB / 0.5372 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008278/0.7228, allocations: 6.531 MB / 0.5436 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00461/0.7274, allocations: 336.6 kB / 0.5439 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000915/0.7284, allocations: 378.5 kB / 0.5443 GB, free: 129.4 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.003132/0.7315, allocations: 2.174 MB / 0.5464 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006669/0.7322, allocations: 389.5 kB / 0.5468 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00554/0.7377, allocations: 3.684 MB / 0.5504 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.419e-05/0.7378, allocations: 27.09 kB / 0.5504 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.7378, allocations: 6.625 kB / 0.5504 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.7378, allocations: 15.38 kB / 0.5504 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/0.7512, allocations: 9.143 MB / 0.5593 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.7512, allocations: 5.344 kB / 0.5593 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.7527, allocations: 326.4 kB / 0.5596 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/0.7545, allocations: 0.7684 MB / 0.5604 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.7547, allocations: 35.81 kB / 0.5604 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006509/0.7612, allocations: 6.065 MB / 0.5664 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.7612, allocations: 8 kB / 0.5664 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007677/0.7689, allocations: 6.587 MB / 0.5728 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009289/0.7699, allocations: 459.9 kB / 0.5732 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004494/0.7703, allocations: 36 kB / 0.5733 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.7718, allocations: 112.9 kB / 0.5734 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.7721, allocations: 129 kB / 0.5735 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.7723, allocations: 56 kB / 0.5736 GB, free: 111.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003564/0.7758, allocations: 2.928 MB / 0.5764 GB, free: 108.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7758, allocations: 0 / 0.5764 GB, free: 108.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00471/0.7806, allocations: 1.036 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.00774/0.7883, allocations: 7.241 MB / 0.5845 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008427/0.7968, allocations: 6.634 MB / 0.591 GB, free: 93.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/0.7968, allocations: 0 / 0.591 GB, free: 93.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002526/0.7993, allocations: 1.969 MB / 0.5929 GB, free: 91.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.802, allocations: 0.5082 MB / 0.5934 GB, free: 91.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05763/0.8597, allocations: 58.06 MB / 0.6501 GB, free: 24.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003249/0.863, allocations: 3.363 MB / 0.6534 GB, free: 21.28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004197/0.8672, allocations: 2.025 MB / 0.6554 GB, free: 19.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002119/0.8693, allocations: 1.995 MB / 0.6573 GB, free: 17.25 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.8693, allocations: 0 / 0.6573 GB, free: 17.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2761/1.145, allocations: 80.4 MB / 0.7358 GB, free: 126.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/12.34, allocations: 6.25 kB / 0.7358 GB, free: 126.5 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 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.csv","/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