Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 101.6 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001284, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 51.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.08577, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1978/0.2836, allocations: 57.95 MB / 384.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02268/0.3064, allocations: 11.77 MB / 396.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008957/0.3154, allocations: 245.3 kB / 396.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005165/0.3206, allocations: 3.22 MB / 399.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004317/0.3249, allocations: 1.953 MB / 401.8 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.3265, allocations: 0.7714 MB / 402.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005978/0.3325, allocations: 6.709 MB / 409.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003989/0.3365, allocations: 4.139 MB / 413.4 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.3386, allocations: 1.549 MB / 415 MB, free: 296 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00353/0.3422, allocations: 2.512 MB / 417.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.3433, allocations: 275.4 kB / 417.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003108/0.3465, allocations: 1.23 MB / 419 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002819/0.3493, allocations: 2.151 MB / 421.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002898/0.3522, allocations: 2.477 MB / 423.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007033/0.3592, allocations: 7.963 MB / 431.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3593, allocations: 0 / 431.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3593, allocations: 4 kB / 431.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001449/0.3594, allocations: 0 / 431.6 MB, free: 1.402 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.009491/0.3689, allocations: 5.613 MB / 437.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.369, allocations: 8.031 kB / 437.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.37, allocations: 0.8136 MB / 438 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02026/0.3903, allocations: 3.971 MB / 442 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006151/0.3965, allocations: 3.347 MB / 445.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.3967, allocations: 267.2 kB / 445.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000677/0.3973, allocations: 355.6 kB / 446 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.4142, allocations: 11.58 MB / 457.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-05/0.4144, allocations: 47.59 kB / 457.6 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/0.4147, allocations: 167 kB / 457.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003457/0.4182, allocations: 2.342 MB / 460.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.4345, allocations: 9.846 MB / 469.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04759/0.4822, allocations: 44.28 MB / 0.5022 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.4941, allocations: 5.277 MB / 0.5073 GB, free: 8.031 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003249/0.4974, allocations: 2.762 MB / 0.51 GB, free: 5.262 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01067/0.5081, allocations: 7.984 MB / 0.5178 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.5081, allocations: 51.88 kB / 0.5179 GB, free: 13.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 5.32e-06/0.5082, allocations: 4 kB / 0.5179 GB, free: 13.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.1735/0.6817, allocations: 19.96 MB / 0.5374 GB, free: 164.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.6818, allocations: 179.3 kB / 0.5375 GB, free: 164 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00558/0.6873, allocations: 4.778 MB / 0.5422 GB, free: 162.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002323/0.6876, allocations: 64.2 kB / 0.5423 GB, free: 162.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.6891, allocations: 3.411 MB / 0.5456 GB, free: 159.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/0.6896, allocations: 0.8871 MB / 0.5465 GB, free: 159 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/0.691, allocations: 1.345 MB / 0.5478 GB, free: 158.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.94e-05/0.6911, allocations: 307.4 kB / 0.5481 GB, free: 158 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/0.694, allocations: 2.602 MB / 0.5506 GB, free: 157.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004108/0.6981, allocations: 6.5 MB / 0.557 GB, free: 151.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007672/0.7058, allocations: 9.881 MB / 0.5666 GB, free: 143.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.16e-05/0.7059, allocations: 43.22 kB / 0.5666 GB, free: 143.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01193/0.7178, allocations: 9.689 MB / 0.5761 GB, free: 136.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.952e-05/0.7179, allocations: 68.03 kB / 0.5762 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-05/0.718, allocations: 136 kB / 0.5763 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.7199, allocations: 0.9499 MB / 0.5772 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004312/0.7242, allocations: 1.576 MB / 0.5788 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/0.7301, allocations: 6.112 MB / 0.5847 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/0.7348, allocations: 379.5 kB / 0.5851 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004961/0.7353, allocations: 404 kB / 0.5855 GB, free: 126.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (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 (816): * Single equations (assignments): 810 * 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.002596/0.7379, allocations: 2.376 MB / 0.5878 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.7384, allocations: 414.6 kB / 0.5882 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005619/0.7441, allocations: 4.406 MB / 0.5925 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.7441, allocations: 24.47 kB / 0.5925 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.7441, allocations: 8 kB / 0.5925 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.7441, allocations: 15.91 kB / 0.5926 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.7571, allocations: 10.53 MB / 0.6028 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.7571, allocations: 8.125 kB / 0.6028 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/0.7588, allocations: 435.3 kB / 0.6033 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.7605, allocations: 0.7616 MB / 0.604 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.7606, allocations: 47.83 kB / 0.604 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005471/0.7661, allocations: 5.631 MB / 0.6095 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.7661, allocations: 7.938 kB / 0.6096 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008243/0.7744, allocations: 7.707 MB / 0.6171 GB, free: 93.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/0.7759, allocations: 0.8196 MB / 0.6179 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/0.7765, allocations: 48.92 kB / 0.6179 GB, free: 93.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.7781, allocations: 143.8 kB / 0.6181 GB, free: 92.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003339/0.7785, allocations: 145.7 kB / 0.6182 GB, free: 92.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.7786, allocations: 70.91 kB / 0.6183 GB, free: 92.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003219/0.7818, allocations: 3.07 MB / 0.6213 GB, free: 89.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7818, allocations: 0 / 0.6213 GB, free: 89.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004243/0.7861, allocations: 1.147 MB / 0.6224 GB, free: 88.45 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 (198): * Single equations (assignments): 194 * 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.008405/0.7945, allocations: 8.367 MB / 0.6306 GB, free: 79.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007067/0.8016, allocations: 6.267 MB / 0.6367 GB, free: 73.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.8016, allocations: 0 / 0.6367 GB, free: 73.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/0.8044, allocations: 2.332 MB / 0.639 GB, free: 71.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002885/0.8073, allocations: 0.507 MB / 0.6395 GB, free: 70.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2074/1.015, allocations: 66.25 MB / 0.7041 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004781/1.02, allocations: 3.672 MB / 0.7077 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005846/1.025, allocations: 2.222 MB / 0.7099 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00326/1.029, allocations: 2.219 MB / 0.7121 GB, free: 149.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/1.029, allocations: 0 / 0.7121 GB, free: 149.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09753/1.126, allocations: 84.95 MB / 0.795 GB, free: 79.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/1.126, allocations: 246.1 kB / 0.7953 GB, free: 78.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.085/5.211, allocations: 0 / 0.7953 GB, free: 78.86 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches