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.00124/0.00124, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 204.6 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3373, allocations: 50.54 MB / 408.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01466/0.352, allocations: 11.18 MB / 419.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009143/0.3612, allocations: 4.047 MB / 424 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.3635, allocations: 67.81 kB / 424.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00646/0.37, allocations: 3.173 MB / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004996/0.3751, allocations: 1.875 MB / 429.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.3774, allocations: 0.8266 MB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006428/0.3838, allocations: 4.405 MB / 434.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004986/0.3889, allocations: 4.013 MB / 438.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003016/0.3919, allocations: 1.608 MB / 440 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003424/0.3953, allocations: 2.118 MB / 442.1 MB, free: 108 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001088/0.3964, allocations: 348 kB / 442.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.3993, allocations: 1.233 MB / 443.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002346/0.4017, allocations: 2.007 MB / 445.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00373/0.4054, allocations: 2.311 MB / 448 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008731/0.4142, allocations: 7.44 MB / 455.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4142, allocations: 0 / 455.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4142, allocations: 4 kB / 455.4 MB, free: 2.727 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002842/0.4145, allocations: 0 / 455.4 MB, free: 2.727 MB / 366.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.01725/0.4318, allocations: 5.146 MB / 460.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.724e-05/0.4319, allocations: 12.03 kB / 460.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002088/0.434, allocations: 0.7282 MB / 461.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02286/0.4569, allocations: 3.868 MB / 465.2 MB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007119/0.464, allocations: 2.967 MB / 468.1 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.4643, allocations: 238.2 kB / 468.4 MB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001527/0.4658, allocations: 327.7 kB / 468.7 MB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01922/0.485, allocations: 10.38 MB / 479.1 MB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001282/0.4852, allocations: 39.59 kB / 479.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001058/0.4863, allocations: 155.9 kB / 479.3 MB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003604/0.4899, allocations: 2.033 MB / 481.3 MB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01778/0.5077, allocations: 8.78 MB / 490.1 MB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05875/0.5665, allocations: 40.6 MB / 0.5182 GB, free: 5.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.5779, allocations: 4.437 MB / 0.5226 GB, free: 0.918 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003042/0.581, allocations: 2.434 MB / 0.5249 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01199/0.593, allocations: 7.189 MB / 0.532 GB, free: 7.074 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.5931, allocations: 55.44 kB / 0.532 GB, free: 7.012 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.038e-06/0.5931, allocations: 4 kB / 0.532 GB, free: 7.008 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2487/0.8418, allocations: 17.8 MB / 0.5494 GB, free: 121.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.8419, allocations: 178.2 kB / 0.5496 GB, free: 121.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.8467, allocations: 4.568 MB / 0.554 GB, free: 119.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00018/0.8469, allocations: 57.12 kB / 0.5541 GB, free: 119.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.8481, allocations: 3.147 MB / 0.5572 GB, free: 117.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008884/0.8491, allocations: 0.7578 MB / 0.5579 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.8503, allocations: 1.235 MB / 0.5591 GB, free: 115.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.414e-05/0.8504, allocations: 308.8 kB / 0.5594 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002501/0.8529, allocations: 2.27 MB / 0.5616 GB, free: 114.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003317/0.8562, allocations: 5.961 MB / 0.5674 GB, free: 106.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006963/0.8632, allocations: 8.946 MB / 0.5762 GB, free: 96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.682e-05/0.8632, allocations: 39.94 kB / 0.5762 GB, free: 95.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01161/0.8749, allocations: 8.798 MB / 0.5848 GB, free: 87.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.202e-05/0.875, allocations: 60 kB / 0.5849 GB, free: 87.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.941e-05/0.875, allocations: 132 kB / 0.585 GB, free: 86.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.8774, allocations: 0.9456 MB / 0.5859 GB, free: 86.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003661/0.8811, allocations: 1.407 MB / 0.5873 GB, free: 84.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/0.8874, allocations: 6.516 MB / 0.5936 GB, free: 77.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/0.8919, allocations: 335.5 kB / 0.594 GB, free: 77.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004184/0.8923, allocations: 387.7 kB / 0.5943 GB, free: 77.26 MB / 462.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.00304/0.8954, allocations: 2.172 MB / 0.5965 GB, free: 75.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005347/0.8959, allocations: 386.9 kB / 0.5968 GB, free: 74.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004871/0.9008, allocations: 3.691 MB / 0.6004 GB, free: 70.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.9008, allocations: 31.69 kB / 0.6005 GB, free: 70.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.9008, allocations: 4 kB / 0.6005 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.9009, allocations: 11.67 kB / 0.6005 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.914, allocations: 9.042 MB / 0.6093 GB, free: 61.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.914, allocations: 4 kB / 0.6093 GB, free: 61.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.9153, allocations: 324.2 kB / 0.6096 GB, free: 61.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/0.9173, allocations: 0.7694 MB / 0.6104 GB, free: 60.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.9174, allocations: 36 kB / 0.6104 GB, free: 60.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006503/0.924, allocations: 6.112 MB / 0.6164 GB, free: 54.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.924, allocations: 11.94 kB / 0.6164 GB, free: 54.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007652/0.9316, allocations: 6.593 MB / 0.6228 GB, free: 47.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/0.933, allocations: 463.9 kB / 0.6233 GB, free: 47.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/0.9335, allocations: 39.94 kB / 0.6233 GB, free: 47.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/0.9349, allocations: 115.8 kB / 0.6234 GB, free: 47.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.9352, allocations: 129 kB / 0.6235 GB, free: 46.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.9353, allocations: 51.75 kB / 0.6236 GB, free: 46.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00341/0.9387, allocations: 2.94 MB / 0.6265 GB, free: 44 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9387, allocations: 0 / 0.6265 GB, free: 44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004335/0.9431, allocations: 1.014 MB / 0.6274 GB, free: 42.99 MB / 462.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.007799/0.9509, allocations: 7.25 MB / 0.6345 GB, free: 35.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006399/0.9573, allocations: 5.536 MB / 0.6399 GB, free: 30.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.9573, allocations: 4 kB / 0.6399 GB, free: 30.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002592/0.9599, allocations: 1.978 MB / 0.6419 GB, free: 28.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.9627, allocations: 0.5036 MB / 0.6424 GB, free: 27.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06171/1.024, allocations: 49.96 MB / 0.6912 GB, free: 3.801 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00467/1.029, allocations: 3.359 MB / 0.6944 GB, free: 412 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004718/1.034, allocations: 2.033 MB / 0.6964 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003001/1.037, allocations: 1.991 MB / 0.6984 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of SimCode: time 1.072e-06/1.037, allocations: 0 / 0.6984 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.29/3.327, allocations: 77.51 MB / 0.7741 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.61/29.94, allocations: 11.25 kB / 0.7741 GB, free: 167.7 MB / 0.5294 GB (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