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.0008285/0.0008285, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008131/0.0008131, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8594/0.8594, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.019e-05/1.167e-05, allocations: 4.672 kB / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.007426/0.007438, allocations: 9.851 MB / 334.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005248/0.01269, allocations: 3.874 MB / 338.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000705/0.01339, allocations: 75.69 kB / 338.4 MB, free: 1.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002957/0.01635, allocations: 3.251 MB / 341.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002152/0.0185, allocations: 1.999 MB / 343.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008574/0.01936, allocations: 0.881 MB / 344.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.02249, allocations: 4.817 MB / 349.3 MB, free: 6.949 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002099/0.02459, allocations: 3.289 MB / 352.6 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001622/0.02621, allocations: 2.428 MB / 355 MB, free: 1.164 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/0.02792, allocations: 2.225 MB / 357.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002915/0.02822, allocations: 348 kB / 357.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.02924, allocations: 1.197 MB / 358.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.03027, allocations: 2.135 MB / 360.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008295/0.0311, allocations: 1.34 MB / 362.3 MB, free: 9.91 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004278/0.03538, allocations: 7.504 MB / 369.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.03538, allocations: 0 / 369.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.03538, allocations: 0 / 369.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.442e-05/0.03543, allocations: 0 / 369.8 MB, free: 2.383 MB / 330.7 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.005326/0.04076, allocations: 5.223 MB / 375 MB, free: 13.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.0408, allocations: 8.031 kB / 375 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005466/0.04134, allocations: 0.7438 MB / 375.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01091/0.05226, allocations: 4.105 MB / 379.9 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002934/0.05519, allocations: 2.76 MB / 382.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.0553, allocations: 242.1 kB / 382.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000349/0.05565, allocations: 323.8 kB / 383.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009013/0.06466, allocations: 10.41 MB / 393.6 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.516e-05/0.06472, allocations: 43.62 kB / 393.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.06498, allocations: 159.8 kB / 393.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/0.06676, allocations: 2.025 MB / 395.8 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008868/0.07563, allocations: 8.752 MB / 404.6 MB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0246/0.1002, allocations: 39.36 MB / 443.9 MB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005902/0.1061, allocations: 3.94 MB / 447.9 MB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/0.1079, allocations: 2.233 MB / 450.1 MB, free: 80 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.126/0.234, allocations: 6.288 MB / 456.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.234, allocations: 61.5 kB / 456.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.048e-06/0.234, allocations: 0 / 456.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.02302/0.257, allocations: 18.33 MB / 474.8 MB, free: 99.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.2571, allocations: 171.5 kB / 474.9 MB, free: 99.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/0.2608, allocations: 4.974 MB / 479.9 MB, free: 94.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.194e-05/0.2609, allocations: 57.7 kB / 480 MB, free: 94.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008865/0.2618, allocations: 3.236 MB / 483.2 MB, free: 91.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.2621, allocations: 0.7699 MB / 484 MB, free: 91.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008435/0.2629, allocations: 1.234 MB / 485.2 MB, free: 89.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.473e-05/0.263, allocations: 301.1 kB / 485.5 MB, free: 89.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001845/0.2648, allocations: 2.272 MB / 487.8 MB, free: 87.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.2673, allocations: 5.978 MB / 493.8 MB, free: 79.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005133/0.2725, allocations: 8.946 MB / 0.4909 GB, free: 68.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-05/0.2725, allocations: 36 kB / 0.4909 GB, free: 68.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.007095/0.2796, allocations: 8.788 MB / 0.4995 GB, free: 59.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.2796, allocations: 60 kB / 0.4996 GB, free: 59.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.504e-05/0.2797, allocations: 132.2 kB / 0.4997 GB, free: 59.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.2809, allocations: 0.9412 MB / 0.5006 GB, free: 58.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.2829, allocations: 1.404 MB / 0.502 GB, free: 57.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004322/0.2872, allocations: 6.398 MB / 0.5083 GB, free: 50.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.2893, allocations: 371.5 kB / 0.5086 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.2896, allocations: 376 kB / 0.509 GB, free: 50.03 MB / 410.7 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.001681/0.2912, allocations: 2.179 MB / 0.5111 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000282/0.2915, allocations: 405.3 kB / 0.5115 GB, free: 47.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/0.2947, allocations: 3.66 MB / 0.5151 GB, free: 43.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.2947, allocations: 20 kB / 0.5151 GB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2948, allocations: 4 kB / 0.5151 GB, free: 43.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.2948, allocations: 15.91 kB / 0.5151 GB, free: 43.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007541/0.3023, allocations: 8.687 MB / 0.5236 GB, free: 34.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3023, allocations: 8 kB / 0.5236 GB, free: 34.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006965/0.303, allocations: 315.5 kB / 0.5239 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009969/0.304, allocations: 0.7685 MB / 0.5246 GB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.938e-05/0.3041, allocations: 40 kB / 0.5247 GB, free: 33.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.3082, allocations: 6.018 MB / 0.5305 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3082, allocations: 7.938 kB / 0.5306 GB, free: 27.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004884/0.313, allocations: 6.572 MB / 0.537 GB, free: 21.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.3134, allocations: 438.3 kB / 0.5374 GB, free: 20.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.3136, allocations: 36 kB / 0.5374 GB, free: 20.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008515/0.3145, allocations: 151.7 kB / 0.5376 GB, free: 20.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.3147, allocations: 132.9 kB / 0.5377 GB, free: 20.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.499e-05/0.3147, allocations: 52 kB / 0.5377 GB, free: 20.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002123/0.3169, allocations: 3.081 MB / 0.5408 GB, free: 17.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3169, allocations: 0 / 0.5408 GB, free: 17.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002435/0.3193, allocations: 1.125 MB / 0.5419 GB, free: 16.02 MB / 410.7 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.005445/0.3247, allocations: 7.23 MB / 0.5489 GB, free: 8.699 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004301/0.329, allocations: 5.292 MB / 0.5541 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.329, allocations: 0 / 0.5541 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001565/0.3306, allocations: 1.837 MB / 0.5559 GB, free: 1.574 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.3321, allocations: 0.5106 MB / 0.5564 GB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0427/0.3748, allocations: 50.53 MB / 0.6057 GB, free: 8.648 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/0.3772, allocations: 2.831 MB / 0.6085 GB, free: 5.77 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.1483/0.5255, allocations: 2.034 MB / 0.6105 GB, free: 163.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002877/0.5283, allocations: 2.001 MB / 0.6124 GB, free: 163.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.883e-06/0.5283, allocations: 3.875 kB / 0.6124 GB, free: 163.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07715/0.6055, allocations: 78.93 MB / 0.6895 GB, free: 97.56 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.99, allocations: 7.672 kB / 0.6895 GB, free: 97.56 MB / 474.7 MB " [Timeout remaining time 649] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/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: 13.022439380176365]