Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 55.91 kB / 365.7 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1381, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01559/0.1537, allocations: 11.47 MB / 429.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1644, allocations: 4.092 MB / 433.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002445/0.1668, allocations: 71.81 kB / 433.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006402/0.1732, allocations: 3.236 MB / 436.7 MB, free: 9.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005591/0.1788, allocations: 2 MB / 438.7 MB, free: 7.652 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002118/0.1809, allocations: 0.8305 MB / 439.5 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007048/0.188, allocations: 4.448 MB / 443.9 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3068/0.4948, allocations: 3.376 MB / 447.3 MB, free: 9.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003735/0.4985, allocations: 1.656 MB / 449 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004369/0.5029, allocations: 2.337 MB / 451.3 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.5044, allocations: 353.8 kB / 451.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003951/0.5084, allocations: 1.294 MB / 452.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003874/0.5122, allocations: 2.123 MB / 455.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005314/0.5176, allocations: 2.387 MB / 457.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01327/0.5308, allocations: 7.724 MB / 465.2 MB, free: 6.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5308, allocations: 4.75 kB / 465.2 MB, free: 6.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.5308, allocations: 3.188 kB / 465.2 MB, free: 6.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002734/0.5311, allocations: 0 / 465.2 MB, free: 6.645 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01624/0.5474, allocations: 5.409 MB / 470.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.5474, allocations: 13.34 kB / 470.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002129/0.5496, allocations: 0.7603 MB / 471.4 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02185/0.5714, allocations: 3.952 MB / 475.3 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.582, allocations: 3.127 MB / 478.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002678/0.5823, allocations: 252.9 kB / 478.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.5838, allocations: 332.4 kB / 479 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/0.6056, allocations: 10.76 MB / 489.8 MB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/0.6057, allocations: 42.05 kB / 489.8 MB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005022/0.6062, allocations: 156.2 kB / 490 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003506/0.6097, allocations: 2.156 MB / 492.1 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/0.6279, allocations: 9.1 MB / 0.4895 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05547/0.6833, allocations: 41.56 MB / 0.5301 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.6945, allocations: 4.263 MB / 0.5342 GB, free: 72 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003053/0.6976, allocations: 2.229 MB / 0.5364 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.7104, allocations: 7.256 MB / 0.5435 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.7104, allocations: 55.31 kB / 0.5435 GB, free: 6.379 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.39e-06/0.7105, allocations: 2.25 kB / 0.5435 GB, free: 6.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04606/0.7565, allocations: 18.14 MB / 0.5613 GB, free: 4.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.7566, allocations: 171.5 kB / 0.5614 GB, free: 3.953 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007403/0.764, allocations: 4.633 MB / 0.5659 GB, free: 15.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004347/0.7645, allocations: 53.7 kB / 0.566 GB, free: 15.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/0.7672, allocations: 3.361 MB / 0.5693 GB, free: 11.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.7684, allocations: 0.7869 MB / 0.57 GB, free: 11.12 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.7703, allocations: 1.265 MB / 0.5713 GB, free: 9.848 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.7704, allocations: 313 kB / 0.5716 GB, free: 9.539 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003479/0.7739, allocations: 2.288 MB / 0.5738 GB, free: 7.246 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00646/0.7804, allocations: 6.025 MB / 0.5797 GB, free: 15.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.7918, allocations: 9.055 MB / 0.5885 GB, free: 4.992 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-05/0.7919, allocations: 40 kB / 0.5886 GB, free: 4.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01628/0.8081, allocations: 8.873 MB / 0.5972 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.706e-05/0.8082, allocations: 60 kB / 0.5973 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/0.8084, allocations: 138 kB / 0.5974 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.8107, allocations: 0.95 MB / 0.5984 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004959/0.8157, allocations: 1.415 MB / 0.5997 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009064/0.8247, allocations: 6.523 MB / 0.6061 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005424/0.8302, allocations: 343.6 kB / 0.6064 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009622/0.8311, allocations: 384 kB / 0.6068 GB, free: 2.133 MB / 0.4981 GB 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 (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.004756/0.8359, allocations: 2.232 MB / 0.609 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008696/0.8367, allocations: 417.1 kB / 0.6094 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006972/0.8437, allocations: 3.68 MB / 0.613 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.846e-05/0.8437, allocations: 24 kB / 0.613 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.8438, allocations: 8 kB / 0.613 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.999e-05/0.8438, allocations: 7.969 kB / 0.613 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02384/0.8676, allocations: 9.139 MB / 0.6219 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.221e-05/0.8677, allocations: 4 kB / 0.6219 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001763/0.8694, allocations: 319.5 kB / 0.6223 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002312/0.8717, allocations: 0.7681 MB / 0.623 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003409/0.8721, allocations: 43.94 kB / 0.623 GB, free: 1.379 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009459/0.8815, allocations: 6.111 MB / 0.629 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.8815, allocations: 11.94 kB / 0.629 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/0.8938, allocations: 6.606 MB / 0.6355 GB, free: 4.434 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/0.8956, allocations: 486.1 kB / 0.6359 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/0.8969, allocations: 36 kB / 0.636 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/0.8993, allocations: 119.7 kB / 0.6361 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004483/0.8997, allocations: 128.1 kB / 0.6362 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/0.9, allocations: 56 kB / 0.6363 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007582/0.9076, allocations: 2.965 MB / 0.6392 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9076, allocations: 0 / 0.6392 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.2361/1.144, allocations: 1.058 MB / 0.6402 GB, free: 181.8 MB / 0.5294 GB 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.01085/1.154, allocations: 7.256 MB / 0.6473 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009945/1.164, allocations: 5.346 MB / 0.6525 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/1.164, allocations: 1.188 kB / 0.6525 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003252/1.168, allocations: 1.85 MB / 0.6543 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/1.171, allocations: 0.5173 MB / 0.6548 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06087/1.232, allocations: 50.79 MB / 0.7044 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/1.235, allocations: 3.453 MB / 0.7078 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003804/1.239, allocations: 2.047 MB / 0.7098 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/1.241, allocations: 2.057 MB / 0.7118 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.241, allocations: 5.969 kB / 0.7118 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.87/4.11, allocations: 77.98 MB / 0.7879 GB, free: 53.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.15/32.26, allocations: 11.92 kB / 0.788 GB, free: 53.68 MB / 0.5294 GB " [Timeout remaining time 628] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 38.822197639383376]