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.0007921/0.0007922, allocations: 91.78 kB / 17.3 MB, free: 6.031 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.0009684/0.0009684, allocations: 176.6 kB / 18.2 MB, free: 5.41 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.199/1.199, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0004458/0.0004458, allocations: 12 kB / 281.5 MB, free: 3.305 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08375, allocations: 47.57 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2148/0.2986, allocations: 56.49 MB / 385.5 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02783/0.3264, allocations: 11.7 MB / 397.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009156/0.3356, allocations: 247 kB / 397.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.3369, allocations: 477.3 kB / 398 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004042/0.341, allocations: 1.949 MB / 399.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.3421, allocations: 0.6653 MB / 400.6 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005743/0.3479, allocations: 6.704 MB / 407.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005615/0.3535, allocations: 5.847 MB / 413.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.3551, allocations: 1.288 MB / 414.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001972/0.3571, allocations: 2.167 MB / 416.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002937/0.3574, allocations: 164.6 kB / 416.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.3592, allocations: 1.137 MB / 417.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.3607, allocations: 1.983 MB / 419.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.3625, allocations: 2.301 MB / 422.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006058/0.3686, allocations: 7.739 MB / 429.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3686, allocations: 0 / 429.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3686, allocations: 0 / 429.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.957e-05/0.3687, allocations: 0 / 429.9 MB, free: 3.785 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.007523/0.3762, allocations: 4.61 MB / 434.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3763, allocations: 12.03 kB / 434.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008549/0.3771, allocations: 0.8151 MB / 435.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0215/0.3986, allocations: 4.042 MB / 439.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005636/0.4043, allocations: 3.332 MB / 442.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.4045, allocations: 269.6 kB / 443 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005533/0.405, allocations: 357.2 kB / 443.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0164/0.4214, allocations: 11.6 MB / 454.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001017/0.4216, allocations: 39.59 kB / 455 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004026/0.422, allocations: 166.7 kB / 455.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003569/0.4256, allocations: 2.341 MB / 457.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/0.4424, allocations: 9.869 MB / 467.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04988/0.4923, allocations: 44.31 MB / 0.4997 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.5043, allocations: 5.283 MB / 0.5048 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/0.5075, allocations: 2.759 MB / 0.5075 GB, free: 8.438 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.5184, allocations: 7.988 MB / 0.5153 GB, free: 308 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.5184, allocations: 51.88 kB / 0.5154 GB, free: 248 kB / 430.1 MB Notification: Performance of pre-optimization done (n=216): time 3.877e-06/0.5184, allocations: 4 kB / 0.5154 GB, free: 244 kB / 430.1 MB Notification: Performance of matching and sorting (n=237): time 0.1924/0.7109, allocations: 19.96 MB / 0.5349 GB, free: 164.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.711, allocations: 180.6 kB / 0.535 GB, free: 164 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006772/0.7178, allocations: 4.775 MB / 0.5397 GB, free: 163.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003906/0.7182, allocations: 58.11 kB / 0.5397 GB, free: 163 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.7201, allocations: 3.418 MB / 0.5431 GB, free: 160.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008544/0.721, allocations: 0.8954 MB / 0.544 GB, free: 159.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006366/0.7216, allocations: 0.5632 MB / 0.5445 GB, free: 159.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.7217, allocations: 302.3 kB / 0.5448 GB, free: 159.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003474/0.7252, allocations: 2.592 MB / 0.5473 GB, free: 158.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004349/0.7295, allocations: 6.502 MB / 0.5537 GB, free: 152.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/0.7376, allocations: 9.895 MB / 0.5633 GB, free: 144.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.951e-05/0.7378, allocations: 41.16 kB / 0.5634 GB, free: 144.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01406/0.7518, allocations: 9.688 MB / 0.5728 GB, free: 138.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.712e-05/0.752, allocations: 64.94 kB / 0.5729 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.7521, allocations: 136 kB / 0.573 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.7541, allocations: 0.9547 MB / 0.574 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004737/0.7589, allocations: 1.579 MB / 0.5755 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005983/0.7649, allocations: 6.116 MB / 0.5815 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005169/0.7701, allocations: 377.6 kB / 0.5818 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007686/0.7708, allocations: 400 kB / 0.5822 GB, free: 129.3 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.003066/0.7739, allocations: 2.378 MB / 0.5845 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006859/0.7746, allocations: 420.6 kB / 0.5849 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006161/0.7808, allocations: 4.402 MB / 0.5892 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/0.7808, allocations: 28 kB / 0.5893 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.7808, allocations: 5.125 kB / 0.5893 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.7809, allocations: 15.89 kB / 0.5893 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.7947, allocations: 10.54 MB / 0.5996 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.7948, allocations: 4 kB / 0.5996 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/0.7965, allocations: 427.3 kB / 0.6 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.7983, allocations: 0.7656 MB / 0.6007 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.7984, allocations: 45.17 kB / 0.6008 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00572/0.8041, allocations: 5.638 MB / 0.6063 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.8042, allocations: 7.938 kB / 0.6063 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008897/0.8131, allocations: 7.704 MB / 0.6138 GB, free: 96.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001759/0.8149, allocations: 0.8274 MB / 0.6146 GB, free: 95.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004704/0.8153, allocations: 48.52 kB / 0.6147 GB, free: 95.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.817, allocations: 147.7 kB / 0.6148 GB, free: 95.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.8173, allocations: 141.7 kB / 0.615 GB, free: 95.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.8175, allocations: 75.92 kB / 0.615 GB, free: 95.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003514/0.821, allocations: 3.064 MB / 0.618 GB, free: 92.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.821, allocations: 0 / 0.618 GB, free: 92.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004688/0.8257, allocations: 1.155 MB / 0.6191 GB, free: 91.13 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.008778/0.8345, allocations: 8.37 MB / 0.6273 GB, free: 82.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00738/0.8419, allocations: 6.261 MB / 0.6334 GB, free: 76.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.8419, allocations: 0 / 0.6334 GB, free: 76.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002822/0.8447, allocations: 2.332 MB / 0.6357 GB, free: 74.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005779/0.8505, allocations: 0.4982 MB / 0.6362 GB, free: 73.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2129/1.063, allocations: 66.35 MB / 0.701 GB, free: 154.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00404/1.068, allocations: 3.668 MB / 0.7046 GB, free: 153.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004927/1.072, allocations: 2.22 MB / 0.7067 GB, free: 153.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/1.075, allocations: 2.225 MB / 0.7089 GB, free: 153.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/1.075, allocations: 2.516 kB / 0.7089 GB, free: 153.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.103/2.178, allocations: 83.87 MB / 0.7908 GB, free: 82.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/2.178, allocations: 249.4 kB / 0.7911 GB, free: 81.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.785/5.963, allocations: 0 / 0.7911 GB, free: 81.82 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