Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001739/0.001739, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 67.84 kB / 378.6 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2532, allocations: 53.4 MB / 432 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01256/0.2657, allocations: 11.26 MB / 443.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008436/0.2742, allocations: 4.093 MB / 447.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001429/0.2756, allocations: 79.62 kB / 447.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005659/0.2812, allocations: 3.224 MB / 450.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005023/0.2863, allocations: 1.938 MB / 452.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001993/0.2883, allocations: 0.8266 MB / 453.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006224/0.2945, allocations: 4.413 MB / 457.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003389/0.2979, allocations: 3.04 MB / 460.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.3001, allocations: 1.639 MB / 462.5 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002893/0.303, allocations: 2.286 MB / 464.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006372/0.3036, allocations: 344 kB / 465.1 MB, free: 5.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.3059, allocations: 1.276 MB / 466.4 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002103/0.308, allocations: 2.057 MB / 468.4 MB, free: 2.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.3104, allocations: 2.299 MB / 470.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008217/0.3186, allocations: 7.467 MB / 478.2 MB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3186, allocations: 0 / 478.2 MB, free: 8.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3186, allocations: 4 kB / 478.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001572/0.3188, allocations: 0 / 478.2 MB, free: 8.207 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.01078/0.3296, allocations: 5.208 MB / 483.4 MB, free: 2.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3296, allocations: 15.97 kB / 483.4 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001664/0.3298, allocations: 106.5 kB / 483.5 MB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001071/0.3308, allocations: 0.736 MB / 484.3 MB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02154/0.3524, allocations: 3.894 MB / 488.2 MB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006703/0.3591, allocations: 2.908 MB / 491.1 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.3593, allocations: 238.2 kB / 491.3 MB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000846/0.3601, allocations: 323.8 kB / 491.6 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.3784, allocations: 10.38 MB / 0.4902 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.3785, allocations: 39.64 kB / 0.4903 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003693/0.3788, allocations: 159.8 kB / 0.4904 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003368/0.3822, allocations: 2.029 MB / 0.4924 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01759/0.3998, allocations: 8.784 MB / 0.501 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2603/0.6601, allocations: 40.53 MB / 0.5406 GB, free: 74.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009997/0.6701, allocations: 3.814 MB / 0.5443 GB, free: 74.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002134/0.6722, allocations: 2.235 MB / 0.5465 GB, free: 74.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008522/0.6807, allocations: 6.537 MB / 0.5529 GB, free: 72.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.6808, allocations: 58.17 kB / 0.5529 GB, free: 72.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.258e-06/0.6808, allocations: 0 / 0.5529 GB, free: 72.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03697/0.7177, allocations: 17.8 MB / 0.5703 GB, free: 60.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.7178, allocations: 179.5 kB / 0.5705 GB, free: 59.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.7222, allocations: 4.573 MB / 0.5749 GB, free: 55.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002055/0.7224, allocations: 49.7 kB / 0.575 GB, free: 55.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.7236, allocations: 3.278 MB / 0.5782 GB, free: 52.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000457/0.724, allocations: 0.7921 MB / 0.579 GB, free: 51.53 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001083/0.7251, allocations: 1.246 MB / 0.5802 GB, free: 50.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.694e-05/0.7251, allocations: 305.1 kB / 0.5805 GB, free: 49.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002298/0.7274, allocations: 2.279 MB / 0.5827 GB, free: 47.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003371/0.7308, allocations: 5.95 MB / 0.5885 GB, free: 40.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006304/0.7371, allocations: 8.958 MB / 0.5973 GB, free: 29.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.924e-05/0.7371, allocations: 43.94 kB / 0.5973 GB, free: 29.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01071/0.7479, allocations: 8.799 MB / 0.6059 GB, free: 20.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.611e-05/0.7479, allocations: 60 kB / 0.606 GB, free: 20.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.942e-05/0.748, allocations: 137.4 kB / 0.6061 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001846/0.7498, allocations: 0.9458 MB / 0.607 GB, free: 19.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003407/0.7533, allocations: 1.401 MB / 0.6084 GB, free: 18.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/0.7592, allocations: 6.415 MB / 0.6146 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003886/0.7631, allocations: 339.6 kB / 0.615 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004226/0.7635, allocations: 375.7 kB / 0.6153 GB, free: 10.84 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.002403/0.7659, allocations: 2.169 MB / 0.6174 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005869/0.7665, allocations: 413.2 kB / 0.6178 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005/0.7715, allocations: 3.676 MB / 0.6214 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.7715, allocations: 20 kB / 0.6214 GB, free: 4.547 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.7715, allocations: 4 kB / 0.6214 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.7715, allocations: 11.97 kB / 0.6215 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.7854, allocations: 9.022 MB / 0.6303 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.7854, allocations: 4.469 kB / 0.6303 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.7869, allocations: 327.5 kB / 0.6306 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.789, allocations: 0.7619 MB / 0.6313 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/0.7891, allocations: 40 kB / 0.6314 GB, free: 10.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008491/0.7976, allocations: 6.019 MB / 0.6372 GB, free: 4.168 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/0.7976, allocations: 11.88 kB / 0.6373 GB, free: 4.156 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/0.8077, allocations: 6.597 MB / 0.6437 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.8089, allocations: 413 kB / 0.6441 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004656/0.8094, allocations: 40 kB / 0.6441 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/0.8108, allocations: 115.8 kB / 0.6442 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.8111, allocations: 125 kB / 0.6444 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.8113, allocations: 59.89 kB / 0.6444 GB, free: 12.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004384/0.8157, allocations: 2.936 MB / 0.6473 GB, free: 9.789 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.8157, allocations: 0 / 0.6473 GB, free: 9.789 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004477/0.8201, allocations: 1.019 MB / 0.6483 GB, free: 8.77 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.01049/0.8306, allocations: 7.263 MB / 0.6554 GB, free: 1.414 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008824/0.8395, allocations: 5.311 MB / 0.6606 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.8395, allocations: 0 / 0.6606 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003205/0.8427, allocations: 1.845 MB / 0.6624 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00298/0.8457, allocations: 0.5003 MB / 0.6629 GB, free: 9.762 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07464/0.9203, allocations: 50.2 MB / 0.7119 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003987/0.9243, allocations: 3.363 MB / 0.7152 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004489/0.9288, allocations: 2.037 MB / 0.7171 GB, free: 12.22 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002824/0.9316, allocations: 1.991 MB / 0.7191 GB, free: 10.23 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/0.9316, allocations: 0 / 0.7191 GB, free: 10.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.644/2.575, allocations: 82.03 MB / 0.7992 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.74/29.32, allocations: 8.047 kB / 0.7992 GB, free: 173.8 MB / 0.5606 GB " [Timeout remaining time 630] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.1356389040011]