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.001606/0.001606, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001777/0.001777, allocations: 183.1 kB / 23.72 MB, free: 4.699 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.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001567/0.001567, allocations: 43.92 kB / 370.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3815, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01548/0.397, allocations: 11.49 MB / 434.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.4075, allocations: 4.12 MB / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002543/0.41, allocations: 79.62 kB / 438.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006893/0.4169, allocations: 3.251 MB / 441.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006781/0.4237, allocations: 2.011 MB / 443.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002512/0.4262, allocations: 0.8305 MB / 444.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007949/0.4341, allocations: 4.458 MB / 448.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00452/0.4387, allocations: 3.086 MB / 452 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003463/0.4421, allocations: 1.678 MB / 453.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004117/0.4462, allocations: 2.336 MB / 456 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009679/0.4472, allocations: 352 kB / 456.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002592/0.4498, allocations: 1.299 MB / 457.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002382/0.4522, allocations: 2.131 MB / 459.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003018/0.4552, allocations: 2.385 MB / 462.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009723/0.4649, allocations: 7.731 MB / 469.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4649, allocations: 0 / 469.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4649, allocations: 0 / 469.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002614/0.4652, allocations: 0 / 469.9 MB, free: 15.15 MB / 382.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.01329/0.4785, allocations: 5.333 MB / 475.2 MB, free: 9.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.4785, allocations: 16.03 kB / 475.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001698/0.4802, allocations: 0.7647 MB / 476 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02109/0.5013, allocations: 3.945 MB / 479.9 MB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00924/0.5106, allocations: 3.064 MB / 483 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.5108, allocations: 246.3 kB / 483.2 MB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001259/0.5121, allocations: 335.8 kB / 483.6 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.5334, allocations: 10.76 MB / 494.3 MB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.5336, allocations: 39.64 kB / 494.3 MB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004821/0.5341, allocations: 163.8 kB / 494.5 MB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003872/0.5379, allocations: 2.146 MB / 496.7 MB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02055/0.5585, allocations: 9.094 MB / 0.4939 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3453/0.9038, allocations: 41.41 MB / 0.5343 GB, free: 97.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/0.9162, allocations: 3.807 MB / 0.538 GB, free: 97.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/0.9186, allocations: 2.235 MB / 0.5402 GB, free: 97.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01091/0.9296, allocations: 6.573 MB / 0.5467 GB, free: 95.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.9296, allocations: 50.06 kB / 0.5467 GB, free: 95.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.801e-06/0.9296, allocations: 0 / 0.5467 GB, free: 95.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03933/0.9689, allocations: 17.94 MB / 0.5642 GB, free: 85.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.969, allocations: 171.5 kB / 0.5644 GB, free: 85.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006012/0.975, allocations: 4.635 MB / 0.5689 GB, free: 80.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004116/0.9754, allocations: 55.81 kB / 0.569 GB, free: 80.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/0.9773, allocations: 3.364 MB / 0.5723 GB, free: 77.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007579/0.9781, allocations: 0.7886 MB / 0.573 GB, free: 76.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.9794, allocations: 1.273 MB / 0.5743 GB, free: 75.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.834e-05/0.9795, allocations: 301.1 kB / 0.5746 GB, free: 75.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/0.9821, allocations: 2.292 MB / 0.5768 GB, free: 73.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0042/0.9863, allocations: 6.023 MB / 0.5827 GB, free: 65.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007798/0.994, allocations: 9.045 MB / 0.5915 GB, free: 54.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/0.9942, allocations: 43.94 kB / 0.5915 GB, free: 54.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01363/1.008, allocations: 8.877 MB / 0.6002 GB, free: 45.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.289e-05/1.008, allocations: 60 kB / 0.6003 GB, free: 45.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.99e-05/1.008, allocations: 132 kB / 0.6004 GB, free: 45.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001886/1.01, allocations: 0.9497 MB / 0.6013 GB, free: 44.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/1.014, allocations: 1.415 MB / 0.6027 GB, free: 43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006391/1.02, allocations: 6.431 MB / 0.609 GB, free: 36.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004726/1.025, allocations: 339.6 kB / 0.6093 GB, free: 36.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006124/1.025, allocations: 384 kB / 0.6097 GB, free: 35.76 MB / 446.1 MB 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.003266/1.029, allocations: 2.233 MB / 0.6119 GB, free: 33.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007407/1.029, allocations: 409.2 kB / 0.6123 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005232/1.035, allocations: 3.688 MB / 0.6159 GB, free: 29.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.691e-05/1.035, allocations: 22.62 kB / 0.6159 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/1.035, allocations: 8 kB / 0.6159 GB, free: 29.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/1.035, allocations: 7.969 kB / 0.6159 GB, free: 29.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.048, allocations: 9.101 MB / 0.6248 GB, free: 20.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/1.048, allocations: 8.656 kB / 0.6248 GB, free: 20.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.05, allocations: 327.4 kB / 0.6251 GB, free: 19.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/1.051, allocations: 0.7617 MB / 0.6258 GB, free: 19.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/1.051, allocations: 43.94 kB / 0.6259 GB, free: 19.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006436/1.058, allocations: 6.017 MB / 0.6318 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/1.058, allocations: 8 kB / 0.6318 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008356/1.066, allocations: 6.605 MB / 0.6382 GB, free: 6.219 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.068, allocations: 409 kB / 0.6386 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.069, allocations: 43.98 kB / 0.6386 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/1.071, allocations: 111.8 kB / 0.6388 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002894/1.071, allocations: 132.9 kB / 0.6389 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.071, allocations: 55.98 kB / 0.6389 GB, free: 5.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003914/1.075, allocations: 2.969 MB / 0.6418 GB, free: 2.512 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.075, allocations: 0 / 0.6418 GB, free: 2.512 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005474/1.081, allocations: 1.054 MB / 0.6429 GB, free: 1.461 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.01034/1.091, allocations: 7.269 MB / 0.65 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009846/1.101, allocations: 5.339 MB / 0.6552 GB, free: 4.766 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.101, allocations: 0 / 0.6552 GB, free: 4.766 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00328/1.104, allocations: 1.849 MB / 0.657 GB, free: 2.906 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/1.108, allocations: 0.5148 MB / 0.6575 GB, free: 2.395 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0975/1.206, allocations: 50.88 MB / 0.7072 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006297/1.212, allocations: 3.453 MB / 0.7105 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005536/1.218, allocations: 2.049 MB / 0.7125 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003813/1.222, allocations: 2.057 MB / 0.7146 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of SimCode: time 1.393e-06/1.222, allocations: 3.938 kB / 0.7146 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3911/1.613, allocations: 83.05 MB / 0.7957 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.93/28.54, allocations: 11.02 kB / 0.7957 GB, free: 135.7 MB / 0.5294 GB " [Timeout remaining time 631] (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/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_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: 31.757239961996675]