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.001339/0.001339, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001306/0.001306, allocations: 197 kB / 24.5 MB, free: 4.008 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.333/1.333, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 43.94 kB / 371.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2048/0.2063, allocations: 52.19 MB / 423.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01324/0.2196, allocations: 11.49 MB / 434.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007753/0.2273, allocations: 4.115 MB / 439 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008957/0.2282, allocations: 75.69 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005426/0.2337, allocations: 3.255 MB / 442.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003824/0.2375, allocations: 2.008 MB / 444.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.239, allocations: 0.8227 MB / 445.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005326/0.2443, allocations: 4.474 MB / 449.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00332/0.2476, allocations: 3.084 MB / 452.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.2496, allocations: 1.678 MB / 454.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.2523, allocations: 2.336 MB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000525/0.2528, allocations: 356 kB / 457.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.2548, allocations: 1.299 MB / 458.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.2567, allocations: 2.127 MB / 460.5 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.2588, allocations: 2.388 MB / 462.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007822/0.2667, allocations: 7.727 MB / 470.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2667, allocations: 3.938 kB / 470.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2667, allocations: 0 / 470.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.2668, allocations: 0 / 470.7 MB, free: 15.12 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.009874/0.2767, allocations: 5.333 MB / 476 MB, free: 9.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.2767, allocations: 12.03 kB / 476 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001034/0.2768, allocations: 110.7 kB / 476.1 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009463/0.2778, allocations: 0.757 MB / 476.9 MB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02263/0.3004, allocations: 3.949 MB / 480.8 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005855/0.3062, allocations: 3.064 MB / 483.9 MB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.3064, allocations: 246.3 kB / 484.1 MB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005963/0.307, allocations: 331.8 kB / 484.4 MB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.3236, allocations: 10.76 MB / 495.2 MB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.74e-05/0.3237, allocations: 43.62 kB / 495.3 MB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003897/0.3241, allocations: 155.8 kB / 495.4 MB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003535/0.3276, allocations: 2.154 MB / 497.6 MB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.3441, allocations: 9.097 MB / 0.4948 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2102/0.5544, allocations: 41.42 MB / 0.5352 GB, free: 97.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.5647, allocations: 3.796 MB / 0.5389 GB, free: 97.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001929/0.5666, allocations: 2.236 MB / 0.5411 GB, free: 97.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007822/0.5745, allocations: 6.57 MB / 0.5475 GB, free: 95.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.5745, allocations: 51.53 kB / 0.5476 GB, free: 95.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 3.476e-06/0.5745, allocations: 1.078 kB / 0.5476 GB, free: 95.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03605/0.6105, allocations: 17.95 MB / 0.5651 GB, free: 85.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.6106, allocations: 175 kB / 0.5653 GB, free: 85.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.6147, allocations: 4.633 MB / 0.5698 GB, free: 80.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.6149, allocations: 55.7 kB / 0.5699 GB, free: 80.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.616, allocations: 3.362 MB / 0.5731 GB, free: 77.56 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004135/0.6164, allocations: 0.7913 MB / 0.5739 GB, free: 76.78 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001117/0.6175, allocations: 1.269 MB / 0.5751 GB, free: 75.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.334e-05/0.6176, allocations: 307.1 kB / 0.5754 GB, free: 75.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002245/0.6198, allocations: 2.284 MB / 0.5777 GB, free: 72.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003162/0.623, allocations: 6.025 MB / 0.5836 GB, free: 65.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005996/0.629, allocations: 9.041 MB / 0.5924 GB, free: 54.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.494e-05/0.629, allocations: 43.94 kB / 0.5924 GB, free: 54.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01004/0.6391, allocations: 8.876 MB / 0.6011 GB, free: 45.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.6391, allocations: 62.62 kB / 0.6012 GB, free: 45.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-05/0.6392, allocations: 135.9 kB / 0.6013 GB, free: 45.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001817/0.641, allocations: 0.946 MB / 0.6022 GB, free: 44.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.6443, allocations: 1.421 MB / 0.6036 GB, free: 42.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005823/0.6501, allocations: 6.422 MB / 0.6099 GB, free: 36.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/0.6537, allocations: 339.6 kB / 0.6102 GB, free: 36.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004145/0.6541, allocations: 380 kB / 0.6106 GB, free: 35.64 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.00223/0.6563, allocations: 2.24 MB / 0.6127 GB, free: 33.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005261/0.6569, allocations: 409.2 kB / 0.6131 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004839/0.6617, allocations: 3.68 MB / 0.6167 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.6617, allocations: 20 kB / 0.6167 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.6617, allocations: 8 kB / 0.6168 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.6617, allocations: 11.95 kB / 0.6168 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.6727, allocations: 9.103 MB / 0.6257 GB, free: 20.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.6727, allocations: 8.094 kB / 0.6257 GB, free: 20.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/0.674, allocations: 319.5 kB / 0.626 GB, free: 19.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.6757, allocations: 0.7709 MB / 0.6267 GB, free: 18.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.6758, allocations: 39.98 kB / 0.6268 GB, free: 18.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005884/0.6817, allocations: 6.02 MB / 0.6326 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.6817, allocations: 4 kB / 0.6326 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007223/0.689, allocations: 6.611 MB / 0.6391 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000804/0.6898, allocations: 409 kB / 0.6395 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004291/0.6902, allocations: 43.98 kB / 0.6395 GB, free: 5.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.6916, allocations: 103.9 kB / 0.6396 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002546/0.6918, allocations: 137 kB / 0.6398 GB, free: 5.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.692, allocations: 52 kB / 0.6398 GB, free: 5.367 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003058/0.695, allocations: 2.973 MB / 0.6427 GB, free: 2.395 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.695, allocations: 0 / 0.6427 GB, free: 2.395 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003737/0.6987, allocations: 1.059 MB / 0.6437 GB, free: 1.336 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.009512/0.7083, allocations: 7.261 MB / 0.6508 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008383/0.7166, allocations: 5.346 MB / 0.6561 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.7166, allocations: 0 / 0.6561 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003115/0.7198, allocations: 1.845 MB / 0.6579 GB, free: 2.781 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.7227, allocations: 0.5101 MB / 0.6584 GB, free: 2.281 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07159/0.7943, allocations: 50.88 MB / 0.708 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004315/0.7986, allocations: 3.456 MB / 0.7114 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004248/0.8028, allocations: 2.043 MB / 0.7134 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00274/0.8056, allocations: 2.057 MB / 0.7154 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.8056, allocations: 4 kB / 0.7154 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2747/1.08, allocations: 83.09 MB / 0.7966 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.96/27.04, allocations: 8.031 kB / 0.7966 GB, free: 135.5 MB / 0.5294 GB " [Timeout remaining time 633] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 33.63612172805006]