Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 113.1 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 216.5 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.609/1.609, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 43.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3554, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01418/0.3695, allocations: 11.26 MB / 442.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009004/0.3785, allocations: 4.095 MB / 446.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002241/0.3808, allocations: 79.69 kB / 446.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00658/0.3874, allocations: 3.224 MB / 449.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005248/0.3926, allocations: 1.937 MB / 451.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002155/0.3948, allocations: 0.8265 MB / 452.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007083/0.4018, allocations: 4.406 MB / 457 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004155/0.406, allocations: 3.047 MB / 460 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.4091, allocations: 1.639 MB / 461.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003803/0.4129, allocations: 2.278 MB / 463.9 MB, free: 5.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008553/0.4138, allocations: 348 kB / 464.3 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002657/0.4164, allocations: 1.272 MB / 465.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002871/0.4193, allocations: 2.061 MB / 467.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003661/0.4229, allocations: 2.303 MB / 469.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.4337, allocations: 7.463 MB / 477.4 MB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/0.4337, allocations: 0 / 477.4 MB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4338, allocations: 4 kB / 477.4 MB, free: 8.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002872/0.434, allocations: 3.938 kB / 477.4 MB, free: 8.414 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01326/0.4473, allocations: 5.208 MB / 482.6 MB, free: 3.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.4473, allocations: 8.031 kB / 482.6 MB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001291/0.4486, allocations: 0.7399 MB / 483.3 MB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0211/0.4697, allocations: 3.89 MB / 487.2 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006636/0.4764, allocations: 2.908 MB / 490.1 MB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.4766, allocations: 246.2 kB / 490.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007924/0.4774, allocations: 319.8 kB / 490.7 MB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.4958, allocations: 10.38 MB / 0.4893 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.4959, allocations: 39.64 kB / 0.4894 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004052/0.4963, allocations: 151.9 kB / 0.4895 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003387/0.4997, allocations: 2.029 MB / 0.4915 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01758/0.5173, allocations: 8.791 MB / 0.5001 GB, free: 4.863 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2786/0.7958, allocations: 40.53 MB / 0.5397 GB, free: 74.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.8069, allocations: 3.802 MB / 0.5434 GB, free: 74.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/0.8096, allocations: 2.233 MB / 0.5456 GB, free: 74.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.8209, allocations: 6.55 MB / 0.552 GB, free: 72.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.8209, allocations: 49.94 kB / 0.552 GB, free: 72.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.789e-06/0.8209, allocations: 0 / 0.552 GB, free: 72.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04169/0.8626, allocations: 17.81 MB / 0.5694 GB, free: 60.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.8627, allocations: 179 kB / 0.5696 GB, free: 60.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006093/0.8688, allocations: 4.575 MB / 0.574 GB, free: 55.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003959/0.8692, allocations: 49.7 kB / 0.5741 GB, free: 55.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.8707, allocations: 3.272 MB / 0.5773 GB, free: 52.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008642/0.8716, allocations: 0.7891 MB / 0.578 GB, free: 51.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/0.8733, allocations: 1.258 MB / 0.5793 GB, free: 50.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.434e-05/0.8733, allocations: 305.1 kB / 0.5796 GB, free: 50.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.876, allocations: 2.276 MB / 0.5818 GB, free: 48.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004527/0.8805, allocations: 5.961 MB / 0.5876 GB, free: 40.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008451/0.889, allocations: 8.952 MB / 0.5964 GB, free: 29.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.677e-05/0.8891, allocations: 36 kB / 0.5964 GB, free: 29.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01368/0.9027, allocations: 8.8 MB / 0.605 GB, free: 21.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.9028, allocations: 60 kB / 0.605 GB, free: 21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/0.903, allocations: 128.5 kB / 0.6052 GB, free: 20.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.9051, allocations: 0.9455 MB / 0.6061 GB, free: 19.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/0.9095, allocations: 1.404 MB / 0.6075 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007351/0.9168, allocations: 6.413 MB / 0.6137 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005626/0.9224, allocations: 347.4 kB / 0.614 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/0.9237, allocations: 375.9 kB / 0.6144 GB, free: 11.29 MB / 446.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.004408/0.9281, allocations: 2.173 MB / 0.6165 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/0.9291, allocations: 417.2 kB / 0.6169 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006579/0.9357, allocations: 3.668 MB / 0.6205 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.321e-05/0.9357, allocations: 28 kB / 0.6205 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.9357, allocations: 4 kB / 0.6205 GB, free: 4.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.9358, allocations: 7.969 kB / 0.6205 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/0.9555, allocations: 9.016 MB / 0.6294 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-05/0.9555, allocations: 4 kB / 0.6294 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.9572, allocations: 328.1 kB / 0.6297 GB, free: 11.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/0.9595, allocations: 0.7656 MB / 0.6304 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003293/0.9599, allocations: 39.94 kB / 0.6305 GB, free: 10.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009524/0.9694, allocations: 6.014 MB / 0.6363 GB, free: 4.602 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.839e-06/0.9694, allocations: 7.938 kB / 0.6363 GB, free: 4.594 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01249/0.9819, allocations: 6.608 MB / 0.6428 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/0.9836, allocations: 413 kB / 0.6432 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001111/0.9847, allocations: 39.94 kB / 0.6432 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002458/0.9872, allocations: 111.8 kB / 0.6433 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005293/0.9877, allocations: 129 kB / 0.6435 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/0.9879, allocations: 55.98 kB / 0.6435 GB, free: 13.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006749/0.9947, allocations: 2.932 MB / 0.6464 GB, free: 10.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9947, allocations: 3.938 kB / 0.6464 GB, free: 10.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007108/1.002, allocations: 1.027 MB / 0.6474 GB, free: 9.203 MB / 478.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.01325/1.015, allocations: 7.253 MB / 0.6545 GB, free: 1.852 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01046/1.026, allocations: 5.315 MB / 0.6596 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-05/1.026, allocations: 0 / 0.6596 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.03, allocations: 1.845 MB / 0.6614 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005201/1.035, allocations: 0.509 MB / 0.6619 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1089/1.144, allocations: 50.2 MB / 0.711 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006415/1.15, allocations: 3.359 MB / 0.7143 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006072/1.156, allocations: 2.025 MB / 0.7162 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004035/1.16, allocations: 2.003 MB / 0.7182 GB, free: 10.67 MB / 0.545 GB Notification: Performance of SimCode: time 1.273e-06/1.16, allocations: 0 / 0.7182 GB, free: 10.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.099/2.259, allocations: 82.01 MB / 0.7983 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.09/30.35, allocations: 11.84 kB / 0.7983 GB, free: 174.8 MB / 0.5606 GB " [Timeout remaining time 629] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 34.47437930200249]